Interface Animation.Handle

Enclosing class:
Animation

public static interface Animation.Handle
Used to cancel animations after they've been started. See Animation.handle(). Note: you cannot mix and match cancel() and complete(). Use one or the other to achieve early termination of your animations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels this animation.
    void
    Completes the animation chain by adjusting all animations to their final state and then canceling them.
  • Method Details

    • cancel

      void cancel()
      Cancels this animation. It will remove itself from its animator the next frame.
    • complete

      void complete()
      Completes the animation chain by adjusting all animations to their final state and then canceling them. This method has no effect on animations that have already finished.