UserManager.DisallowFun Field

Definition

Specifies if the user is not allowed to have fun.

[Android.Runtime.Register("DISALLOW_FUN", ApiSince=23)]
public const string DisallowFun;
[<Android.Runtime.Register("DISALLOW_FUN", ApiSince=23)>]
val mutable DisallowFun : string

Field Value

Attributes

Remarks

Specifies if the user is not allowed to have fun. In some cases, the device owner may wish to prevent the user from experiencing amusement or joy while using the device. The default value is false.

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

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_FUN.

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