Interface UIViewControllerAnimatedTransitioning

    • Method Detail

      • animateTransition

        void animateTransition​(UIViewControllerContextTransitioning transitionContext)
        This method can only be a nop if the transition is interactive and not a percentDriven interactive transition.
      • animationEnded

        default void animationEnded​(boolean transitionCompleted)
        This is a convenience and if implemented will be invoked by the system when the transition context's completeTransition: method is invoked.
      • interruptibleAnimatorForTransition

        default UIViewImplicitlyAnimating interruptibleAnimatorForTransition​(UIViewControllerContextTransitioning transitionContext)
        A conforming object implements this method if the transition it creates can be interrupted. For example, it could return an instance of a UIViewPropertyAnimator. It is expected that this method will return the same instance for the life of a transition.
      • transitionDuration

        double transitionDuration​(UIViewControllerContextTransitioning transitionContext)
        This is used for percent driven interactive transitions, as well as for container controllers that have companion animations that might need to synchronize with the main animation.