@RequiresApi(21) open class ExposureControl
   ↳ androidx.camera.camera2.internal.ExposureControl

Implementation of Exposure compensation control.

It is intended to be used within Camera2CameraControlImpl to implement the functionality of Camera2CameraControlImpl#setExposureCompensationIndex(int).

To wait for the exposure setting reach to the new requested target, it calls Camera2CameraControlImpl#addCaptureResultListener( * Camera2CameraControlImpl.CaptureResultListener) to monitor the capture result.

The Camera2CameraControlImpl#setExposureCompensationIndex(int) can only allow to run one task at the same time, it will cancel the incomplete task if a new task is requested. The task will fails with CameraControl.OperationCanceledException if the camera is closed.