Class

AndroidFlingSpline.FlingResult

Result coefficients of a scroll computation

Source set: Common
data class FlingResult(
        /** Linear distance traveled from 0-1, from source (0) to destination (1) */
        val distanceCoefficient: Float,
        /**
         * Instantaneous velocity coefficient at this point in the fling expressed in total distance
         * per unit time
         */
        val velocityCoefficient: Float,
    )

Result coefficients of a scroll computation

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: