Class

AndroidFlingSpline.FlingResult

Result coefficients of a scroll computation

Source set: Android
class FlingResult(private val packedValue: Long)

Result coefficients of a scroll computation

Properties

distanceCoefficient

Source set: Android
val distanceCoefficient: Float

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

velocityCoefficient

Source set: Android
val velocityCoefficient: Float

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: