Trait UITabBarControllerSidebarDelegate

Source
pub unsafe trait UITabBarControllerSidebarDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn tabBarController_sidebarVisibilityWillChange_animator(
        &self,
        tab_bar_controller: &UITabBarController,
        sidebar: &UITabBarControllerSidebar,
        animator: &ProtocolObject<dyn UITabBarControllerSidebarAnimating>,
    )
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_sidebar_itemForRequest(
        &self,
        tab_bar_controller: &UITabBarController,
        sidebar: &UITabBarControllerSidebar,
        request: &UITabSidebarItemRequest,
    ) -> Retained<UITabSidebarItem>
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_sidebar_updateItem(
        &self,
        tab_bar_controller: &UITabBarController,
        sidebar: &UITabBarControllerSidebar,
        item: &UITabSidebarItem,
    )
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_sidebar_willBeginDisplayingTab(
        &self,
        tab_bar_controller: &UITabBarController,
        sidebar: &UITabBarControllerSidebar,
        tab: &UITab,
    )
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_sidebar_didEndDisplayingTab(
        &self,
        tab_bar_controller: &UITabBarController,
        sidebar: &UITabBarControllerSidebar,
        tab: &UITab,
    )
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_sidebar_leadingSwipeActionsConfigurationForTab(
        &self,
        tab_bar_controller: &UITabBarController,
        sidebar: &UITabBarControllerSidebar,
        tab: &UITab,
    ) -> Option<Retained<UISwipeActionsConfiguration>>
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_sidebar_trailingSwipeActionsConfigurationForTab(
        &self,
        tab_bar_controller: &UITabBarController,
        sidebar: &UITabBarControllerSidebar,
        tab: &UITab,
    ) -> Option<Retained<UISwipeActionsConfiguration>>
       where Self: Sized + Message { ... }
    unsafe fn tabBarController_sidebar_contextMenuConfigurationForTab(
        &self,
        tab_bar_controller: &UITabBarController,
        sidebar: &UITabBarControllerSidebar,
        tab: &UITab,
    ) -> Option<Retained<UIContextMenuConfiguration>>
       where Self: Sized + Message { ... }
}
Available on crate feature UITabBarControllerSidebar only.
Expand description

Provided Methods§

Source

unsafe fn tabBarController_sidebarVisibilityWillChange_animator( &self, tab_bar_controller: &UITabBarController, sidebar: &UITabBarControllerSidebar, animator: &ProtocolObject<dyn UITabBarControllerSidebarAnimating>, )
where Self: Sized + Message,

Available on crate features UIResponder and UITabBarController and UIViewController only.

Notifies the delegate when the visibility of the sidebar is about to change when sidebar.isHidden changes. Add animations to the animator to run alongside the visibility update. Alongside animations and completions will run immediately if the sidebar visibility is changed without animation.

Source

unsafe fn tabBarController_sidebar_itemForRequest( &self, tab_bar_controller: &UITabBarController, sidebar: &UITabBarControllerSidebar, request: &UITabSidebarItemRequest, ) -> Retained<UITabSidebarItem>
where Self: Sized + Message,

Available on crate features UIResponder and UITabBarController and UITabSidebarItem and UIViewController only.

Return a UITabSidebarItem for the specified item request. When created, the item will be preconfigured to the appropriate defaults for its given content. If this method is not implemented, a default sidebar item will be provided for the request.

Source

unsafe fn tabBarController_sidebar_updateItem( &self, tab_bar_controller: &UITabBarController, sidebar: &UITabBarControllerSidebar, item: &UITabSidebarItem, )
where Self: Sized + Message,

Available on crate features UIResponder and UITabBarController and UITabSidebarItem and UIViewController only.

Called whenever the sidebar item’s configurationState changes or the item is reconfigured. The passed in item will accure all modifications until the delegate requests for a new sidebar item from the delegate method tabBarController:sidebar:itemForRequest:

Source

unsafe fn tabBarController_sidebar_willBeginDisplayingTab( &self, tab_bar_controller: &UITabBarController, sidebar: &UITabBarControllerSidebar, tab: &UITab, )
where Self: Sized + Message,

Available on crate features UIResponder and UITab and UITabBarController and UIViewController only.

Notifies the delegate when the sidebar is about to display the row representing the specified tab

Source

unsafe fn tabBarController_sidebar_didEndDisplayingTab( &self, tab_bar_controller: &UITabBarController, sidebar: &UITabBarControllerSidebar, tab: &UITab, )
where Self: Sized + Message,

Available on crate features UIResponder and UITab and UITabBarController and UIViewController only.

Notifies the delegate when the sidebar has finished displaying the row representing the specified tab

Source

unsafe fn tabBarController_sidebar_leadingSwipeActionsConfigurationForTab( &self, tab_bar_controller: &UITabBarController, sidebar: &UITabBarControllerSidebar, tab: &UITab, ) -> Option<Retained<UISwipeActionsConfiguration>>
where Self: Sized + Message,

Available on crate features UIResponder and UISwipeActionsConfiguration and UITab and UITabBarController and UIViewController only.

Called when the sidebar is about to show leading swipe actions for the specified tab. Return either a concrete UISwipeActionsConfiguration or nil if the tab does not show swipe actions.

Source

unsafe fn tabBarController_sidebar_trailingSwipeActionsConfigurationForTab( &self, tab_bar_controller: &UITabBarController, sidebar: &UITabBarControllerSidebar, tab: &UITab, ) -> Option<Retained<UISwipeActionsConfiguration>>
where Self: Sized + Message,

Available on crate features UIResponder and UISwipeActionsConfiguration and UITab and UITabBarController and UIViewController only.

Called when the sidebar is about to show trailing swipe actions for a particular tab. Return either a UISwipeActionsConfiguration object or nil if this tab does not show swipe actions.

Source

unsafe fn tabBarController_sidebar_contextMenuConfigurationForTab( &self, tab_bar_controller: &UITabBarController, sidebar: &UITabBarControllerSidebar, tab: &UITab, ) -> Option<Retained<UIContextMenuConfiguration>>
where Self: Sized + Message,

Available on crate features UIContextMenuConfiguration and UIResponder and UITab and UITabBarController and UIViewController only.

Called when the sidebar is about to display a context menu for the specified tab. Return either a concrete UIContextMenuConfiguration or nil if the tab does not show context menus.

Trait Implementations§

Source§

impl ProtocolType for dyn UITabBarControllerSidebarDelegate

Source§

const NAME: &'static str = "UITabBarControllerSidebarDelegate"

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 UITabBarControllerSidebarDelegate

Implementations on Foreign Types§

Source§

impl<T> UITabBarControllerSidebarDelegate for ProtocolObject<T>

Implementors§