Added in API level 4

Animatable


interface Animatable
android.graphics.drawable.Animatable

Interface that drawables supporting animations should implement.

Summary

Public methods
abstract Boolean

Indicates whether the animation is running.

abstract Unit

Starts the drawable's animation.

abstract Unit

Stops the drawable's animation.

Public methods

isRunning

Added in API level 4
abstract fun isRunning(): Boolean

Indicates whether the animation is running.

Return
Boolean True if the animation is running, false otherwise.

start

Added in API level 4
abstract fun start(): Unit

Starts the drawable's animation.

stop

Added in API level 4
abstract fun stop(): Unit

Stops the drawable's animation.