Interface AnimationController.AnimationListener
-
- Enclosing class:
- AnimationController
public static interface AnimationController.AnimationListener
Listener that will be informed when an animation is looped or completed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEnd(AnimationController.AnimationDesc animation)
Gets called when an animation is completed.void
onLoop(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.loopCount
is 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.
-
-