template <>

class WireServer

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

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_ui_composition::ParentViewportWatcher>|

and |::fidl::ServerEnd

<

::fuchsia_ui_composition::ParentViewportWatcher>|).

Public Methods

void GetLayout (GetLayoutCompleter::Sync & completer)

A hanging get for receiving layout information. Clients may receive layout information

before the ParentViewportWatcher operation has been presented. This allows children to

layout their content before their first call to [`Present`]. In transition cases where two

ParentViewportWatcher channels exist at the same time, both protocol instances will be

receiving different layout information.

This hanging get will only fire when the LayoutInfo is different than the previously

returned LayoutInfo. Note that, since LayoutInfo is a table, only some fields may have

changed.

It is invalid to call `GetLayout` while a previous call is still pending. Doing so will

cause both this channel and the Flatland channel that handed out ParentViewportWatcher to be

closed.

void GetStatus (GetStatusCompleter::Sync & completer)

A hanging get for receiving the status of the parent Viewport. This provides global

connectivity information to the child.

This hanging get will only fire when the ParentViewportStatus is different than the

previously returned ParentViewportStatus.

It is invalid to call `GetStatus` while a previous call is still pending. Doing so will

cause both this channel and the Flatland channel that handed out ParentViewportWatcher to be

closed.

void WireServer ()

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