template <>

class WireServer

Defined at line 960 of file fidling/gen/sdk/fidl/fuchsia.ui.composition.internal/fuchsia.ui.composition.internal/cpp/fidl/fuchsia.ui.composition.internal/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_internal::ScreenCapture>|

and |::fidl::ServerEnd

<

::fuchsia_ui_composition_internal::ScreenCapture>|).

Public Methods

void Configure (::fuchsia_ui_composition_internal::wire::ScreenCaptureConfig * request, ConfigureCompleter::Sync & completer)

Clients should first use the ['fuchsia.ui.composition/Allocator']

protocol to register a BufferCollection.

Similarly, the clients are responsible for specifying a buffer big

enough for the image. If the buffer is too small, an

attempt will be made to render the image, however, it will not be

guaranteed to contain the complete image.

void GetNextFrame (GetNextFrameCompleter::Sync & completer)

[`GetNextFrame`] returns the latest unseen-by-the-client frame as soon

as possible. On the first call to [`GetNextFrame`] and any subsequent

calls that have not recieved the previous expected requested frame,

[`GetNextFrame`] will return immediately with the last frame to be

rendered. If the client had requested the previous frame, the server

will wait until the next frame is produced to return.

After the client finishes processing the returned buffer, they should

drop the eventpair to signal to the server that the buffer can be

re-used.

It is invalid to call [`GetNextFrame`] while a previous call is still

pending. Doing so will return a BAD_HANGING_GET error and cause the

channel to close.

void WireServer ()

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