Interface TweenListener
- All Superinterfaces:
EventListener
This listener interface receives lifecycle events from a
Tween.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidInvoked when a Tween completes a full duration cycle.default voidInvoked when a Tween is started (or restarted).default voidInvoked when a Tween is stopped, either manually viaTween.stop()or by completing its duration when no looping is configured.
-
Method Details
-
started
Invoked when a Tween is started (or restarted).- Parameters:
tween- the Tween that has been started.
-
stopped
Invoked when a Tween is stopped, either manually viaTween.stop()or by completing its duration when no looping is configured.- Parameters:
tween- the Tween that has been stopped.
-
completed
Invoked when a Tween completes a full duration cycle. For non-looping Tweens, this is fired right before thestopped(Tween)event. For looping Tweens, this is fired on every cycle completion.- Parameters:
tween- the Tween that has completed.
-