Activity.MoveTaskToBack(Boolean) Method

Definition

Move the task containing this activity to the back of the activity stack.

[Android.Runtime.Register("moveTaskToBack", "(Z)Z", "GetMoveTaskToBack_ZHandler")]
public virtual bool MoveTaskToBack (bool nonRoot);
[<Android.Runtime.Register("moveTaskToBack", "(Z)Z", "GetMoveTaskToBack_ZHandler")>]
abstract member MoveTaskToBack : bool -> bool
override this.MoveTaskToBack : bool -> bool

Parameters

nonRoot
Boolean

If false then this only works if the activity is the root of a task; if true it will work for any activity in a task.

Returns

If the task was moved (or it was already at the back) true is returned, else false.

Attributes

Remarks

Move the task containing this activity to the back of the activity stack. The activity's order within the task is unchanged.

Java documentation for android.app.Activity.moveTaskToBack(boolean).

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