Skip to main content

UIViewControllerContextTransitioning

Trait UIViewControllerContextTransitioning 

Source
pub unsafe trait UIViewControllerContextTransitioning: NSObjectProtocol + MainThreadOnly {
Show 15 methods // Provided methods fn containerView(&self) -> Retained<UIView> where Self: Sized + Message { ... } fn isAnimated(&self) -> bool where Self: Sized + Message { ... } fn isInteractive(&self) -> bool where Self: Sized + Message { ... } fn transitionWasCancelled(&self) -> bool where Self: Sized + Message { ... } fn presentationStyle(&self) -> UIModalPresentationStyle where Self: Sized + Message { ... } fn updateInteractiveTransition(&self, percent_complete: CGFloat) where Self: Sized + Message { ... } fn finishInteractiveTransition(&self) where Self: Sized + Message { ... } fn cancelInteractiveTransition(&self) where Self: Sized + Message { ... } fn pauseInteractiveTransition(&self) where Self: Sized + Message { ... } fn completeTransition(&self, did_complete: bool) where Self: Sized + Message { ... } fn viewControllerForKey( &self, key: &UITransitionContextViewControllerKey, ) -> Option<Retained<UIViewController>> where Self: Sized + Message { ... } fn viewForKey( &self, key: &UITransitionContextViewKey, ) -> Option<Retained<UIView>> where Self: Sized + Message { ... } fn targetTransform(&self) -> CGAffineTransform where Self: Sized + Message { ... } fn initialFrameForViewController(&self, vc: &UIViewController) -> CGRect where Self: Sized + Message { ... } fn finalFrameForViewController(&self, vc: &UIViewController) -> CGRect where Self: Sized + Message { ... }
}
Available on crate feature UIViewControllerTransitioning only.
Expand description

Provided Methods§

Source

fn containerView(&self) -> Retained<UIView>
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
Source

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

Source

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

Source

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

Source

fn presentationStyle(&self) -> UIModalPresentationStyle
where Self: Sized + Message,

Available on crate feature UIViewController only.
Source

fn updateInteractiveTransition(&self, percent_complete: CGFloat)
where Self: Sized + Message,

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

fn finishInteractiveTransition(&self)
where Self: Sized + Message,

Source

fn cancelInteractiveTransition(&self)
where Self: Sized + Message,

Source

fn pauseInteractiveTransition(&self)
where Self: Sized + Message,

Source

fn completeTransition(&self, did_complete: bool)
where Self: Sized + Message,

Source

fn viewControllerForKey( &self, key: &UITransitionContextViewControllerKey, ) -> Option<Retained<UIViewController>>
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController and UIViewControllerTransitionCoordinator only.
Source

fn viewForKey( &self, key: &UITransitionContextViewKey, ) -> Option<Retained<UIView>>
where Self: Sized + Message,

Available on crate features UIResponder and UIView and UIViewControllerTransitionCoordinator only.
Source

fn targetTransform(&self) -> CGAffineTransform
where Self: Sized + Message,

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

fn initialFrameForViewController(&self, vc: &UIViewController) -> CGRect
where Self: Sized + Message,

Available on crate features objc2-core-foundation and UIResponder and UIViewController only.
Source

fn finalFrameForViewController(&self, vc: &UIViewController) -> CGRect
where Self: Sized + Message,

Available on crate features objc2-core-foundation and UIResponder and UIViewController only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIViewControllerContextTransitioning

Source§

impl ProtocolType for dyn UIViewControllerContextTransitioning

Source§

const NAME: &'static str = "UIViewControllerContextTransitioning"

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> UIViewControllerContextTransitioning for ProtocolObject<T>

Implementors§