MLCameraDeviceAvailabilityStatusCallbacks
Module: Camera
#include <ml_camera_v2.h>
Public Attributes
Type | Name |
---|---|
uint32_t | version |
void()(const MLCameraDeviceAvailabilityInfo info) | on_device_available Callback is invoked when the camera becomes available. |
void()(const MLCameraDeviceAvailabilityInfo info) | on_device_unavailable Callback is invoked when the camera becomes unavailable. |
Detailed Description
struct MLCameraDeviceAvailabilityStatusCallbacks;
Device availability status callbacks to be implemented by client to receive device availability status.
Public Attributes Documentation
version
uint32_t version;
Version of this structure.
on_device_available
void(*)(const MLCameraDeviceAvailabilityInfo *info) on_device_available;
Callback is invoked when the camera becomes available.
Type | Description |
---|---|
void()(const MLCameraDeviceAvailabilityInfo info) | )(const MLCameraDeviceAvailabilityInfo *info) |
Parameters
info | Information about the camera availability. |
on_device_unavailable
void(*)(const MLCameraDeviceAvailabilityInfo *info) on_device_unavailable;
Callback is invoked when the camera becomes unavailable.
Type | Description |
---|---|
void()(const MLCameraDeviceAvailabilityInfo info) | )(const MLCameraDeviceAvailabilityInfo *info) |
Parameters
info | Information about the camera availability |