public static interface NightDisplayController.Callback
Modifier and Type | Method and Description |
---|---|
default void |
onActivated(boolean activated)
Callback invoked when the activated state changes.
|
default void |
onAutoModeChanged(int autoMode)
Callback invoked when the auto mode changes.
|
default void |
onCustomEndTimeChanged(NightDisplayController.LocalTime endTime)
Callback invoked when the time to automatically deactivate Night display changes.
|
default void |
onCustomStartTimeChanged(NightDisplayController.LocalTime startTime)
Callback invoked when the time to automatically activate Night display changes.
|
default void onActivated(boolean activated)
activated
- true
if Night display is activateddefault void onAutoModeChanged(int autoMode)
autoMode
- the auto mode to usedefault void onCustomStartTimeChanged(NightDisplayController.LocalTime startTime)
startTime
- the local time to automatically activate Night displaydefault void onCustomEndTimeChanged(NightDisplayController.LocalTime endTime)
endTime
- the local time to automatically deactivate Night display