Activity.SetIntent(Intent, ComponentCaller) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes the intent returned by getIntent(), and ComponentCaller returned by 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
Parameters
- newIntent
- Intent
Intent: The new Intent object to return from getIntent() This value may be null.
- newCaller
- ComponentCaller
ComponentCaller: The new ComponentCaller object to return from getCaller() This value may be null.
- Attributes
Remarks
Changes the intent returned by getIntent(), and ComponentCaller returned by getCaller(). This holds references to the given intent, and ComponentCaller; it does not copy them. Often used in conjunction with onNewIntent(Intent). To retrieve the caller from onNewIntent(Intent), use getCurrentCaller(), otherwise override onNewIntent(Intent,ComponentCaller).
See also:
Android reference for android.app.Activity.setIntent.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.