ZoomGestureDetector.ZoomEvent.End


class ZoomGestureDetector.ZoomEvent.End : ZoomGestureDetector.ZoomEvent


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

Summary

Public constructors

End(
    eventTime: @IntRange(from = 0) Long,
    focusX: @Px @IntRange(from = 0) Int,
    focusY: @Px @IntRange(from = 0) Int,
    incrementalScaleFactor: @FloatRange(from = 0.0, fromInclusive = false) Float
)

Public properties

Float

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

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

End

Added in 1.4.0-alpha10
End(
    eventTime: @IntRange(from = 0) Long,
    focusX: @Px @IntRange(from = 0) Int,
    focusY: @Px @IntRange(from = 0) Int,
    incrementalScaleFactor: @FloatRange(from = 0.0, fromInclusive = false) Float
)
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.

incrementalScaleFactor: @FloatRange(from = 0.0, fromInclusive = false) Float

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 properties

incrementalScaleFactor

Added in 1.4.0-alpha10
val incrementalScaleFactorFloat

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).