Activity.Caller Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.