Class

SplineBasedFloatDecayAnimationSpec

A native Android fling curve decay.

Source set: Common
public class SplineBasedFloatDecayAnimationSpec(density: Density) : FloatDecayAnimationSpec

A native Android fling curve decay.

Parameters

density density of the display

Properties

absVelocityThreshold

Source set: Common
override val absVelocityThreshold: Float

Functions

getTargetValue

Source set: Common
override fun getTargetValue(initialValue: Float, initialVelocity: Float): Float

getValueFromNanos

Source set: Common
override fun getValueFromNanos(
        playTimeNanos: Long,
        initialValue: Float,
        initialVelocity: Float,
    ): Float

getDurationNanos

Source set: Common
override fun getDurationNanos(initialValue: Float, initialVelocity: Float): Long

getVelocityFromNanos

Source set: Common
override fun getVelocityFromNanos(
        playTimeNanos: Long,
        initialValue: Float,
        initialVelocity: Float,
    ): Float
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: