Partager via


UserManager.DisallowUninstallApps Field

Definition

Specifies if a user is disallowed from uninstalling applications.

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

Field Value

Attributes

Remarks

Specifies if a user is disallowed from uninstalling applications. 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_UNINSTALL_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