template <>

class Server

Defined at line 595 of file fidling/gen/sdk/fidl/fuchsia.camera3/fuchsia.camera3/cpp/fidl/fuchsia.camera3/cpp/natural_messaging.h

Public Methods

void GetIdentifier (GetIdentifierCompleter::Sync & completer)

Returns an identifier for the camera. If present, identical devices on different systems

will have the same identifier. Clients may use this to determine if additional semantics

known a priori for a given device apply to the current camera.

void GetConfigurations (GetConfigurationsCompleter::Sync & completer)

Returns a list of configurations supported by the camera. All cameras will have at least

one configuration. The values returned are immutable - they will not change for the

lifetime of the client's connection to the Camera.

void GetConfigurations2 (GetConfigurations2Completer::Sync & completer)

Returns a list of configurations supported by the camera. All cameras will have at least

one configuration. The values returned are immutable - they will not change for the

lifetime of the client's connection to the Camera.

void Server ()

Defined at line 598 of file fidling/gen/sdk/fidl/fuchsia.camera3/fuchsia.camera3/cpp/fidl/fuchsia.camera3/cpp/natural_messaging.h

void WatchCurrentConfiguration (WatchCurrentConfigurationCompleter::Sync & completer)

Returns the index of the current configuration when it has changed from a previously

returned configuration, or is called by a client for the first time.

void SetCurrentConfiguration (SetCurrentConfigurationRequest & request, SetCurrentConfigurationCompleter::Sync & completer)

Sets the configuration using the provided index. Calling this method disconnects any

existing Stream clients associated with this camera. An epitaph of ZX_OK

will be sent for any connected Stream clients on closing.

void WatchMuteState (WatchMuteStateCompleter::Sync & completer)

Returns the camera's current mute state when it has changed from a previously returned

state, or is called by a client for the first time. A camera may be muted using

SetSoftwareMuteState or by a physical switch. If either muted mode is active, stream

clients associated with this physical camera will stop receiving new frames.

void SetSoftwareMuteState (SetSoftwareMuteStateRequest & request, SetSoftwareMuteStateCompleter::Sync & completer)

Sets the current camera's software mute state. When transitioning to the muted state, this

method returns when the camera has successfully ceased sending new frames to stream

clients. When transitioning to the unmuted state, this method returns immediately.

void ConnectToStream (ConnectToStreamRequest & request, ConnectToStreamCompleter::Sync & completer)

Connects to the Stream at the provided index. If any clients already exist for this stream,

the request is closed with the ZX_ERR_ALREADY_BOUND epitaph.

void Rebind (RebindRequest & request, RebindCompleter::Sync & completer)

Request another connection to this Device. This allows a client to delegate different

operations to different coordinated clients.

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 ~Server ()

Defined at line 599 of file fidling/gen/sdk/fidl/fuchsia.camera3/fuchsia.camera3/cpp/fidl/fuchsia.camera3/cpp/natural_messaging.h