Skip to main content

UITabBarDelegate

Trait UITabBarDelegate 

Source
pub unsafe trait UITabBarDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn tabBar_didSelectItem(&self, tab_bar: &UITabBar, item: &UITabBarItem)
       where Self: Sized + Message { ... }
    fn tabBar_willBeginCustomizingItems(
        &self,
        tab_bar: &UITabBar,
        items: &NSArray<UITabBarItem>,
    )
       where Self: Sized + Message { ... }
    fn tabBar_didBeginCustomizingItems(
        &self,
        tab_bar: &UITabBar,
        items: &NSArray<UITabBarItem>,
    )
       where Self: Sized + Message { ... }
    fn tabBar_willEndCustomizingItems_changed(
        &self,
        tab_bar: &UITabBar,
        items: &NSArray<UITabBarItem>,
        changed: bool,
    )
       where Self: Sized + Message { ... }
    fn tabBar_didEndCustomizingItems_changed(
        &self,
        tab_bar: &UITabBar,
        items: &NSArray<UITabBarItem>,
        changed: bool,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UITabBar only.
Expand description

Provided Methods§

Source

fn tabBar_didSelectItem(&self, tab_bar: &UITabBar, item: &UITabBarItem)
where Self: Sized + Message,

Available on crate features UIBarItem and UIResponder and UITabBarItem and UIView only.
Source

fn tabBar_willBeginCustomizingItems( &self, tab_bar: &UITabBar, items: &NSArray<UITabBarItem>, )
where Self: Sized + Message,

Available on crate features UIBarItem and UIResponder and UITabBarItem and UIView only.
Source

fn tabBar_didBeginCustomizingItems( &self, tab_bar: &UITabBar, items: &NSArray<UITabBarItem>, )
where Self: Sized + Message,

Available on crate features UIBarItem and UIResponder and UITabBarItem and UIView only.
Source

fn tabBar_willEndCustomizingItems_changed( &self, tab_bar: &UITabBar, items: &NSArray<UITabBarItem>, changed: bool, )
where Self: Sized + Message,

Available on crate features UIBarItem and UIResponder and UITabBarItem and UIView only.
Source

fn tabBar_didEndCustomizingItems_changed( &self, tab_bar: &UITabBar, items: &NSArray<UITabBarItem>, changed: bool, )
where Self: Sized + Message,

Available on crate features UIBarItem and UIResponder and UITabBarItem and UIView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UITabBarDelegate

Source§

impl ProtocolType for dyn UITabBarDelegate

Source§

const NAME: &'static str = "UITabBarDelegate"

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> UITabBarDelegate for ProtocolObject<T>
where T: ?Sized + UITabBarDelegate,

Implementors§

Source§

impl UITabBarDelegate for UITabBarController

Available on crate feature UITabBarController only.