Animatable2Compat

public interface Animatable2Compat
implements Animatable

androidx.vectordrawable.graphics.drawable.Animatable2Compat


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

Summary

Nested classes

class Animatable2Compat.AnimationCallback

Abstract class for animation callback. 

Public methods

abstract void clearAnimationCallbacks()

Removes all existing animation callbacks.

abstract void registerAnimationCallback(Animatable2Compat.AnimationCallback callback)

Adds a callback to listen to the animation events.

abstract boolean unregisterAnimationCallback(Animatable2Compat.AnimationCallback callback)

Removes the specified animation callback.

Inherited methods

Public methods

clearAnimationCallbacks

public abstract void clearAnimationCallbacks ()

Removes all existing animation callbacks.

registerAnimationCallback

public abstract void registerAnimationCallback (Animatable2Compat.AnimationCallback callback)

Adds a callback to listen to the animation events.

Parameters
callback Animatable2Compat.AnimationCallback: Callback to add.

unregisterAnimationCallback

public abstract boolean unregisterAnimationCallback (Animatable2Compat.AnimationCallback callback)

Removes the specified animation callback.

Parameters
callback Animatable2Compat.AnimationCallback: Callback to remove.

Returns
boolean false if callback didn't exist in the call back list, or true if callback has been removed successfully.