Language

Activity.Caller プロパティ

定義

このアクティビティを開始したアプリの ComponentCaller インスタンスを返します。

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

プロパティ値

ComponentCaller #getIntent()の意図に対応するインスタンス。アクティビティがその意図で起動されなかった場合はnull

属性

注釈

このアクティビティを開始したアプリの ComponentCaller インスタンスを返します。 将来使用するために ComponentCaller インスタンスを保持するには、setIntent(Intent,ComponentCaller) を呼び出し、このメソッドを使用して取得します。 onNewIntent(Intent) では、このメソッドは元の ComponentCaller を返すことに注意してください。 setIntent(Intent,ComponentCaller) を使用して、新しい ComponentCaller に更新できます。

関連項目も参照:

android.app.Activity.getCallerの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象