NightModeIndicator
public final 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 |
|
|---|---|
static final int |
NOT_RECOMMENDED = 1Night mode is not recommended. |
static final int |
RECOMMENDED = 2Night mode is recommended. |
static final int |
UNKNOWN = 0Night mode indicator is unknown. |
Constants
NOT_RECOMMENDED
public static final int NOT_RECOMMENDED = 1
Night mode is not recommended.
Lighting conditions are sufficiently bright. The environment conditions do not meet the criteria for Night Mode.
RECOMMENDED
public static final int RECOMMENDED = 2
Night mode is recommended.
Low-light conditions detected. The environment conditions meet the criteria for Night Mode.
UNKNOWN
public static final int UNKNOWN = 0
Night mode indicator is unknown.
Scene lighting cannot yet be accurately assessed. Apps should generally hide any suggestion UI in this state.