Language

Manifest.Permission.UsePinnedWindowingLayer Field

Definition

Allows an application to use ActivityManager.AppTask.WINDOWING_LAYER_PINNED for its Tasks, typically requested via ActivityManager.AppTask.requestWindowingLayer(int, Executor, OutcomeReceiver).

[Android.Runtime.Register("USE_PINNED_WINDOWING_LAYER", ApiSince=37)]
public const string UsePinnedWindowingLayer;
[<Android.Runtime.Register("USE_PINNED_WINDOWING_LAYER", ApiSince=37)>]
val mutable UsePinnedWindowingLayer : string

Field Value

Attributes

Remarks

Allows an application to use ActivityManager.AppTask.WINDOWING_LAYER_PINNED for its Tasks, typically requested via ActivityManager.AppTask.requestWindowingLayer(int, Executor, OutcomeReceiver).

Granting this permission allows an app to request its task be placed 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 initial size and position; Making the task non-movable programmatically (including restrictions on workarounds like resizing); Providing users with immediate settings access to disable the feature.

See the API documentation for ActivityManager.AppTask.requestWindowingLayer(int, Executor, OutcomeReceiver) for the full documentation.

Protection level: normal

Android reference for android.Manifest.permission.USE_PINNED_WINDOWING_LAYER.

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