Freigeben über


Instrumentation.CallActivityOnUserLeaving(Activity) Method

Definition

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

[Android.Runtime.Register("callActivityOnUserLeaving", "(Landroid/app/Activity;)V", "GetCallActivityOnUserLeaving_Landroid_app_Activity_Handler")]
public virtual void CallActivityOnUserLeaving (Android.App.Activity? activity);
[<Android.Runtime.Register("callActivityOnUserLeaving", "(Landroid/app/Activity;)V", "GetCallActivityOnUserLeaving_Landroid_app_Activity_Handler")>]
abstract member CallActivityOnUserLeaving : Android.App.Activity -> unit
override this.CallActivityOnUserLeaving : Android.App.Activity -> unit

Parameters

activity
Activity

The activity being notified that the user has navigated away

Attributes

Remarks

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

Java documentation for android.app.Instrumentation.callActivityOnUserLeaving(android.app.Activity).

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