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 |
NOT_RECOMMENDED = 1Night mode is not recommended. |
const Int |
RECOMMENDED = 2Night mode is recommended. |
const Int |
UNKNOWN = 0Night mode indicator is unknown. |
Constants
NOT_RECOMMENDED
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
const val RECOMMENDED = 2: Int
Night mode is recommended.
Low-light conditions detected. The environment conditions meet the criteria for Night Mode.
UNKNOWN
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.