Язык

Activity.SetIntent(Intent, ComponentCaller) Метод

Определение

Изменяет намерение, возвращаемое параметром #getIntent, и ComponentCaller, возвращенный #getCaller.

[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

newCaller
ComponentCaller

Новый ComponentCaller объект, возвращаемый из #getCaller

Атрибуты

Комментарии

Изменяет намерение, возвращаемое getIntent(), и ComponentCaller, возвращенное getCaller(). Это содержит ссылки на заданное намерение и ComponentCaller; он не копирует их. Часто используется в сочетании с onNewIntent(Intent). Чтобы получить вызывающий объект из onNewIntent(Намерение), используйте getCurrentCaller(), в противном случае переопределите onNewIntent(Намерение,ComponentCaller).

См. также:

Справочник по Android для android.app.Activity.setIntent.

Части этой страницы — это изменения на основе работы, созданной и общей Project и используемых в соответствии с условиями, описанными в разделе "".

Применяется к