createNormalizedMeteringPoint

abstract fun createNormalizedMeteringPoint(x: Double, y: Double, size: Double? = null): MeteringPoint

Create a MeteringPoint from normalized coordinates, from 0.0 to 1.0. You are responsible for handling orientation, cropping and scaling; to create a point from a tap on a PreviewView, use its createMeteringPoint instead.

Parameters

x

The X coordinate, from 0.0 to 1.0.

y

The Y coordinate, from 0.0 to 1.0.

size

The size of the point, or null for the platform default.