SystemOnBackInvokedCallbacks.MoveTaskToBackCallback(Activity) 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.
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.
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.