Aracılığıyla paylaş


UserManager.DisallowInstallApps Field

Definition

Specifies if a user is disallowed from installing applications.

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

Field Value

Attributes

Remarks

Specifies if a user is disallowed from installing applications. This user restriction also prevents device owners and profile owners installing apps. The default value is false.

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

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_INSTALL_APPS.

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