Skip to main content

UINavigationControllerDelegate

Trait UINavigationControllerDelegate 

Source
pub unsafe trait UINavigationControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn navigationController_willShowViewController_animated(
        &self,
        navigation_controller: &UINavigationController,
        view_controller: &UIViewController,
        animated: bool,
    )
       where Self: Sized + Message { ... }
    fn navigationController_didShowViewController_animated(
        &self,
        navigation_controller: &UINavigationController,
        view_controller: &UIViewController,
        animated: bool,
    )
       where Self: Sized + Message { ... }
    fn navigationControllerSupportedInterfaceOrientations(
        &self,
        navigation_controller: &UINavigationController,
    ) -> UIInterfaceOrientationMask
       where Self: Sized + Message { ... }
    fn navigationControllerPreferredInterfaceOrientationForPresentation(
        &self,
        navigation_controller: &UINavigationController,
    ) -> UIInterfaceOrientation
       where Self: Sized + Message { ... }
    fn navigationController_interactionControllerForAnimationController(
        &self,
        navigation_controller: &UINavigationController,
        animation_controller: &ProtocolObject<dyn UIViewControllerAnimatedTransitioning>,
    ) -> Option<Retained<ProtocolObject<dyn UIViewControllerInteractiveTransitioning>>>
       where Self: Sized + Message { ... }
    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

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

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

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

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

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

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

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

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<T> ImplementedBy<T> for dyn UINavigationControllerDelegate

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

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

Implementors§