Activity.SetIntent(Intent, ComponentCaller) メソッド

定義

#getIntentによって返される意図と、#getCallerによって返される ComponentCaller を変更します。

[Android.Runtime.Register("setIntent", "(Landroid/content/Intent;Landroid/app/ComponentCaller;)V", "GetSetIntent_Landroid_content_Intent_Landroid_app_ComponentCaller_Handler", ApiSince=35)]
public virtual void SetIntent(Android.Content.Intent? newIntent, Android.App.ComponentCaller? newCaller);
[<Android.Runtime.Register("setIntent", "(Landroid/content/Intent;Landroid/app/ComponentCaller;)V", "GetSetIntent_Landroid_content_Intent_Landroid_app_ComponentCaller_Handler", ApiSince=35)>]
abstract member SetIntent : Android.Content.Intent * Android.App.ComponentCaller -> unit
override this.SetIntent : Android.Content.Intent * Android.App.ComponentCaller -> unit

パラメーター

newIntent
Intent

返される新しい Intent オブジェクト #getIntent

newCaller
ComponentCaller

返される新しい ComponentCaller オブジェクト #getCaller

属性

注釈

#getIntentによって返される意図と、#getCallerによって返される ComponentCaller を変更します。 これは、指定された意図と ComponentCaller への参照を保持します。コピーされません。 多くの場合、 #onNewIntent(Intent)と組み合わせて使用されます。 #onNewIntent(Intent)から呼び出し元を取得するには、#getCurrentCallerを使用します。それ以外の場合は、#onNewIntent(Intent, ComponentCaller)をオーバーライドします。

Javaドキュメント。

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

適用対象