class NightMode
Defined at line 12213 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
Modify or watch Night Mode setting. Night mode puts the device in a
restricted mode which can be overrided if the user prefers. During night
mode, the following settings apply as per night mode parameters:
1. DoNotDisturb is enabled/not.
2. System volume is set to an override maximum.
3. LED Brightness is set to an overridable maximum.
4. Sleep mode is enabled/not.
Supported SettingsEpitaph enums:
REQUEST_NOT_SUPPORTED, INTERNAL_SERVICE_ERROR, PERSISTENT_STORAGE_ERROR
Public Members
static const char[] Name_
Public Methods
void ~NightMode ()
void Watch (WatchCallback callback)
Gets the current [`NightModeSettings`]. Returns immediately on first
call; subsequent calls return when the values change.
If this call fails, it is considered a fatal error and the channel
will be closed.
void Set (::fuchsia::settings::NightModeSettings settings, SetCallback callback)
Sets [`NightModeSettings`] settings. Any field not explicitly set in
the table performs a no-op, and will not make any changes.