ActivityManager.MoveTaskToFront Method

Definition

Overloads

Name Description
MoveTaskToFront(Int32, MoveTaskFlags)

Equivalent to calling moveTaskToFront(int,int,Bundle) with a null options argument.

MoveTaskToFront(Int32, Int32)
MoveTaskToFront(Int32, MoveTaskFlags, Bundle)

Ask that the task associated with a given task ID be moved to the front of the stack, so it is now visible to the user.

MoveTaskToFront(Int32, MoveTaskFlags)

Equivalent to calling moveTaskToFront(int,int,Bundle) with a null options argument.

[Android.Runtime.Register("moveTaskToFront", "(II)V", "GetMoveTaskToFront_IIHandler")]
[Android.Runtime.RequiresPermission("android.permission.REORDER_TASKS")]
public virtual void MoveTaskToFront(int taskId, Android.App.MoveTaskFlags flags);
[<Android.Runtime.Register("moveTaskToFront", "(II)V", "GetMoveTaskToFront_IIHandler")>]
[<Android.Runtime.RequiresPermission("android.permission.REORDER_TASKS")>]
abstract member MoveTaskToFront : int * Android.App.MoveTaskFlags -> unit
override this.MoveTaskToFront : int * Android.App.MoveTaskFlags -> unit

Parameters

taskId
Int32

int: The identifier of the task to be moved, as found in RunningTaskInfo or RecentTaskInfo.

flags
MoveTaskFlags

int: Additional operational flags. Value is either 0 or a combination of the following: MOVE_TASK_WITH_HOME MOVE_TASK_NO_USER_ACTION

Attributes

Remarks

Equivalent to calling moveTaskToFront(int,int,Bundle) with a null options argument. Requires Manifest.permission.REORDER_TASKS

Android reference for android.app.ActivityManager.moveTaskToFront.

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

MoveTaskToFront(Int32, Int32)

public void MoveTaskToFront(int taskId, int flags);
member this.MoveTaskToFront : int * int -> unit

Parameters

taskId
Int32
flags
Int32

Remarks

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

MoveTaskToFront(Int32, MoveTaskFlags, Bundle)

Ask that the task associated with a given task ID be moved to the front of the stack, so it is now visible to the user.

[Android.Runtime.Register("moveTaskToFront", "(IILandroid/os/Bundle;)V", "GetMoveTaskToFront_IILandroid_os_Bundle_Handler")]
[Android.Runtime.RequiresPermission("android.permission.REORDER_TASKS")]
public virtual void MoveTaskToFront(int taskId, Android.App.MoveTaskFlags flags, Android.OS.Bundle? options);
[<Android.Runtime.Register("moveTaskToFront", "(IILandroid/os/Bundle;)V", "GetMoveTaskToFront_IILandroid_os_Bundle_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.REORDER_TASKS")>]
abstract member MoveTaskToFront : int * Android.App.MoveTaskFlags * Android.OS.Bundle -> unit
override this.MoveTaskToFront : int * Android.App.MoveTaskFlags * Android.OS.Bundle -> unit

Parameters

taskId
Int32

int: The identifier of the task to be moved, as found in RunningTaskInfo or RecentTaskInfo.

flags
MoveTaskFlags

int: Additional operational flags. Value is either 0 or a combination of the following: MOVE_TASK_WITH_HOME MOVE_TASK_NO_USER_ACTION

options
Bundle

Bundle: Additional options for the operation, either null or as per Context.startActivity(Intent, Bundle).

Attributes

Remarks

Ask that the task associated with a given task ID be moved to the front of the stack, so it is now visible to the user. Requires Manifest.permission.REORDER_TASKS

Android reference for android.app.ActivityManager.moveTaskToFront.

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