screenBrightnessMode property

String? screenBrightnessMode
getter/setter pair

Controls the screen brightness mode.

Optional. Possible string values are:

  • "SCREEN_BRIGHTNESS_MODE_UNSPECIFIED" : Unspecified. Defaults to BRIGHTNESS_USER_CHOICE.
  • "BRIGHTNESS_USER_CHOICE" : The user is allowed to configure the screen brightness. screenBrightness must not be set.
  • "BRIGHTNESS_AUTOMATIC" : The screen brightness mode is automatic in which the brightness is automatically adjusted and the user is not allowed to configure the screen brightness. screenBrightness can still be set and it is taken into account while the brightness is automatically adjusted. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.
  • "BRIGHTNESS_FIXED" : The screen brightness mode is fixed in which the brightness is set to screenBrightness and the user is not allowed to configure the screen brightness. screenBrightness must be set. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.

Implementation

core.String? screenBrightnessMode;