template <>
class WireServer
Defined at line 685 of file fidling/gen/sdk/fidl/fuchsia.ui.input3/fuchsia.ui.input3/cpp/fidl/fuchsia.ui.input3/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_ui_input3::KeyboardListener>|
and |::fidl::ServerEnd
<
::fuchsia_ui_input3::KeyboardListener>|).
Public Methods
void OnKeyEvent (::fuchsia_ui_input3::wire::KeyboardListenerOnKeyEventRequest * request, OnKeyEventCompleter::Sync & completer)
Called when a key event takes place, such as key press or release.
Protocol implementers must respond to acknowledge the event by returning Status
in a timely manner, i.e. not introducing significant delays to the
input pipeline (typically 10s of milliseconds).
Returning `NOT_HANDLED` means the event may be offered to other
clients of other related APIs.
Clients that do not acknowledge their events will eventually be disconnected.
Notification is only dispatched to a view that has focus. No other views,
including parents or children, will get notified specifically via `OnKeyEvent`.
void WireServer ()
Defined at line 688 of file fidling/gen/sdk/fidl/fuchsia.ui.input3/fuchsia.ui.input3/cpp/fidl/fuchsia.ui.input3/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 689 of file fidling/gen/sdk/fidl/fuchsia.ui.input3/fuchsia.ui.input3/cpp/fidl/fuchsia.ui.input3/cpp/wire_messaging.h