SwipeProgress

class SwipeProgress<T>(val from: T, val to: T, val fraction: Float)

Collects information about the ongoing swipe or animation in swipeable.

To access this information, use SwipeableState.progress.

Parameters

from

The state corresponding to the anchor we are moving away from.

to

The state corresponding to the anchor we are moving towards.

fraction

The fraction that the current position represents between from and to. Must be between 0 and 1.

Constructors

Link copied to clipboard
constructor(from: T, to: T, fraction: Float)

Properties

Link copied to clipboard
Link copied to clipboard
val from: T
Link copied to clipboard
val to: T

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String