template <>
class WireServer
Defined at line 1516 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_ui_views::ViewRefInstalled>|
and |::fidl::ServerEnd
<
::fuchsia_ui_views::ViewRefInstalled>|).
Public Methods
void Watch (::fuchsia_ui_views::wire::ViewRefInstalledWatchRequest * request, WatchCompleter::Sync & completer)
Sets up a callback to fire when the requested |view_ref| is installed.
- If |view_ref| has not already been installed, the |Watch| response
will fire when it is.
- If |view_ref| has already been installed, the |Watch| response will
fire immediately.
- If |view_ref| is invalid, or becomes invalid (perhaps because the view
was destroyed), the |Watch| call returns with an error. The error is
not guaranteed to be immediate, but a ViewRef holder can itself
determine ViewRef validity by listening for ZX_EVENTPAIR_PEER_CLOSED.
Flow control: The caller is allowed multiple |Watch| calls on multiple
ViewRefs. There is at most one response per call back to the client.
Note: Prior to installation, this |Watch| call is kept alive as long as
the ViewRef is valid.
void WireServer ()
Defined at line 1519 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/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 1520 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/wire_messaging.h