Interface TweenListener

All Superinterfaces:
EventListener

public interface TweenListener extends EventListener
This listener interface receives lifecycle events from a Tween.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Invoked when a Tween completes a full duration cycle.
    default void
    started(Tween tween)
    Invoked when a Tween is started (or restarted).
    default void
    stopped(Tween tween)
    Invoked when a Tween is stopped, either manually via Tween.stop() or by completing its duration when no looping is configured.
  • Method Details

    • started

      default void started(Tween tween)
      Invoked when a Tween is started (or restarted).
      Parameters:
      tween - the Tween that has been started.
    • stopped

      default void stopped(Tween tween)
      Invoked when a Tween is stopped, either manually via Tween.stop() or by completing its duration when no looping is configured.
      Parameters:
      tween - the Tween that has been stopped.
    • completed

      default void completed(Tween tween)
      Invoked when a Tween completes a full duration cycle. For non-looping Tweens, this is fired right before the stopped(Tween) event. For looping Tweens, this is fired on every cycle completion.
      Parameters:
      tween - the Tween that has completed.