Interface UIViewControllerTransitionCoordinatorContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long completionCurve()  
      double completionVelocity()  
      UIView containerView()
      The view in which the animated transition is taking place.
      boolean initiallyInteractive()
      initiallyInteractive indicates whether the transition was initiated as an interactive transition.
      boolean isAnimated()
      Most of the time isAnimated will be YES.
      boolean isCancelled()
      isCancelled is usually NO.
      boolean isInteractive()
      Interactive transitions have non-interactive segments.
      boolean isInterruptible()  
      double percentComplete()
      These three methods are potentially meaningful for interactive transitions that are completing.
      long presentationStyle()
      A modal presentation style whose transition is being customized or UIModaPresentationNone if this is not a modal presentation or dismissal.
      CGAffineTransform targetTransform()
      This is either CGAffineTransformIdentity (indicating no rotation), or a rotation transform of +90, -90, or 180.
      double transitionDuration()
      The full expected duration of the transition if it is run non-interactively.
      UIViewController viewControllerForKey​(java.lang.String key)
      Currently only two keys are defined by the system: UITransitionContextToViewControllerKey UITransitionContextFromViewControllerKey
      UIView viewForKey​(java.lang.String key)
      Currently only two keys are defined by the system: UITransitionContextToViewKey UITransitionContextFromViewKey
    • Method Detail

      • completionCurve

        long completionCurve()
      • completionVelocity

        double completionVelocity()
      • containerView

        UIView containerView()
        The view in which the animated transition is taking place.
      • initiallyInteractive

        boolean initiallyInteractive()
        initiallyInteractive indicates whether the transition was initiated as an interactive transition. It never changes during the course of a transition. It can only be YES if isAnimated is YES. If it is NO, then isInteractive can only be YES if isInterruptible is YES
      • isAnimated

        boolean isAnimated()
        Most of the time isAnimated will be YES. For custom transitions that use the new UIModalPresentationCustom presentation type we invoke the animateTransition: even though the transition is not animated. (This allows the custom transition to add or remove subviews to the container view.)
      • isCancelled

        boolean isCancelled()
        isCancelled is usually NO. It is only set to YES for an interactive transition that was cancelled.
      • isInteractive

        boolean isInteractive()
        Interactive transitions have non-interactive segments. For example, they all complete non-interactively. Some interactive transitions may have intermediate segments that are not interactive.
      • isInterruptible

        boolean isInterruptible()
      • percentComplete

        double percentComplete()
        These three methods are potentially meaningful for interactive transitions that are completing. It reports the percent complete of the transition when it moves to the non-interactive completion phase of the transition.
      • presentationStyle

        long presentationStyle()
        A modal presentation style whose transition is being customized or UIModaPresentationNone if this is not a modal presentation or dismissal.
      • targetTransform

        CGAffineTransform targetTransform()
        This is either CGAffineTransformIdentity (indicating no rotation), or a rotation transform of +90, -90, or 180.
      • transitionDuration

        double transitionDuration()
        The full expected duration of the transition if it is run non-interactively.
      • viewControllerForKey

        UIViewController viewControllerForKey​(java.lang.String key)
        Currently only two keys are defined by the system: UITransitionContextToViewControllerKey UITransitionContextFromViewControllerKey
      • viewForKey

        UIView viewForKey​(java.lang.String key)
        Currently only two keys are defined by the system: UITransitionContextToViewKey UITransitionContextFromViewKey