Trait UIViewControllerAnimatedTransitioning

Source
pub unsafe trait UIViewControllerAnimatedTransitioning: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn transitionDuration(
        &self,
        transition_context: Option<&ProtocolObject<dyn UIViewControllerContextTransitioning>>,
    ) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn animateTransition(
        &self,
        transition_context: &ProtocolObject<dyn UIViewControllerContextTransitioning>,
    )
       where Self: Sized + Message { ... }
    unsafe fn interruptibleAnimatorForTransition(
        &self,
        transition_context: &ProtocolObject<dyn UIViewControllerContextTransitioning>,
    ) -> Retained<ProtocolObject<dyn UIViewImplicitlyAnimating>>
       where Self: Sized + Message { ... }
    unsafe fn animationEnded(&self, transition_completed: bool)
       where Self: Sized + Message { ... }
}
Available on crate feature UIViewControllerTransitioning only.
Expand description

Provided Methods§

Source

unsafe fn transitionDuration( &self, transition_context: Option<&ProtocolObject<dyn UIViewControllerContextTransitioning>>, ) -> NSTimeInterval
where Self: Sized + Message,

Source

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

Source

unsafe fn interruptibleAnimatorForTransition( &self, transition_context: &ProtocolObject<dyn UIViewControllerContextTransitioning>, ) -> Retained<ProtocolObject<dyn UIViewImplicitlyAnimating>>
where Self: Sized + Message,

Available on crate feature UIViewAnimating only.

A conforming object implements this method if the transition it creates can be interrupted. For example, it could return an instance of a UIViewPropertyAnimator. It is expected that this method will return the same instance for the life of a transition.

Source

unsafe fn animationEnded(&self, transition_completed: bool)
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UIViewControllerAnimatedTransitioning

Source§

const NAME: &'static str = "UIViewControllerAnimatedTransitioning"

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 UIViewControllerAnimatedTransitioning

Implementations on Foreign Types§

Source§

impl<T> UIViewControllerAnimatedTransitioning for ProtocolObject<T>

Implementors§

Source§

impl UIViewControllerAnimatedTransitioning for UIDocumentBrowserTransitionController

Available on crate feature UIDocumentBrowserViewController only.
Source§

impl UIViewControllerAnimatedTransitioning for UISearchController

Available on crate feature UISearchController only.