ZoomGestureDetector.ZoomEvent.Begin


public final class ZoomGestureDetector.ZoomEvent.Begin extends ZoomGestureDetector.ZoomEvent


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

Summary

Public constructors

Begin(
    @IntRange(from = 0) long eventTime,
    @Px @IntRange(from = 0) int focusX,
    @Px @IntRange(from = 0) int focusY
)

Inherited methods

From androidx.camera.viewfinder.core.ZoomGestureDetector.ZoomEvent
final long

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

final int

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

final int

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

Public constructors

Begin

Added in 1.4.0-alpha10
public Begin(
    @IntRange(from = 0) long eventTime,
    @Px @IntRange(from = 0) int focusX,
    @Px @IntRange(from = 0) int focusY
)
Parameters
@IntRange(from = 0) long eventTime

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

@Px @IntRange(from = 0) int focusX

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

@Px @IntRange(from = 0) int focusY

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