Configuration for a single pointer in a multi-touch swipe with velocity.

Summary

Public constructors

SwipeInfo(
    start: Offset,
    end: Offset,
    endVelocity: @FloatRange(from = 0.0) Float
)
Cmn

Public properties

Offset

The end position of the gesture, in the node's local coordinate system

Cmn
@FloatRange(from = 0.0) Float

The velocity of the gesture at the moment it ends in px/second.

Cmn
Offset

The start position of the gesture, in the node's local coordinate system

Cmn

Public constructors

SwipeInfo

SwipeInfo(
    start: Offset,
    end: Offset,
    endVelocity: @FloatRange(from = 0.0) Float
)
Parameters
start: Offset

The start position of the gesture, in the node's local coordinate system

end: Offset

The end position of the gesture, in the node's local coordinate system

endVelocity: @FloatRange(from = 0.0) Float

The velocity of the gesture at the moment it ends in px/second. Must be positive.

Public properties

end

val end: Offset

The end position of the gesture, in the node's local coordinate system

endVelocity

val endVelocity: @FloatRange(from = 0.0) Float

The velocity of the gesture at the moment it ends in px/second. Must be positive.

start

val start: Offset

The start position of the gesture, in the node's local coordinate system