Share via


SystemOnBackInvokedCallbacks.MoveTaskToBackCallback(Activity) Method

Definition

Get a callback to triggers Activity#moveTaskToBack(boolean) on the associated Activity, moving the task containing the activity to the background.

[Android.Runtime.Register("moveTaskToBackCallback", "(Landroid/app/Activity;)Landroid/window/OnBackInvokedCallback;", "", ApiSince=36)]
public static Android.Window.IOnBackInvokedCallback MoveTaskToBackCallback(Android.App.Activity activity);
[<Android.Runtime.Register("moveTaskToBackCallback", "(Landroid/app/Activity;)Landroid/window/OnBackInvokedCallback;", "", ApiSince=36)>]
static member MoveTaskToBackCallback : Android.App.Activity -> Android.Window.IOnBackInvokedCallback

Parameters

activity
Activity

The associated Activity

Returns

Attributes

Remarks

Get a callback to triggers Activity#moveTaskToBack(boolean) on the associated Activity, moving the task containing the activity to the background. The system will play the corresponding transition animation, regardless of whether the activity is the root activity of the task.

Java documentation for android.window.SystemOnBackInvokedCallbacks.moveTaskToBackCallback(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