NightModeIndicator


class NightModeIndicator


Defines the valid states for Night Mode Indicator, as returned by getNightModeIndicator.

These states indicate whether the current environment conditions meet the criteria for Night Mode.

Summary

Constants

const Int

Night mode is not recommended.

const Int

Night mode is recommended.

const Int

Night mode indicator is unknown.

Constants

NOT_RECOMMENDED

Added in 1.7.0-alpha02
const val NOT_RECOMMENDED = 1: Int

Night mode is not recommended.

Lighting conditions are sufficiently bright. The environment conditions do not meet the criteria for Night Mode.

RECOMMENDED

Added in 1.7.0-alpha02
const val RECOMMENDED = 2: Int

Night mode is recommended.

Low-light conditions detected. The environment conditions meet the criteria for Night Mode.

UNKNOWN

Added in 1.7.0-alpha02
const val UNKNOWN = 0: Int

Night mode indicator is unknown.

Scene lighting cannot yet be accurately assessed. Apps should generally hide any suggestion UI in this state.