class ClientStateWatcher

Defined at line 2140 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/hlcpp/fuchsia/thermal/cpp/fidl.h

Allows a client to watch for changes to its thermal state.

This protocol cannot be connected to the service directly. Instead, the

server endpoint of a `ClientStateWatcher` channel must be connected to the

thermal state of the desired client type using the

[`ClientStateConnector.Connect'] method. The client endpoint of a

`ClientStateWatcher` channel is only useful after it has been connected in

this way.

Public Methods

void ~ClientStateWatcher ()
void Watch (WatchCallback callback)

Watches for changes to a client's thermal state.

A client's thermal state is determined according to the central thermal

configuration of its specific type. See the

[README.md](/src/power/power-manager/thermal_config/README.md) for more

details.

On a given connection, the first call will return immediately with the

client's current thermal state. Subsequent `Watch` requests will only

return a new `state` if the client's thermal state has changed. This

follows the [hanging

get](https://fuchsia.dev/fuchsia-src/concepts/api/fidl#hanging-get)

pattern.

- `state` is an unsigned integer representing the client's thermal

state.