Package apple.uikit.protocol
Interface UIViewControllerTransitionCoordinatorContext
-
- All Known Subinterfaces:
UIViewControllerTransitionCoordinator
public interface UIViewControllerTransitionCoordinatorContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcompletionCurve()doublecompletionVelocity()UIViewcontainerView()The view in which the animated transition is taking place.booleaninitiallyInteractive()initiallyInteractive indicates whether the transition was initiated as an interactive transition.booleanisAnimated()Most of the time isAnimated will be YES.booleanisCancelled()isCancelled is usually NO.booleanisInteractive()Interactive transitions have non-interactive segments.booleanisInterruptible()doublepercentComplete()These three methods are potentially meaningful for interactive transitions that are completing.longpresentationStyle()A modal presentation style whose transition is being customized or UIModaPresentationNone if this is not a modal presentation or dismissal.CGAffineTransformtargetTransform()This is either CGAffineTransformIdentity (indicating no rotation), or a rotation transform of +90, -90, or 180.doubletransitionDuration()The full expected duration of the transition if it is run non-interactively.UIViewControllerviewControllerForKey(java.lang.String key)Currently only two keys are defined by the system: UITransitionContextToViewControllerKey UITransitionContextFromViewControllerKeyUIViewviewForKey(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
-
-