ActivityManager.MoveTaskToFront 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.
Overloads
MoveTaskToFront(Int32, MoveTaskFlags) |
Equivalent to calling |
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
The identifier of the task to be moved, as found in
RunningTaskInfo
or RecentTaskInfo
.
- flags
- MoveTaskFlags
Additional operational flags.
- Attributes
Remarks
Equivalent to calling #moveTaskToFront(int, int, Bundle)
with a null options argument.
Java documentation for android.app.ActivityManager.moveTaskToFront(int, int)
.
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
The identifier of the task to be moved, as found in
RunningTaskInfo
or RecentTaskInfo
.
- flags
- MoveTaskFlags
Additional operational flags.
- options
- Bundle
Additional options for the operation, either null or
as per Context#startActivity(Intent, android.os.Bundle)
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.
Java documentation for android.app.ActivityManager.moveTaskToFront(int, int, android.os.Bundle)
.
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.