Animation

interface Animation<T>

Inheritors

Properties

Link copied to clipboard
abstract val endless: Boolean

Whether the animation should run endless or not

Link copied to clipboard
abstract var startInstant: Boolean

whether the animation should start instantly, or wait for the given delay until rendering the first frame

Functions

Link copied to clipboard
abstract fun isRunning(): Boolean

Whether the animation is running or not

Link copied to clipboard
abstract fun onAnimationFrame(listener: T.(index: Int) -> Unit)

Called when the next frame is rendered

Link copied to clipboard
abstract fun onEnd(listener: T.() -> Unit)

Called when the animation is finished

Link copied to clipboard
abstract fun stop()

Stops the animation if it was running