ZoomGestureDetector.ZoomEvent.Begin


class ZoomGestureDetector.ZoomEvent.Begin : ZoomGestureDetector.ZoomEvent


The beginning of a zoom gesture. Reported by new pointers going down.

Summary

Public constructors

Begin(
    eventTime: @IntRange(from = 0) Long,
    focusX: @Px @IntRange(from = 0) Int,
    focusY: @Px @IntRange(from = 0) Int
)

Inherited properties

From androidx.camera.viewfinder.core.ZoomGestureDetector.ZoomEvent
Long

The event time in milliseconds of the current event being processed, in SystemClock.uptimeMillis time base.

Int

The X coordinate of the current gesture's focal point in pixels.

Int

The Y coordinate of the current gesture's focal point in pixels.

Public constructors

Begin

Added in 1.4.0-alpha11
Begin(
    eventTime: @IntRange(from = 0) Long,
    focusX: @Px @IntRange(from = 0) Int,
    focusY: @Px @IntRange(from = 0) Int
)
Parameters
eventTime: @IntRange(from = 0) Long

The event time in milliseconds of the current event being processed, in SystemClock.uptimeMillis time base.

focusX: @Px @IntRange(from = 0) Int

The X coordinate of the current gesture's focal point in pixels.

focusY: @Px @IntRange(from = 0) Int

The Y coordinate of the current gesture's focal point in pixels.