screenTimeoutMode property

String? screenTimeoutMode
getter/setter pair

Controls whether the user is allowed to configure the screen timeout.

Optional. Possible string values are:

  • "SCREEN_TIMEOUT_MODE_UNSPECIFIED" : Unspecified. Defaults to SCREEN_TIMEOUT_USER_CHOICE.
  • "SCREEN_TIMEOUT_USER_CHOICE" : The user is allowed to configure the screen timeout. screenTimeout must not be set.
  • "SCREEN_TIMEOUT_ENFORCED" : The screen timeout is set to screenTimeout and the user is not allowed to configure the timeout. screenTimeout 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? screenTimeoutMode;