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
fun BlockingAnimator.execute(executor: ExecutorService = Executors.newSingleThreadExecutor(DaemonThreadFactory())): Future<*>

Run the animation in a background thread on an executor.

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

Draw the animation to the screen.

Link copied to clipboard
abstract fun runBlocking()

Start the animation and refresh it until all its tasks are finished.

Link copied to clipboard
abstract fun stop()

Stop this animation without removing it from the screen.