pub unsafe trait UIViewControllerInteractiveTransitioning: NSObjectProtocol + MainThreadOnly {
// Provided methods
unsafe fn startInteractiveTransition(
&self,
transition_context: &ProtocolObject<dyn UIViewControllerContextTransitioning>,
)
where Self: Sized + Message { ... }
unsafe fn completionSpeed(&self) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn completionCurve(&self) -> UIViewAnimationCurve
where Self: Sized + Message { ... }
unsafe fn wantsInteractiveStart(&self) -> bool
where Self: Sized + Message { ... }
}
Available on crate feature
UIViewControllerTransitioning
only.Expand description
Provided Methods§
unsafe fn startInteractiveTransition( &self, transition_context: &ProtocolObject<dyn UIViewControllerContextTransitioning>, )
unsafe fn completionSpeed(&self) -> CGFloat
Available on crate feature
objc2-core-foundation
only.unsafe fn completionCurve(&self) -> UIViewAnimationCurve
Available on crate feature
UIView
only.Sourceunsafe fn wantsInteractiveStart(&self) -> bool
unsafe fn wantsInteractiveStart(&self) -> bool
In 10.0, if an object conforming to UIViewControllerAnimatedTransitioning is known to be interruptible, it is possible to start it as if it was not interactive and then interrupt the transition and interact with it. In this case, implement this method and return NO. If an interactor does not implement this method, YES is assumed.