MLCameraDeviceStatusCallbacks
Device status callbacks to be implemented by client to receive device status if callback mechanism is used.
Public Methods
MLCameraDeviceStatusCallbacks Create
Create and return an initialized version of this struct.
public static MLCameraDeviceStatusCallbacks Create()
Returns: A new instance of this struct.
Public Attributes
OnDeviceDisconnected
Callback is invoked when the camera is disconnected.
public OnDeviceDisconnectedDelegate OnDeviceDisconnected;
Type | Description |
---|---|
OnDeviceDisconnectedDelegate | Delegate to notify the app when the camera device disconnects. |
OnDeviceError
Callback is invoked when the camera encountered errors. Invalid: The camera device is not available. Disabled: The camera device can't be opened due to a device policy. Device error: The camera device encountered a fatal error such as the Lightwear device has lost connection or the hardware comm bus is busy and not be able to response and caused a timeout. Service error: The camera service has encountered a fatal error and could not provide service. Capture failed: The capure request has failed. on_capture_failed or on_capture_buffer_lost callbacks will be invoked when this error happens.
public OnDeviceErrorDelegate OnDeviceError;
Type | Description |
---|---|
OnDeviceErrorDelegate | Delegate to notify the app about camera device error |
OnDeviceIdle
Callback is invoked when the camera stops streaming.
public OnDeviceIdleDelegate OnDeviceIdle;
OnDeviceStreaming
Callback is invoked when the camera is streaming.
public OnDeviceStreamingDelegate OnDeviceStreaming;
Version
Version contains the version number for this structure.
public uint Version;