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

의도: getIntent()에서 반환할 새 Intent 개체입니다. 이 값은 null일 수 있습니다.

newCaller
ComponentCaller

ComponentCaller: getCaller()에서 반환할 새 ComponentCaller 개체입니다. 이 값은 null일 수 있습니다.

특성

설명

getIntent()에서 반환된 의도와 getCaller()에서 반환된 ComponentCaller를 변경합니다. 지정된 의도 및 ComponentCaller에 대한 참조를 보유합니다. 복사하지 않습니다. onNewIntent(Intent)와 함께 자주 사용됩니다. onNewIntent(Intent)에서 호출자를 검색하려면 getCurrentCaller()를 사용하고, 그렇지 않으면 onNewIntent(Intent,ComponentCaller)를 재정의합니다.

참고 항목:

에 대한 android.app.Activity.setIntentAndroid 참조

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상