pub unsafe trait UIViewControllerInteractiveTransitioning: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn startInteractiveTransition(
&self,
transition_context: &ProtocolObject<dyn UIViewControllerContextTransitioning>,
)
where Self: Sized + Message { ... }
fn completionSpeed(&self) -> CGFloat
where Self: Sized + Message { ... }
fn completionCurve(&self) -> UIViewAnimationCurve
where Self: Sized + Message { ... }
fn wantsInteractiveStart(&self) -> bool
where Self: Sized + Message { ... }
}Available on crate feature
UIViewControllerTransitioning only.Expand description
Provided Methods§
fn startInteractiveTransition( &self, transition_context: &ProtocolObject<dyn UIViewControllerContextTransitioning>, )
fn completionSpeed(&self) -> CGFloat
Available on crate feature
objc2-core-foundation only.fn completionCurve(&self) -> UIViewAnimationCurve
Available on crate feature
UIView only.Sourcefn wantsInteractiveStart(&self) -> bool
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.