ParallelAnimation

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

An Animation consisting of multiple Animations that are played in parallel, when this ParallelAnimation is played.

Constructors

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

Creates a new ParallelAnimation. Additional constructor that enables the use of varargs for the animations.

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

creates a new ParallelAnimation.

Properties

Link copied to clipboard
val animations: List<Animation>

The Animations that this ParallelAnimation should contain.

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.