class Light

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

Public Members

static const char[] Name_

Public Methods

void ~Light ()
void WatchLightGroups (WatchLightGroupsCallback callback)

Fetches information on the controllable light groups on the device.

Returns immediately on first call; subsequent calls return when the

value changes.

If this call fails, it is considered a fatal error and the channel

will be closed.

void WatchLightGroup (::std::string name, WatchLightGroupCallback callback)

Fetches information on an individual light group on the device with the

given name. Returns immediately on first call; subsequent calls return

when the value changes.

If this call fails, it is considered a fatal error and the channel

will be closed. If the failure is due to an invalid light group name,

the channel will be closed with a NOT_FOUND epitaph.

void SetLightGroupValues (::std::string name, ::std::vector< ::fuchsia::settings::LightState> state, SetLightGroupValuesCallback callback)

Sets the values for the lights in the group with the given name.

If the provided value does not match the light group's type, this

call will fail.

The requested changes may not take immediate effect if

the light is forced to a certain state by the device's hardware. This

call will still succeed, but the light's value may not change.