Animatable2Compat

interface Animatable2Compat : Animatable
androidx.vectordrawable.graphics.drawable.Animatable2Compat

Interface that drawables supporting animations and callbacks should extend in support lib.

Summary

Nested classes
abstract

Abstract class for animation callback.

Public methods
abstract Unit

Adds a callback to listen to the animation events.

abstract Unit

Removes all existing animation callbacks.

abstract Boolean

Removes the specified animation callback.

Public methods

registerAnimationCallback

abstract fun registerAnimationCallback(callback: Animatable2Compat.AnimationCallback): Unit

Adds a callback to listen to the animation events.

Parameters
callback Animatable2Compat.AnimationCallback: Callback to add.

clearAnimationCallbacks

abstract fun clearAnimationCallbacks(): Unit

Removes all existing animation callbacks.

unregisterAnimationCallback

abstract fun unregisterAnimationCallback(callback: Animatable2Compat.AnimationCallback): Boolean

Removes the specified animation callback.

Parameters
callback Animatable2Compat.AnimationCallback: Callback to remove.
Return
Boolean: false if callback didn't exist in the call back list, or true if callback has been removed successfully.