Source set: Common
public class VectorizedInfiniteRepeatableSpec<V : AnimationVector>(
private val animation: VectorizedDurationBasedAnimationSpec<V>,
private val repeatMode: RepeatMode = RepeatMode.Restart,
initialStartOffset: StartOffset = StartOffset(0),
) : VectorizedAnimationSpec<V>
This animation takes another VectorizedDurationBasedAnimationSpec and plays it infinite times.
initialStartOffset can be used to either delay the start of the animation or to fast forward the animation to a given play time. This start offset will not be repeated, whereas the delay in the animation (if any) will be repeated. By default, the amount of offset is 0.
Parameters
| animation | the VectorizedAnimationSpec describing each repetition iteration. |
| repeatMode | whether animation should repeat by starting from the beginning (i.e. RepeatMode.Restart) or from the end (i.e. RepeatMode.Reverse) |
| initialStartOffset | offsets the start of the animation |
Properties
isInfinite
Source set: Common
override val isInfinite: Boolean
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
getDurationNanos
Source set: Common
override fun getDurationNanos(initialValue: V, targetValue: V, initialVelocity: V): Long