setMeteringAreas

fun setMeteringAreas(@NonNull meteringAreas: Array<RectF>, rotateAreasWithDevice: Boolean)

Sets the areas where camera will perform focus, exposure and white balance meterings.

Parameters

meteringAreas

array of rectangles that define areas where camera will perform focus, exposure and white balance meterings.

rotateAreasWithDevice

if set to true, metering areas will be readjusted each time device orientation changes

Throws

if at least one element of meteringAreas is null

if at least on element of meteringAreas has either zero surface or is not inside view

if camera is not active