ZoomGestureDetector.ZoomEvent.Move


public final class ZoomGestureDetector.ZoomEvent.Move extends ZoomGestureDetector.ZoomEvent


The moving events of a gesture in progress. Reported by pointer motion.

Summary

Public constructors

Move(
    @IntRange(from = 0) long eventTime,
    @Px @IntRange(from = 0) int focusX,
    @Px @IntRange(from = 0) int focusY,
    @FloatRange(from = 0.0, fromInclusive = false) float incrementalScaleFactor
)

Public methods

final float

The scaling factor from the previous zoom event to the current event.

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

Move

Added in 1.4.0-alpha11
public Move(
    @IntRange(from = 0) long eventTime,
    @Px @IntRange(from = 0) int focusX,
    @Px @IntRange(from = 0) int focusY,
    @FloatRange(from = 0.0, fromInclusive = false) float incrementalScaleFactor
)
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.

@FloatRange(from = 0.0, fromInclusive = false) float incrementalScaleFactor

The scaling factor from the previous zoom event to the current event. The value will be less than 1.0 when zooming out (larger FOV) and will be larger than 1.0 when zooming in (narrower FOV).

Public methods

getIncrementalScaleFactor

Added in 1.4.0-alpha11
public final float getIncrementalScaleFactor()

The scaling factor from the previous zoom event to the current event. The value will be less than 1.0 when zooming out (larger FOV) and will be larger than 1.0 when zooming in (narrower FOV).