Share via


UserManager.DisallowConfigBrightness Field

Definition

Specifies if a user is disallowed from configuring brightness.

[Android.Runtime.Register("DISALLOW_CONFIG_BRIGHTNESS", ApiSince=28)]
public const string DisallowConfigBrightness;
[<Android.Runtime.Register("DISALLOW_CONFIG_BRIGHTNESS", ApiSince=28)>]
val mutable DisallowConfigBrightness : string

Field Value

Attributes

Remarks

Specifies if a user is disallowed from configuring brightness. When device owner sets it, it'll only be applied on the target(system) user.

The default value is false.

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

This user restriction has no effect on managed profiles.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_CONFIG_BRIGHTNESS.

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