template <>
class WireServer
Defined at line 589 of file fidling/gen/sdk/fidl/fuchsia.ui.policy/fuchsia.ui.policy/cpp/fidl/fuchsia.ui.policy/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_ui_policy::DeviceListenerRegistry>|
and |::fidl::ServerEnd
<
::fuchsia_ui_policy::DeviceListenerRegistry>|).
Public Methods
void RegisterMediaButtonsListener (::fuchsia_ui_policy::wire::DeviceListenerRegistryRegisterMediaButtonsListenerRequest * request, RegisterMediaButtonsListenerCompleter::Sync & completer)
Registers a listener to receive media button related events, such as
changes from volume buttons and mute switches.
void RegisterListener (::fuchsia_ui_policy::wire::DeviceListenerRegistryRegisterListenerRequest * 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 (::fuchsia_ui_policy::wire::DeviceListenerRegistryRegisterTouchButtonsListenerRequest * 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 WireServer ()
Defined at line 592 of file fidling/gen/sdk/fidl/fuchsia.ui.policy/fuchsia.ui.policy/cpp/fidl/fuchsia.ui.policy/cpp/wire_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 ~WireServer ()
Defined at line 593 of file fidling/gen/sdk/fidl/fuchsia.ui.policy/fuchsia.ui.policy/cpp/fidl/fuchsia.ui.policy/cpp/wire_messaging.h