UIViewControllerInteractiveTransitioning

Trait UIViewControllerInteractiveTransitioning 

Source
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§

Source

fn startInteractiveTransition( &self, transition_context: &ProtocolObject<dyn UIViewControllerContextTransitioning>, )
where Self: Sized + Message,

Source

fn completionSpeed(&self) -> CGFloat
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

fn completionCurve(&self) -> UIViewAnimationCurve
where Self: Sized + Message,

Available on crate feature UIView only.
Source

fn wantsInteractiveStart(&self) -> bool
where Self: Sized + Message,

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.

Trait Implementations§

Source§

impl ProtocolType for dyn UIViewControllerInteractiveTransitioning

Source§

const NAME: &'static str = "UIViewControllerInteractiveTransitioning"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn UIViewControllerInteractiveTransitioning

Implementations on Foreign Types§

Source§

impl<T> UIViewControllerInteractiveTransitioning for ProtocolObject<T>

Implementors§