Source set: Common
public class VectorizedSnapSpec<V : AnimationVector>(override val delayMillis: Int = 0) :
VectorizedDurationBasedAnimationSpec<V>
VectorizedSnapSpec immediately snaps the animating value to the end value.
Parameters
| delayMillis | the amount of time (in milliseconds) that the animation should wait before it starts. Defaults to 0. |
Properties
durationMillis
Source set: Common
override val durationMillis: Int
Functions
getValueFromNanos
Source set: Common
override fun getValueFromNanos(
playTimeNanos: Long,
initialValue: V,
targetValue: V,
initialVelocity: V,
): V
getVelocityFromNanos
Source set: Common
override fun getVelocityFromNanos(
playTimeNanos: Long,
initialValue: V,
targetValue: V,
initialVelocity: V,
): V