public interface ExposureState

An interface which contains the camera exposure related information.

Applications can retrieve an instance via getExposureState.

Summary

Public methods

getExposureCompensationIndex

abstract int getExposureCompensationIndex()

Get the current exposure compensation index.

The exposure value (EV) is the compensation index multiplied by the step value which is given by getExposureCompensationStep. Increasing the compensation index by using the setExposureCompensationIndex will increase exposure making the capture result brighter, decreasing the value making it darker.

For example, if the exposure value (EV) step size is 0.333, set the exposure compensation index value '6' will mean an exposure compensation of +2 EV; -3 will mean an exposure compensation of -1 EV.

The exposure value resets to default when there is no UseCase associated with the camera. For example, unbind all use cases from the camera or when the lifecycle changed that all the use case stopping data from the camera.

isExposureCompensationSupported

abstract boolean isExposureCompensationSupported()

Whether exposure compensation is supported for this camera.

Returns
boolean

true if exposure compensation is supported for this camera.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-01-30 UTC.