Compartilhar via


UserManager.DisallowCreateWindows Field

Definition

Specifies that windows besides app windows should not be created.

[Android.Runtime.Register("DISALLOW_CREATE_WINDOWS")]
public const string DisallowCreateWindows;
[<Android.Runtime.Register("DISALLOW_CREATE_WINDOWS")>]
val mutable DisallowCreateWindows : string

Field Value

Attributes

Remarks

Specifies that windows besides app windows should not be created. This will block the creation of the following types of windows. <li>LayoutParams#TYPE_TOAST</li> <li>LayoutParams#TYPE_APPLICATION_OVERLAY</li>

This can only be set by device owners and profile owners on the primary user. The default value is false.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_WINDOWS can set this restriction using the DevicePolicyManager APIs mentioned below.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_CREATE_WINDOWS.

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

See also