Activity.Caller Property

Definition

Returns the ComponentCaller instance of the app that started this activity.

public virtual Android.App.ComponentCaller? Caller { [Android.Runtime.Register("getCaller", "()Landroid/app/ComponentCaller;", "GetGetCallerHandler", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getCaller", "()Landroid/app/ComponentCaller;", "GetGetCallerHandler", ApiSince=35)>]
member this.Caller : Android.App.ComponentCaller

Property Value

ComponentCaller instance corresponding to the intent from getIntent(), or null if the activity was not launched with that intent

Attributes

Remarks

Returns the ComponentCaller instance of the app that started this activity. To keep the ComponentCaller instance for future use, call setIntent(Intent,ComponentCaller), and use this method to retrieve it. Note that in onNewIntent(Intent), this method will return the original ComponentCaller. You can use setIntent(Intent,ComponentCaller) to update it to the new ComponentCaller.

See also:

Android reference for android.app.Activity.getCaller.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to