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 { ... }
}UITabBarControllerSidebar only.Expand description
Provided Methods§
Available on crate features UIResponder and UITabBarController and UIViewController only.
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.
Available on crate features UIResponder and UITabBarController and UITabSidebarItem and UIViewController only.
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.
Available on crate features UIResponder and UITabBarController and UITabSidebarItem and UIViewController only.
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:
Available on crate features UIResponder and UITab and UITabBarController and UIViewController only.
UIResponder and UITab and UITabBarController and UIViewController only.Notifies the delegate when the sidebar is about to display the row representing the specified tab
Available on crate features UIResponder and UITab and UITabBarController and UIViewController only.
UIResponder and UITab and UITabBarController and UIViewController only.Notifies the delegate when the sidebar has finished displaying the row representing the specified tab
Available on crate features UIResponder and UISwipeActionsConfiguration and UITab and UITabBarController and UIViewController only.
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.
Available on crate features UIResponder and UISwipeActionsConfiguration and UITab and UITabBarController and UIViewController only.
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.
Available on crate features UIContextMenuConfiguration and UIResponder and UITab and UITabBarController and UIViewController only.
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.