The second Android 11 Developer Preview is now available, test it out and share your feedback.

FlingResult

data class FlingResult
kotlin.Any
   ↳ androidx.ui.foundation.animation.AndroidFlingSpline.FlingResult

Result coefficients of a scroll computation

Summary

Public constructors

<init>(distanceCoefficient: Float, velocityCoefficient: Float)

Result coefficients of a scroll computation

Properties

Float

Linear distance traveled from 0-1, from source (0) to destination (1)

Float

Instantaneous velocity coefficient at this point in the fling expressed in total distance per unit time

Public constructors

<init>

FlingResult(
    distanceCoefficient: Float,
    velocityCoefficient: Float)

Result coefficients of a scroll computation

Properties

distanceCoefficient

val distanceCoefficient: Float

Linear distance traveled from 0-1, from source (0) to destination (1)

velocityCoefficient

val velocityCoefficient: Float

Instantaneous velocity coefficient at this point in the fling expressed in total distance per unit time