template <>

class WireServer

Defined at line 321 of file fidling/gen/sdk/fidl/fuchsia.ui.app/fuchsia.ui.app/cpp/fidl/fuchsia.ui.app/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_ui_app::ViewProvider>|

and |::fidl::ServerEnd

<

::fuchsia_ui_app::ViewProvider>|).

Public Methods

void CreateViewWithViewRef (::fuchsia_ui_app::wire::ViewProviderCreateViewWithViewRefRequest * request, CreateViewWithViewRefCompleter::Sync & completer)

Creates a new View under the control of the ViewProvider.

`token` is one half of the shared eventpair which will bind the new View

to its associated ViewHolder. The ViewProvider will use `token` to

create its internal View representation. The caller is expected to use

its half to create corresponding ViewHolder object.

`view_ref_control` and `view_ref` are two typed handles to each half of the

same event pair. The `view_ref` can be cloned before passing it to this method,

which will allow clients to track the view (e.g., in a focus chain update).

`view_ref_control` must not have the ZX_RIGHT_DUPLICATE set, or view creation

will fail.

void CreateView2 (::fuchsia_ui_app::wire::ViewProviderCreateView2Request * request, CreateView2Completer::Sync & completer)

Creates a new View under the control of the ViewProvider.

The args are provided as a table, for forward compatibility. See documentation on the

individual table fields.

void WireServer ()

Defined at line 324 of file fidling/gen/sdk/fidl/fuchsia.ui.app/fuchsia.ui.app/cpp/fidl/fuchsia.ui.app/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 325 of file fidling/gen/sdk/fidl/fuchsia.ui.app/fuchsia.ui.app/cpp/fidl/fuchsia.ui.app/cpp/wire_messaging.h