class RegisterSuspendBlocker

Defined at line 236 of file fidling/gen/sdk/fidl/fuchsia.power.system/fuchsia.power.system/cpp/fidl/fuchsia.power.system/cpp/markers.h

Registers a suspend blocker.

On successful registration, a wake lease token is returned. This token

prevents hardware platform suspension while it exists. Clients are

expected to perform any initialization of the given `suspend_blocker`

server while holding this token. Additionally, this means the first call

`suspend_blocker` will get is `BeforeSuspend`.

To unregister, close the `SuspendBlocker` channel.

If any required field of the table is missing, the error

[`RegisterSuspendBlockerError.INVALID_ARGS`] is returned.

If an error occurs while registering `suspend_blocker`, it will be

dropped, closing the channel.

Public Members

static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal