Package apple.uikit.protocol
Interface UIViewControllerAnimatedTransitioning
-
- All Known Implementing Classes:
UIDocumentBrowserTransitionController,UISearchController
public interface UIViewControllerAnimatedTransitioning
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidanimateTransition(UIViewControllerContextTransitioning transitionContext)This method can only be a nop if the transition is interactive and not a percentDriven interactive transition.default voidanimationEnded(boolean transitionCompleted)This is a convenience and if implemented will be invoked by the system when the transition context's completeTransition: method is invoked.default UIViewImplicitlyAnimatinginterruptibleAnimatorForTransition(UIViewControllerContextTransitioning transitionContext)A conforming object implements this method if the transition it creates can be interrupted.doubletransitionDuration(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.
-
-
-
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.
-
-