Trait objc2_ui_kit::UITabBarControllerDelegate

source ·
pub unsafe trait UITabBarControllerDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn tabBarController_shouldSelectViewController(
        &self,
        tab_bar_controller: &UITabBarController,
        view_controller: &UIViewController
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_didSelectViewController(
        &self,
        tab_bar_controller: &UITabBarController,
        view_controller: &UIViewController
    )
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_willBeginCustomizingViewControllers(
        &self,
        tab_bar_controller: &UITabBarController,
        view_controllers: &NSArray<UIViewController>
    )
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_willEndCustomizingViewControllers_changed(
        &self,
        tab_bar_controller: &UITabBarController,
        view_controllers: &NSArray<UIViewController>,
        changed: bool
    )
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_didEndCustomizingViewControllers_changed(
        &self,
        tab_bar_controller: &UITabBarController,
        view_controllers: &NSArray<UIViewController>,
        changed: bool
    )
       where Self: Sized + Message { ... }
    unsafe fn tabBarControllerSupportedInterfaceOrientations(
        &self,
        tab_bar_controller: &UITabBarController
    ) -> UIInterfaceOrientationMask
       where Self: Sized + Message { ... }
    unsafe fn tabBarControllerPreferredInterfaceOrientationForPresentation(
        &self,
        tab_bar_controller: &UITabBarController
    ) -> UIInterfaceOrientation
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_interactionControllerForAnimationController(
        &self,
        tab_bar_controller: &UITabBarController,
        animation_controller: &ProtocolObject<dyn UIViewControllerAnimatedTransitioning>
    ) -> Option<Retained<ProtocolObject<dyn UIViewControllerInteractiveTransitioning>>>
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_animationControllerForTransitionFromViewController_toViewController(
        &self,
        tab_bar_controller: &UITabBarController,
        from_vc: &UIViewController,
        to_vc: &UIViewController
    ) -> Option<Retained<ProtocolObject<dyn UIViewControllerAnimatedTransitioning>>>
       where Self: Sized + Message { ... }
}
Available on crate feature UITabBarController only.

Provided Methods§

source

unsafe fn tabBarController_shouldSelectViewController( &self, tab_bar_controller: &UITabBarController, view_controller: &UIViewController ) -> bool
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
source

unsafe fn tabBarController_didSelectViewController( &self, tab_bar_controller: &UITabBarController, view_controller: &UIViewController )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
source

unsafe fn tabBarController_willBeginCustomizingViewControllers( &self, tab_bar_controller: &UITabBarController, view_controllers: &NSArray<UIViewController> )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
source

unsafe fn tabBarController_willEndCustomizingViewControllers_changed( &self, tab_bar_controller: &UITabBarController, view_controllers: &NSArray<UIViewController>, changed: bool )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
source

unsafe fn tabBarController_didEndCustomizingViewControllers_changed( &self, tab_bar_controller: &UITabBarController, view_controllers: &NSArray<UIViewController>, changed: bool )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
source

unsafe fn tabBarControllerSupportedInterfaceOrientations( &self, tab_bar_controller: &UITabBarController ) -> UIInterfaceOrientationMask
where Self: Sized + Message,

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

unsafe fn tabBarControllerPreferredInterfaceOrientationForPresentation( &self, tab_bar_controller: &UITabBarController ) -> UIInterfaceOrientation
where Self: Sized + Message,

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

unsafe fn tabBarController_interactionControllerForAnimationController( &self, tab_bar_controller: &UITabBarController, 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 tabBarController_animationControllerForTransitionFromViewController_toViewController( &self, tab_bar_controller: &UITabBarController, 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 UITabBarControllerDelegate

source§

const NAME: &'static str = "UITabBarControllerDelegate"

The name of the Objective-C protocol that this type represents.
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 UITabBarControllerDelegate

Implementations on Foreign Types§

source§

impl<T> UITabBarControllerDelegate for ProtocolObject<T>

Implementors§