Class

SwipeInfo

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

Source set: Common
public class SwipeInfo(
    public val start: Offset,
    public val end: Offset,
    @FloatRange(from = 0.0) public val endVelocity: Float,
)

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

Parameters

start The start position of the gesture, in the node's local coordinate system
end The end position of the gesture, in the node's local coordinate system
endVelocity The velocity of the gesture at the moment it ends in px/second. Must be positive.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: