Udostępnij za pośrednictwem


Activity.Caller Property

Definition

Returns the ComponentCaller instance of the app that launched this activity with the intent from #getIntent().

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 launched this activity with the intent from #getIntent(). To keep the value of the ComponentCaller instance for new intents, call #setIntent(Intent, ComponentCaller) instead of #setIntent(Intent).

Java documentation 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