onTouchEvent

open fun onTouchEvent(x: Float, y: Float)

Pushes a touch or tap event within the camera preview into the session.

Coordinates are normalized to 0.0, 1.0 where (0.0, 0.0) is the top-left and (1.0, 1.0) is the bottom-right of the camera preview area.

Parameters

x

horizontal position in normalized preview coordinates 0.0, 1.0.

y

vertical position in normalized preview coordinates 0.0, 1.0.