Animatable2Compat
public interface Animatable2Compat extends Animatable
AnimatedVectorDrawableCompat |
For API 24 and above, this class is delegating to the framework's |
Interface that drawables supporting animations and callbacks should extend in support lib.
Summary
Nested types |
|---|
public abstract class Animatable2Compat.AnimationCallbackAbstract class for animation callback. |
Public methods |
|
|---|---|
abstract void |
Removes all existing animation callbacks. |
abstract void |
Adds a callback to listen to the animation events. |
abstract boolean |
Removes the specified animation callback. |
Public methods
clearAnimationCallbacks
abstract void clearAnimationCallbacks()
Removes all existing animation callbacks.
registerAnimationCallback
abstract void registerAnimationCallback(
@NonNull Animatable2Compat.AnimationCallback callback
)
Adds a callback to listen to the animation events.
| Parameters | |
|---|---|
@NonNull Animatable2Compat.AnimationCallback callback |
Callback to add. |
unregisterAnimationCallback
abstract boolean unregisterAnimationCallback(
@NonNull Animatable2Compat.AnimationCallback callback
)
Removes the specified animation callback.
| Parameters | |
|---|---|
@NonNull Animatable2Compat.AnimationCallback callback |
Callback to remove. |
| Returns | |
|---|---|
boolean |
|