RefreshableAnimation

A version of Animation that has a parameterless refresh method instead of update.

Implementations will need to handle concurrently updating their state.

Inheritors

Properties

Link copied to clipboard
abstract val finished: Boolean

true if this animation has finished and should be stopped or cleared.

Link copied to clipboard
open val fps: Int

The rate, in Hz, that this animation should be refreshed, or 0 if it should not be refreshed automatically.

Link copied to clipboard

The time between refreshes. This is 1 / refreshRate

Functions

Link copied to clipboard

Create an animator that runs this animation synchronously.

Link copied to clipboard
abstract fun clear()

Stop this animation and remove it from the screen.

Link copied to clipboard
abstract fun refresh(refreshAll: Boolean = false)

Draw the animation to the screen.

Link copied to clipboard
abstract fun stop()

Stop this animation without removing it from the screen.