ActivityOptions.MakeTaskLaunchBehind 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.
This method was deprecated in API level 10000.
[Android.Runtime.Register("makeTaskLaunchBehind", "()Landroid/app/ActivityOptions;", "")]
public static Android.App.ActivityOptions? MakeTaskLaunchBehind();
[<Android.Runtime.Register("makeTaskLaunchBehind", "()Landroid/app/ActivityOptions;", "")>]
static member MakeTaskLaunchBehind : unit -> Android.App.ActivityOptions
Returns
- Attributes
Remarks
This method was deprecated in API level 10000. This method is deprecated because starting an Activity behind the current task lacks transparency and violates user expectations. Alternative: Start the target Activity, then immediately call ActivityManager.AppTask.moveToFront() on the caller's task to restore its foreground focus.
If set along with Intent.FLAG_ACTIVITY_NEW_DOCUMENT then the task being launched will not be presented to the user but will instead be only available through the recents task list. In addition, the new task wil be affiliated with the launching activity's task. Affiliated tasks are grouped together in the recents task list. This behavior is not supported for activities with launchMode values of singleInstance or singleTask.
Android reference for android.app.ActivityOptions.makeTaskLaunchBehind.
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.