class DoNotDisturb

Defined at line 11578 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h

Modify or watch do-not-disturb (DND) mode. While DND is active, distractions

created by the device are reduced or eliminated. E.g. bootup is silent,

incoming calls could be rejected or silent, and notifications could be

paused, silent, or hidden. High-priority disruptions like alarms can be

allowed.

Supported SettingsEpitaph enums:

REQUEST_NOT_SUPPORTED, INTERNAL_SERVICE_ERROR, PERSISTENT_STORAGE_ERROR

Public Members

static const char[] Name_

Public Methods

void ~DoNotDisturb ()
void Watch (WatchCallback callback)

Gets the current [`DoNotDisturbSettings`]. 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::DoNotDisturbSettings settings, SetCallback callback)

Sets [`DoNotDisturbSettings`] settings. Any field not explicitly set in

the table performs a no-op, and will not make any changes.