MLCameraCaptureCallbacks
Capture callbacks to be implemented by client to receive capture status if callback mechanism is used. This structure must be initialized by calling MLCameraCaptureCallbacksInit() before use.
Public Methods
MLCameraCaptureCallbacks Create
Create and return an initialized version of this struct.
public static MLCameraCaptureCallbacks Create()
Returns: A new instance of this struct.
Public Attributes
OnCaptureAborted
Callback is invoked when an ongoing video or preview capture or both are aborted due to an error.
public OnCaptureAbortedDelegate OnCaptureAborted;
Type | Description |
---|---|
OnCaptureAbortedDelegate | Delegate to notify the app when a capture request is aborted. |
OnCaptureCompleted
Callback is invoked when capturing single frame is completed and result is available.
public OnCaptureCompletedDelegate OnCaptureCompleted;
Type | Description |
---|---|
OnCaptureCompletedDelegate | Delegate to notify the app when a capture request is completed. |
OnCaptureFailed
Callback is invoked when a capture has failed when the camera device failed to produce a capture result for the request.
public OnCaptureFailedDelegate OnCaptureFailed;
Type | Description |
---|---|
OnCaptureFailedDelegate | Delegate to notify the app when a capture request fails. |
OnImageBufferAvailable
Callback is invoked when a captured image buffer is available with #MLCameraCaptureType_ImageRaw.
public OnImageBufferAvailableDelegate OnImageBufferAvailable;
OnPreviewBufferAvailable
Callback is invoked when a preview video frame buffer is available with #MLCameraCaptureType_Preview.
public OnPreviewBufferAvailableDelegate OnPreviewBufferAvailable;
Type | Description |
---|---|
OnPreviewBufferAvailableDelegate | Delegate to notify the app when the frame data of a preview is available. |
OnVideoBufferAvailable
Callback is invoked when a captured raw/compressed video frame buffer is available with #MLCameraCaptureType_VideoRaw.
public OnVideoBufferAvailableDelegate OnVideoBufferAvailable;
Version
version contains the version number for this structure.
public uint Version;