Focus

class Focus(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)(source)

Constructors

Link copied to clipboard
constructor(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Gets the auto focus mode.

Link copied to clipboard

Get current camera supported auto focus mode.

Link copied to clipboard

Gets current camera lens distance range.

Link copied to clipboard

Gets the lens focus distance.

Link copied to clipboard

Get maximum number of available focus metering regions.

Link copied to clipboard

Gets the focus metering regions.

Functions

Link copied to clipboard
suspend fun setAutoMode(autoMode: Int)

Sets the auto focus mode.

Link copied to clipboard
suspend fun setLensDistance(lensDistance: Float)

Sets the lens focus distance

Link copied to clipboard
suspend fun setMeteringRegions(meteringRegions: List<MeteringRectangle>)

Sets the focus metering regions.