Interface AnimationController.AnimationListener
-
- Enclosing class:
- AnimationController
public static interface AnimationController.AnimationListenerListener that will be informed when an animation is looped or completed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEnd(AnimationController.AnimationDesc animation)Gets called when an animation is completed.voidonLoop(AnimationController.AnimationDesc animation)Gets called when an animation is looped.
-
-
-
Method Detail
-
onEnd
void onEnd(AnimationController.AnimationDesc animation)
Gets called when an animation is completed.- Parameters:
animation- The animation which just completed.
-
onLoop
void onLoop(AnimationController.AnimationDesc animation)
Gets called when an animation is looped. TheAnimationController.AnimationDesc.loopCountis updated prior to this call and can be read or written to alter the number of remaining loops.- Parameters:
animation- The animation which just looped.
-
-