class DoNotDisturbSettings

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

Settings related to do-not-disturb (DND) mode.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

const bool & user_initiated_do_not_disturb ()

If true, the device is in do-not-disturb (DND) mode. Change this value

if you're directly responding to a user-initiated event.

Note that the device could still be in DND mode even if this is set to

`false`, as [`night_mode_initiated_do_not_disturb`] might be `true`. To

actually disable DND mode, set both fields to `false`.

To know whether DND is enabled, you need to do a boolean OR of both

fields.

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

bool has_user_initiated_do_not_disturb ()

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

bool * mutable_user_initiated_do_not_disturb ()

If true, the device is in do-not-disturb (DND) mode. Change this value

if you're directly responding to a user-initiated event.

Note that the device could still be in DND mode even if this is set to

`false`, as [`night_mode_initiated_do_not_disturb`] might be `true`. To

actually disable DND mode, set both fields to `false`.

To know whether DND is enabled, you need to do a boolean OR of both

fields.

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

void clear_user_initiated_do_not_disturb ()

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

const bool & night_mode_initiated_do_not_disturb ()

If true, the device is in do-not-disturb (DND) mode. Change this value

if you're trying to enable or disable DND based on a nightly schedule.

Note that the device could still be in DND mode even if this is set to

`false`, as [`user_initiated_do_not_disturb`] might be `true`. Do not

set that field to `false` unless you're directly responding to a

user-initiated event.

To know whether DND is enabled, you need to do a boolean OR of both

fields.

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

bool has_night_mode_initiated_do_not_disturb ()

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

bool * mutable_night_mode_initiated_do_not_disturb ()

If true, the device is in do-not-disturb (DND) mode. Change this value

if you're trying to enable or disable DND based on a nightly schedule.

Note that the device could still be in DND mode even if this is set to

`false`, as [`user_initiated_do_not_disturb`] might be `true`. Do not

set that field to `false` unless you're directly responding to a

user-initiated event.

To know whether DND is enabled, you need to do a boolean OR of both

fields.

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

void clear_night_mode_initiated_do_not_disturb ()

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

DoNotDisturbSettings & set_user_initiated_do_not_disturb (bool _value)
DoNotDisturbSettings & set_night_mode_initiated_do_not_disturb (bool _value)
void DoNotDisturbSettings ()
void DoNotDisturbSettings (DoNotDisturbSettings && other)
void ~DoNotDisturbSettings ()
DoNotDisturbSettings & operator= (DoNotDisturbSettings && other)
::std::unique_ptr<DoNotDisturbSettings> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, DoNotDisturbSettings * _value, size_t _offset)
zx_status_t Clone (DoNotDisturbSettings * _result)