SwipeProgress

Added in 1.0.0
Deprecated in 1.6.0

Collects information about the ongoing swipe or animation in swipeable.

To access this information, use SwipeableState.progress.

Summary

Public constructors

<T : Any?> SwipeProgress(from: T, to: T, fraction: Float)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Float

The fraction that the current position represents between from and to.

Cmn
T

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

Cmn
T

The state corresponding to the anchor we are moving towards.

Cmn

Public constructors

SwipeProgress

<T : Any?> SwipeProgress(from: T, to: T, fraction: Float)
Parameters
from: T

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

to: T

The state corresponding to the anchor we are moving towards.

fraction: Float

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

fraction

val fractionFloat

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

from

val from: T

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

to

val to: T

The state corresponding to the anchor we are moving towards.