Skip to main content

UIViewControllerTransitionCoordinatorContext

Trait UIViewControllerTransitionCoordinatorContext 

Source
pub unsafe trait UIViewControllerTransitionCoordinatorContext: NSObjectProtocol + MainThreadOnly {
Show 14 methods // Provided methods fn isAnimated(&self) -> bool where Self: Sized + Message { ... } fn presentationStyle(&self) -> UIModalPresentationStyle where Self: Sized + Message { ... } fn initiallyInteractive(&self) -> bool where Self: Sized + Message { ... } fn isInterruptible(&self) -> bool where Self: Sized + Message { ... } fn isInteractive(&self) -> bool where Self: Sized + Message { ... } fn isCancelled(&self) -> bool where Self: Sized + Message { ... } fn transitionDuration(&self) -> NSTimeInterval where Self: Sized + Message { ... } fn percentComplete(&self) -> CGFloat where Self: Sized + Message { ... } fn completionVelocity(&self) -> CGFloat where Self: Sized + Message { ... } fn completionCurve(&self) -> UIViewAnimationCurve 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 containerView(&self) -> Retained<UIView> where Self: Sized + Message { ... } fn targetTransform(&self) -> CGAffineTransform where Self: Sized + Message { ... }
}
Available on crate feature UIViewControllerTransitionCoordinator only.
Expand description

Provided Methods§

Source

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

Source

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

Available on crate feature UIViewController only.
Source

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

initiallyInteractive indicates whether the transition was initiated as an interactive transition. It never changes during the course of a transition. It can only be YES if isAnimated is YES. If it is NO, then isInteractive can only be YES if isInterruptible is YES

Source

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

Source

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

Source

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

Source

fn transitionDuration(&self) -> NSTimeInterval
where Self: Sized + Message,

Source

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

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

fn completionVelocity(&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 viewControllerForKey( &self, key: &UITransitionContextViewControllerKey, ) -> Option<Retained<UIViewController>>
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

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

Available on crate features UIResponder and UIView only.
Source

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

Available on crate features UIResponder and UIView only.
Source

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

Available on crate feature objc2-core-foundation only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIViewControllerTransitionCoordinatorContext

Source§

impl ProtocolType for dyn UIViewControllerTransitionCoordinatorContext

Source§

const NAME: &'static str = "UIViewControllerTransitionCoordinatorContext"

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

Implementors§