template <>

class WireServer

Defined at line 1763 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::View>|

and |::fidl::ServerEnd

<

::fuchsia_ui_views::View>|).

Public Methods

void Present (::fuchsia_ui_views::wire::ViewPresentRequest * request, PresentCompleter::Sync & completer)

Provides the View with an attachment point to Scenic's scene graph.

When `Present()` is called the View's implementation should create a

View resource within Scenic by providing it with the `view_token` (using

a `fuchsia.ui.gfx.CreateResourceCmd` and `fuchsia.ui.gfx.ViewArgs`).

Then the implementation should attach its graphical content to the

newly-created View resource using a `fuchsia.ui.gfx.AddChildCmd`.

If the implementation already owns a View resource (because `Present()`

had already been called before), then it should terminate the connection

with an error.

TODO(https://fxbug.dev/42098670): Allow re-parenting `View`s with a new `Present()` call.

void WireServer ()

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