ActivityManager.AppTask.WindowingLayerPinned Field
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.
Caution
This constant will be removed in the future version. Use Android.App.ActivityManagerAppTaskWindowingLayer enum directly instead of this field.
The windowing layer for pinned windows.
[Android.Runtime.Register("WINDOWING_LAYER_PINNED", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.ActivityManagerAppTaskWindowingLayer enum directly instead of this field.", true)]
public const Android.App.ActivityManagerAppTaskWindowingLayer WindowingLayerPinned = 2;
[<Android.Runtime.Register("WINDOWING_LAYER_PINNED", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.ActivityManagerAppTaskWindowingLayer enum directly instead of this field.", true)>]
val mutable WindowingLayerPinned : Android.App.ActivityManagerAppTaskWindowingLayer
Field Value
Value = 2- Attributes
Remarks
The windowing layer for pinned windows. These windows are typically displayed above normal application windows.
To ensure system integrity and a consistent user experience, the system imposes several restrictions on tasks using this layer. These may include, but are not limited to: Forcing the task to be completely opaque and display system decorations; Strictly limiting the number of tasks in this layer (e.g., only one at a time); Limiting the application's control over the task's size and position; Limiting the maximum window size to which the user can resize the task; Making the task non-movable programmatically (including restrictions on workarounds like resizing); Providing users with immediate settings access to disable the feature; Providing users with a way to close the window; The task may be finished by the system if it can no longer be hosted on this layer due to windowing changes; The available display modes may be limited for tasks on this layer. These may include, but are not limited to: Picture-in-Picture mode, Split-screen mode, and fullscreen
This layer might be shared with Picture-in-Picture (PiP) tasks; therefore, tasks on this layer might be dismissed when another enters PiP.
The task's window on this layer has the following requirements:; Must be opaque; Must have affordances to close the window and to allow users to disable showing and running tasks on this layer, per app; Must have a minimum size of 220dp according to the established Multi-windows CDD requirements; The task cannot change to another layer unless requested by the app with a call to AppTask.requestWindowingLayer.
Android reference for android.app.ActivityManager.AppTask.WINDOWING_LAYER_PINNED.
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.