Google is committed to advancing racial equity for Black communities. See how.

FlingInfo

data class FlingInfo
kotlin.Any
   ↳ androidx.ui.foundation.animation.AndroidFlingCalculator.FlingInfo

Info about a fling started with initialVelocity. The units of initialVelocity determine the distance units of distance and the time units of duration.

Summary

Public constructors
<init>(initialVelocity: Float, distance: Float, duration: Long)

Info about a fling started with initialVelocity.

Public methods
Float
position(time: Long)

Float
velocity(time: Long)

Properties
Float

Long

Float

Public constructors

<init>

FlingInfo(
    initialVelocity: Float,
    distance: Float,
    duration: Long)

Info about a fling started with initialVelocity. The units of initialVelocity determine the distance units of distance and the time units of duration.

Public methods

position

fun position(time: Long): Float

velocity

fun velocity(time: Long): Float

Properties

distance

val distance: Float

duration

val duration: Long

initialVelocity

val initialVelocity: Float