Google is committed to advancing racial equity for Black communities. See how.

fuchsia.power.button

PROTOCOLS

Monitor

Defined in fuchsia.power.button/button.fidl

Protocol to manage the power button monitor. This protocol allows applications to configure the action performed when the power button is pressed. It is intended for board-specific components that need to use the power button for their own purposes (e.g. as a physical presence check).

GetAction

Get the current action for the power button. Always returns immediately, never fails.

Request

<EMPTY>

Response

NameType
action Action

SetAction

Set the action that will be performed when the power button is pressed. Always returns immediately, never fails.

Request

NameType
action Action

Response

<EMPTY>

STRUCTS

ENUMS

Action flexible

Type: uint32

Defined in fuchsia.power.button/button.fidl

Action to perform when power button is pressed.

NameValueDescription
IGNORE 0

Do nothing.

SHUTDOWN 1

Shutdown the system.