SequentialAnimation

data class SequentialAnimation(val animations: List<Animation>) : Animation

An Animation consisting of multiple Animations that is played in sequence, when this SequentialAnimation is played.

Constructors

Link copied to clipboard
fun SequentialAnimation(vararg animation: Animation)

creates a new SequentialAnimation Additional constructor that enables the use of varargs for the animations.

Link copied to clipboard
fun SequentialAnimation(animations: List<Animation>)

creates a new SequentialAnimation.

Properties

Link copied to clipboard
val animations: List<Animation>

The Animations that this SequentialAnimation should contain. Lowest index is played first, the highest index is played last.

Link copied to clipboard
val duration: Int

Duration in milliseconds.

Link copied to clipboard
var isRunning: Boolean = false

Boolean indicating whether the Animation is currently running.

Link copied to clipboard
var onFinished: (AnimationFinishedEvent) -> Unit? = null

Gets invoked when Animation has finished.