Trait UINavigationControllerDelegate

Source
pub unsafe trait UINavigationControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn navigationController_willShowViewController_animated(
        &self,
        navigation_controller: &UINavigationController,
        view_controller: &UIViewController,
        animated: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn navigationController_didShowViewController_animated(
        &self,
        navigation_controller: &UINavigationController,
        view_controller: &UIViewController,
        animated: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn navigationControllerSupportedInterfaceOrientations(
        &self,
        navigation_controller: &UINavigationController,
    ) -> UIInterfaceOrientationMask
       where Self: Sized + Message { ... }
    unsafe fn navigationControllerPreferredInterfaceOrientationForPresentation(
        &self,
        navigation_controller: &UINavigationController,
    ) -> UIInterfaceOrientation
       where Self: Sized + Message { ... }
    unsafe fn navigationController_interactionControllerForAnimationController(
        &self,
        navigation_controller: &UINavigationController,
        animation_controller: &ProtocolObject<dyn UIViewControllerAnimatedTransitioning>,
    ) -> Option<Retained<ProtocolObject<dyn UIViewControllerInteractiveTransitioning>>>
       where Self: Sized + Message { ... }
    unsafe fn navigationController_animationControllerForOperation_fromViewController_toViewController(
        &self,
        navigation_controller: &UINavigationController,
        operation: UINavigationControllerOperation,
        from_vc: &UIViewController,
        to_vc: &UIViewController,
    ) -> Option<Retained<ProtocolObject<dyn UIViewControllerAnimatedTransitioning>>>
       where Self: Sized + Message { ... }
}
Available on crate feature UINavigationController only.
Expand description

Provided Methods§

Source

unsafe fn navigationController_willShowViewController_animated( &self, navigation_controller: &UINavigationController, view_controller: &UIViewController, animated: bool, )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn navigationController_didShowViewController_animated( &self, navigation_controller: &UINavigationController, view_controller: &UIViewController, animated: bool, )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn navigationControllerSupportedInterfaceOrientations( &self, navigation_controller: &UINavigationController, ) -> UIInterfaceOrientationMask
where Self: Sized + Message,

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

unsafe fn navigationControllerPreferredInterfaceOrientationForPresentation( &self, navigation_controller: &UINavigationController, ) -> UIInterfaceOrientation
where Self: Sized + Message,

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

unsafe fn navigationController_interactionControllerForAnimationController( &self, navigation_controller: &UINavigationController, animation_controller: &ProtocolObject<dyn UIViewControllerAnimatedTransitioning>, ) -> Option<Retained<ProtocolObject<dyn UIViewControllerInteractiveTransitioning>>>
where Self: Sized + Message,

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

unsafe fn navigationController_animationControllerForOperation_fromViewController_toViewController( &self, navigation_controller: &UINavigationController, operation: UINavigationControllerOperation, from_vc: &UIViewController, to_vc: &UIViewController, ) -> Option<Retained<ProtocolObject<dyn UIViewControllerAnimatedTransitioning>>>
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController and UIViewControllerTransitioning only.

Trait Implementations§

Source§

impl ProtocolType for dyn UINavigationControllerDelegate

Source§

const NAME: &'static str = "UINavigationControllerDelegate"

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 UINavigationControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> UINavigationControllerDelegate for ProtocolObject<T>

Implementors§