AnimationHandle

interface AnimationHandle : Animation

Represents an Animation which is currently running and adds additional functionality to it.

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
onFinished
Link copied to clipboard
common
abstract fun onFinished(fn: (AnimationHandle) -> Unit)
Adds a callback which will be called when the Animation finishes.
stop
Link copied to clipboard
common
abstract fun stop()
Stops the Animation regardless of its state.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

id
Link copied to clipboard
common
abstract val id: UUID
isFinished
Link copied to clipboard
common
abstract val isFinished: Boolean
Tells whether the Animation is finished.
isInfinite
Link copied to clipboard
common
abstract val isInfinite: Boolean
Tells whether this Animation will run forever.
isLoopedIndefinitely
Link copied to clipboard
common
abstract val isLoopedIndefinitely: Boolean
Tells whether this Animation is looped indefinitely.
isRunning
Link copied to clipboard
common
abstract val isRunning: Boolean
Tells whether the Animation is still running.
loopCount
Link copied to clipboard
common
abstract val loopCount: Int
How many times this Animation will be looped.
tick
Link copied to clipboard
common
abstract val tick: Long
Tells how often an AnimationFrame should be drawn in milliseconds.
totalFrameCount
Link copied to clipboard
common
abstract val totalFrameCount: Int
The total number of frames in this animation (including those which are repeated as well).
uniqueFrameCount
Link copied to clipboard
common
abstract val uniqueFrameCount: Int
The number of AnimationFrames which are in this animation.

Sources

(source)
Link copied to clipboard