ZoomGestureDetector.ZoomEvent.End


public final class ZoomGestureDetector.ZoomEvent.End extends ZoomGestureDetector.ZoomEvent


The end of a zoom gesture. Reported by existing pointers going up.

Summary

Public constructors

End(
    @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

End

Added in 1.4.0-alpha11
public End(
    @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).