ZoomGestureDetector.ZoomEvent.Move


class ZoomGestureDetector.ZoomEvent.Move : ZoomGestureDetector.ZoomEvent


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

Summary

Public constructors

Move(
    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

Move

Added in 1.4.0-alpha11
Move(
    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-alpha11
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).