Interface Animatable2
- All Superinterfaces:
Animatable
- All Known Implementing Classes:
AnimatedImageDrawable
Abstract class that drawables supporting animations and callbacks should extend.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes all existing animation callbacks.void
Adds a callback to listen to the animation events.boolean
Removes the specified animation callback.Methods inherited from interface icyllis.modernui.graphics.drawable.Animatable
isRunning, start, stop
-
Method Details
-
registerAnimationCallback
Adds a callback to listen to the animation events.- Parameters:
callback
- Callback to add.
-
unregisterAnimationCallback
Removes the specified animation callback.- Parameters:
callback
- Callback to remove.- Returns:
false
if callback didn't exist in the call back list, ortrue
if callback has been removed successfully.
-
clearAnimationCallbacks
void clearAnimationCallbacks()Removes all existing animation callbacks.
-