public interface Animatable2 extends Animatable
Modifier and Type | Interface and Description |
---|---|
static class |
Animatable2.AnimationCallback |
Modifier and Type | Method and Description |
---|---|
void |
clearAnimationCallbacks()
Removes all existing animation callbacks.
|
void |
registerAnimationCallback(Animatable2.AnimationCallback callback)
Adds a callback to listen to the animation events.
|
boolean |
unregisterAnimationCallback(Animatable2.AnimationCallback callback)
Removes the specified animation callback.
|
isRunning, start, stop
void registerAnimationCallback(Animatable2.AnimationCallback callback)
callback
- Callback to add.boolean unregisterAnimationCallback(Animatable2.AnimationCallback callback)
callback
- Callback to remove.false
if callback didn't exist in the call back list, or true
if
callback has been removed successfully.void clearAnimationCallbacks()