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