Skip to main content
Version: 12 Dec 2024

MLCameraDeviceAvailabilityStatusCallbacks

Module: Camera

More...

#include <ml_camera_v2.h>

Public Attributes

TypeName
uint32_tversion
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.

TypeDescription
void()(const MLCameraDeviceAvailabilityInfo info))(const MLCameraDeviceAvailabilityInfo *info)

Parameters

infoInformation about the camera availability.

on_device_unavailable

void(*)(const MLCameraDeviceAvailabilityInfo *info) on_device_unavailable;

Callback is invoked when the camera becomes unavailable.

TypeDescription
void()(const MLCameraDeviceAvailabilityInfo info))(const MLCameraDeviceAvailabilityInfo *info)

Parameters

infoInformation about the camera availability