Focus

class Focus(source)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@get:RequiresPermission(value = "android.permission.CAMERA")
val autoMode: Int

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
@get:RequiresPermission(value = "android.permission.CAMERA")
val lensDistance: Float

Gets the lens focus distance.

Link copied to clipboard

Get maximum number of available focus metering regions.

Link copied to clipboard
@get:RequiresPermission(value = "android.permission.CAMERA")
val meteringRegions: List<MeteringRectangle>

Gets the focus metering regions.

Functions

Link copied to clipboard
@RequiresPermission(value = "android.permission.CAMERA")
suspend fun setAutoMode(autoMode: Int)

Sets the auto focus mode.

Link copied to clipboard
@RequiresPermission(value = "android.permission.CAMERA")
suspend fun setLensDistance(lensDistance: Float)

Sets the lens focus distance

Link copied to clipboard
@RequiresPermission(value = "android.permission.CAMERA")
suspend fun setMeteringRegions(meteringRegions: List<MeteringRectangle>)

Sets the focus metering regions.