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)

This function is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.

Cmn

Public functions

open operator Boolean
equals(other: Any?)

This function is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.

Cmn
open Int

This function is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.

Cmn
open String

This function is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.

Cmn

Public properties

Float

This property is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.

Cmn
T

This property is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.

Cmn
T

This property is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.

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.