class Device

Defined at line 3019 of file fidling/gen/sdk/fidl/fuchsia.camera3/fuchsia.camera3/hlcpp/fuchsia/camera3/cpp/fidl.h

A Device represents a unique physical camera present in the system. Only one client may connect

to an unbound physical camera, however the "Rebind" method can be used to create multiple

connections to it to be used by a coordinated set of clients.

Public Methods

void ~Device ()
void GetIdentifier (GetIdentifierCallback callback)

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 (GetConfigurationsCallback callback)

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 (GetConfigurations2Callback callback)

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 WatchCurrentConfiguration (WatchCurrentConfigurationCallback callback)

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 (uint32_t index)

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 (WatchMuteStateCallback callback)

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 (bool muted, SetSoftwareMuteStateCallback callback)

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 (uint32_t index, ::fidl::InterfaceRequest< ::fuchsia::camera3::Stream> request)

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 (::fidl::InterfaceRequest< ::fuchsia::camera3::Device> request)

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

operations to different coordinated clients.