Android.App.ActivityManager.MoveTaskToFront Method
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.

Syntax

[Android.Runtime.Register("moveTaskToFront", "(IILandroid/os/Bundle;)V", "GetMoveTaskToFront_IILandroid_os_Bundle_Handler")]
public virtual void MoveTaskToFront (int taskId, [Android.Runtime.GeneratedEnum] MoveTaskFlags flags, Android.OS.Bundle options)

Parameters

taskId
The identifier of the task to be moved, as found in NoType:android/app/ActivityManager$RunningTaskInfo;Href=../../../reference/android/app/ActivityManager.RunningTaskInfo.html or NoType:android/app/ActivityManager$RecentTaskInfo;Href=../../../reference/android/app/ActivityManager.RecentTaskInfo.html.
flags
Additional operational flags, 0 or more of ActivityManager.MOVE_TASK_WITH_HOME, ActivityManager.MOVE_TASK_NO_USER_ACTION.
options
Additional options for the operation, either null or as per Android.Content.Context.StartActivity(Android.Content.Intent, Android.OS.Bundle).

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 that the caller hold permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#REORDER_TASKS or a SecurityException will be thrown.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16