Package: android.hardware.camera.provider@2.4

ICameraProviderCallback

interface ICameraProviderCallback

Callback functions for a camera provider HAL to use to inform the camera service of changes to the camera subsystem.

Methods

cameraDeviceStatusChange

cameraDeviceStatusChange (string cameraDeviceName, CameraDeviceStatus newStatus)

cameraDeviceStatusChange:

Callback to the camera service to indicate that the state of a specific camera device has changed.

On camera service startup, when ICameraProvider::setCallback is invoked, the camera service must assume that all internal camera devices are in the CAMERA_DEVICE_STATUS_PRESENT state.

The provider must call this method to inform the camera service of any initially NOT_PRESENT devices, and of any external camera devices that are already present, as soon as the callbacks are available through setCallback.

Details
Parameters
cameraDeviceName
newStatus
The new status that device is in.

torchModeStatusChange

torchModeStatusChange (string cameraDeviceName, TorchModeStatus newStatus)

torchModeStatusChange:

Callback to the camera service to indicate that the state of the torch mode of the flash unit associated with a specific camera device has changed.At provider registration time, the camera service must assume the torch modes are in the TORCH_MODE_STATUS_AVAILABLE_OFF state if android.flash.info.available is reported as true via the ICameraDevice::getCameraCharacteristics call.

Details
Parameters
cameraDeviceName
newStatus
The new status that device is in.