Skip to main content

UIViewControllerAnimatedTransitioning

Trait UIViewControllerAnimatedTransitioning 

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

Provided Methods§

Source

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

Source

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

Source

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

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIViewControllerAnimatedTransitioning

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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.