Activity.SetIntent(Intent, ComponentCaller) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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
意図: getIntent() から返される新しい Intent オブジェクト。この値は null である可能性があります。
- newCaller
- ComponentCaller
ComponentCaller: getCaller() から返される新しい ComponentCaller オブジェクト。この値は null にすることができます。
- 属性
注釈
getIntent() によって返される意図と、getCaller() によって返される ComponentCaller を変更します。 これは、指定された意図と ComponentCaller への参照を保持します。コピーされません。 onNewIntent(Intent) と組み合わせて使用されることがよくあります。 onNewIntent(Intent) から呼び出し元を取得するには、getCurrentCaller() を使用します。それ以外の場合は onNewIntent(Intent,ComponentCaller) をオーバーライドします。
関連項目も参照:
android.app.Activity.setIntentの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。