DelayAnimation

class DelayAnimation(val duration: Int = DEFAULT_ANIMATION_DURATION) : Animation

An asynchronous delay that fires onFinished after given duration.

Parameters

duration

Duration in milliseconds. Default: DEFAULT_ANIMATION_DURATION.

Constructors

Link copied to clipboard
fun DelayAnimation(duration: Int = DEFAULT_ANIMATION_DURATION)

Creates a DelayAnimation with given duration.

Properties

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.