ACameraManager_ExtendedAvailabilityListener

A listener for camera devices becoming available/unavailable to open or when the camera access permissions change.

Summary

Cameras become available when they are no longer in use, or when a new removable camera is connected. They become unavailable when some application or service starts using a camera, or when a removable camera is disconnected.

See also: ACameraManager_registerExtendedAvailabilityCallback

Public attributes

availabilityCallbacks
Called when a camera becomes available or unavailable.
onCameraAccessPrioritiesChanged
Called when there is camera access permission change.
onPhysicalCameraAvailable
Called when a physical camera becomes available.
onPhysicalCameraUnavailable
Called when a physical camera becomes unavailable.
reserved[4]
void *
Reserved for future use, please ensure that all entries are set to NULL.

Public attributes

availabilityCallbacks

Declared in camera/NdkCameraManager.h
ACameraManager_AvailabilityCallbacks ACameraManager_ExtendedAvailabilityListener::availabilityCallbacks

Called when a camera becomes available or unavailable.

onCameraAccessPrioritiesChanged

Declared in camera/NdkCameraManager.h
ACameraManager_AccessPrioritiesChangedCallback ACameraManager_ExtendedAvailabilityListener::onCameraAccessPrioritiesChanged

Called when there is camera access permission change.

onPhysicalCameraAvailable

Declared in camera/NdkCameraManager.h
ACameraManager_PhysicalCameraAvailabilityCallback ACameraManager_ExtendedAvailabilityListener::onPhysicalCameraAvailable

Called when a physical camera becomes available.

onPhysicalCameraUnavailable

Declared in camera/NdkCameraManager.h
ACameraManager_PhysicalCameraAvailabilityCallback ACameraManager_ExtendedAvailabilityListener::onPhysicalCameraUnavailable

Called when a physical camera becomes unavailable.

reserved

Declared in camera/NdkCameraManager.h
void * ACameraManager_ExtendedAvailabilityListener::reserved[4]

Reserved for future use, please ensure that all entries are set to NULL.