template <>

class Server

Defined at line 180 of file fidling/gen/sdk/fidl/fuchsia.ui.policy/fuchsia.ui.policy/cpp/fidl/fuchsia.ui.policy/cpp/natural_messaging.h

Public Methods

void RegisterMediaButtonsListener (RegisterMediaButtonsListenerRequest & request, RegisterMediaButtonsListenerCompleter::Sync & completer)

Registers a listener to receive media button related events, such as

changes from volume buttons and mute switches.

void RegisterListener (RegisterListenerRequest & request, RegisterListenerCompleter::Sync & completer)

Registers a listener to receive media button related events, such as

changes from volume buttons and mute switches.

On registration, the `listener` receives the last media button event that

occurred, if one exists, and all media button events going forward.

void RegisterTouchButtonsListener (RegisterTouchButtonsListenerRequest & request, RegisterTouchButtonsListenerCompleter::Sync & completer)

Registers a listener to receive touch button related events.

On registration, the `listener` receives the last touch button event that

occurred, if one exists, and all touch button events going forward.

void Server ()

Defined at line 183 of file fidling/gen/sdk/fidl/fuchsia.ui.policy/fuchsia.ui.policy/cpp/fidl/fuchsia.ui.policy/cpp/natural_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~Server ()

Defined at line 184 of file fidling/gen/sdk/fidl/fuchsia.ui.policy/fuchsia.ui.policy/cpp/fidl/fuchsia.ui.policy/cpp/natural_messaging.h