Sdílet prostřednictvím


Instrumentation.CallActivityOnNewIntent Method

Definition

Overloads

CallActivityOnNewIntent(Activity, Intent)

Perform calling of an activity's Activity#onNewIntent method.

CallActivityOnNewIntent(Activity, Intent, ComponentCaller)

Same as #callActivityOnNewIntent(Activity, Intent), but with an extra parameter for the ComponentCaller instance associated with the app that sent the intent.

CallActivityOnNewIntent(Activity, Intent)

Perform calling of an activity's Activity#onNewIntent method.

[Android.Runtime.Register("callActivityOnNewIntent", "(Landroid/app/Activity;Landroid/content/Intent;)V", "GetCallActivityOnNewIntent_Landroid_app_Activity_Landroid_content_Intent_Handler")]
public virtual void CallActivityOnNewIntent (Android.App.Activity? activity, Android.Content.Intent? intent);
[<Android.Runtime.Register("callActivityOnNewIntent", "(Landroid/app/Activity;Landroid/content/Intent;)V", "GetCallActivityOnNewIntent_Landroid_app_Activity_Landroid_content_Intent_Handler")>]
abstract member CallActivityOnNewIntent : Android.App.Activity * Android.Content.Intent -> unit
override this.CallActivityOnNewIntent : Android.App.Activity * Android.Content.Intent -> unit

Parameters

activity
Activity

The activity receiving a new Intent.

intent
Intent

The new intent being received.

Attributes

Remarks

Perform calling of an activity's Activity#onNewIntent method. The default implementation simply calls through to that method.

Java documentation for android.app.Instrumentation.callActivityOnNewIntent(android.app.Activity, android.content.Intent).

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.

Applies to

CallActivityOnNewIntent(Activity, Intent, ComponentCaller)

Same as #callActivityOnNewIntent(Activity, Intent), but with an extra parameter for the ComponentCaller instance associated with the app that sent the intent.

[Android.Runtime.Register("callActivityOnNewIntent", "(Landroid/app/Activity;Landroid/content/Intent;Landroid/app/ComponentCaller;)V", "GetCallActivityOnNewIntent_Landroid_app_Activity_Landroid_content_Intent_Landroid_app_ComponentCaller_Handler", ApiSince=35)]
public virtual void CallActivityOnNewIntent (Android.App.Activity activity, Android.Content.Intent intent, Android.App.ComponentCaller caller);
[<Android.Runtime.Register("callActivityOnNewIntent", "(Landroid/app/Activity;Landroid/content/Intent;Landroid/app/ComponentCaller;)V", "GetCallActivityOnNewIntent_Landroid_app_Activity_Landroid_content_Intent_Landroid_app_ComponentCaller_Handler", ApiSince=35)>]
abstract member CallActivityOnNewIntent : Android.App.Activity * Android.Content.Intent * Android.App.ComponentCaller -> unit
override this.CallActivityOnNewIntent : Android.App.Activity * Android.Content.Intent * Android.App.ComponentCaller -> unit

Parameters

activity
Activity

The activity receiving a new Intent.

intent
Intent

The new intent being received.

caller
ComponentCaller

The ComponentCaller instance that launched the activity with the new intent.

Attributes

Remarks

Same as #callActivityOnNewIntent(Activity, Intent), but with an extra parameter for the ComponentCaller instance associated with the app that sent the intent.

Java documentation for android.app.Instrumentation.callActivityOnNewIntent(android.app.Activity, android.content.Intent, android.app.ComponentCaller).

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.

Applies to