UINavigationBarDelegate

Trait UINavigationBarDelegate 

Source
pub unsafe trait UINavigationBarDelegate: UIBarPositioningDelegate + MainThreadOnly {
    // Provided methods
    fn navigationBar_shouldPushItem(
        &self,
        navigation_bar: &UINavigationBar,
        item: &UINavigationItem,
    ) -> bool
       where Self: Sized + Message { ... }
    fn navigationBar_didPushItem(
        &self,
        navigation_bar: &UINavigationBar,
        item: &UINavigationItem,
    )
       where Self: Sized + Message { ... }
    fn navigationBar_shouldPopItem(
        &self,
        navigation_bar: &UINavigationBar,
        item: &UINavigationItem,
    ) -> bool
       where Self: Sized + Message { ... }
    fn navigationBar_didPopItem(
        &self,
        navigation_bar: &UINavigationBar,
        item: &UINavigationItem,
    )
       where Self: Sized + Message { ... }
    fn navigationBarNSToolbarSection(
        &self,
        navigation_bar: &UINavigationBar,
    ) -> UINavigationBarNSToolbarSection
       where Self: Sized + Message { ... }
}
Available on crate features UIBarCommon and UINavigationBar only.
Expand description

Provided Methods§

Source

fn navigationBar_shouldPushItem( &self, navigation_bar: &UINavigationBar, item: &UINavigationItem, ) -> bool
where Self: Sized + Message,

Available on crate features UINavigationItem and UIResponder and UIView only.
Source

fn navigationBar_didPushItem( &self, navigation_bar: &UINavigationBar, item: &UINavigationItem, )
where Self: Sized + Message,

Available on crate features UINavigationItem and UIResponder and UIView only.
Source

fn navigationBar_shouldPopItem( &self, navigation_bar: &UINavigationBar, item: &UINavigationItem, ) -> bool
where Self: Sized + Message,

Available on crate features UINavigationItem and UIResponder and UIView only.
Source

fn navigationBar_didPopItem( &self, navigation_bar: &UINavigationBar, item: &UINavigationItem, )
where Self: Sized + Message,

Available on crate features UINavigationItem and UIResponder and UIView only.
Source

fn navigationBarNSToolbarSection( &self, navigation_bar: &UINavigationBar, ) -> UINavigationBarNSToolbarSection
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

Which section of the NSToolbar this navigation bar should use when attempting to host in an NSToolbar. Returning ‘None’ will disable NSToolbar hosting as if preferredBehavioralStyle were set to ‘Pad’ The specific section returned will also affect how the navigation bar presents in that section.

Trait Implementations§

Source§

impl ProtocolType for dyn UINavigationBarDelegate

Source§

const NAME: &'static str = "UINavigationBarDelegate"

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 UINavigationBarDelegate

Implementations on Foreign Types§

Source§

impl<T> UINavigationBarDelegate for ProtocolObject<T>

Implementors§