class ShutdownWatcher

Defined at line 4250 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.statecontrol/fuchsia.hardware.power.statecontrol/hlcpp/fuchsia/hardware/power/statecontrol/cpp/fidl.h

Allows components to be notified when the Shutdown method is called.

Watchers will be given 'MAX_SHUTDOWN_WATCHER_RESPONSE_TIME_SECONDS' to return

before the system power state is changed. The channel will be used once to

send a notification to the watcher. Once the watcher responds or the timeout

expires, the channel will be closed by the client of ShutdownWatcher.

Public Methods

void ~ShutdownWatcher ()
void OnShutdown (::fuchsia::hardware::power::statecontrol::ShutdownOptions options, OnShutdownCallback callback)

Protected Methods

void handle_unknown_method (uint64_t ordinal, bool method_has_response)

Friends

class ShutdownWatcher_Stub