Interface Animatable2
- All Superinterfaces:
Animatable
- All Known Implementing Classes:
AnimatedImageDrawable
Abstract class that drawables supporting animations and callbacks should extend.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves all existing animation callbacks.voidAdds a callback to listen to the animation events.booleanRemoves 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:
falseif callback didn't exist in the call back list, ortrueif callback has been removed successfully.
-
clearAnimationCallbacks
void clearAnimationCallbacks()Removes all existing animation callbacks.
-