FloatDecayAnimationSpec
interface FloatDecayAnimationSpec
This animation interface is intended to be stateless, just like Animation
Inheritors
Properties
Functions
Link copied to clipboard
Creates a DecayAnimationSpec from a com.jakewharton.mosaic.animation.FloatDecayAnimationSpec by applying the given com.jakewharton.mosaic.animation.FloatDecayAnimationSpec on every dimension of the AnimationVector that T converts to.
Link copied to clipboard
Returns the duration of the decay animation, in nanoseconds.
Link copied to clipboard
Returns the target value of the animation based on the starting condition of the animation ( i.e. start value and start velocity).
Link copied to clipboard
abstract fun getValueFromNanos(playTimeNanos: Long, initialValue: Float, initialVelocity: Float): Float
Returns the value of the animation at the given time.
Link copied to clipboard
abstract fun getVelocityFromNanos(playTimeNanos: Long, initialValue: Float, initialVelocity: Float): Float
Returns the velocity of the animation at the given time.