Compose Camera LogoCompose Camera
APICore ModuleData Classes

FocusPoint

Documentation for FocusPoint data class.

FocusPoint

Represents a normalized point of interest on the sensor, used for focus and metering.

data class FocusPoint(
    val x: Float,
    val y: Float
)

Properties

PropertyTypeDescription
xFloatThe horizontal component of the point (0.0 to 1.0).
yFloatThe vertical component of the point (0.0 to 1.0).

Coordinates are typically normalized where (0,0) is top-left and (1,1) is bottom-right relative to the preview.

On this page