Trait UISearchControllerDelegate

Source
pub unsafe trait UISearchControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn willPresentSearchController(
        &self,
        search_controller: &UISearchController,
    )
       where Self: Sized + Message { ... }
    unsafe fn didPresentSearchController(
        &self,
        search_controller: &UISearchController,
    )
       where Self: Sized + Message { ... }
    unsafe fn willDismissSearchController(
        &self,
        search_controller: &UISearchController,
    )
       where Self: Sized + Message { ... }
    unsafe fn didDismissSearchController(
        &self,
        search_controller: &UISearchController,
    )
       where Self: Sized + Message { ... }
    unsafe fn presentSearchController(
        &self,
        search_controller: &UISearchController,
    )
       where Self: Sized + Message { ... }
    unsafe fn searchController_willChangeToSearchBarPlacement(
        &self,
        search_controller: &UISearchController,
        new_placement: UINavigationItemSearchBarPlacement,
    )
       where Self: Sized + Message { ... }
    unsafe fn searchController_didChangeFromSearchBarPlacement(
        &self,
        search_controller: &UISearchController,
        previous_placement: UINavigationItemSearchBarPlacement,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UISearchController only.
Expand description

Provided Methods§

Source

unsafe fn willPresentSearchController( &self, search_controller: &UISearchController, )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn didPresentSearchController( &self, search_controller: &UISearchController, )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn willDismissSearchController( &self, search_controller: &UISearchController, )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn didDismissSearchController( &self, search_controller: &UISearchController, )
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn presentSearchController(&self, search_controller: &UISearchController)
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn searchController_willChangeToSearchBarPlacement( &self, search_controller: &UISearchController, new_placement: UINavigationItemSearchBarPlacement, )
where Self: Sized + Message,

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

unsafe fn searchController_didChangeFromSearchBarPlacement( &self, search_controller: &UISearchController, previous_placement: UINavigationItemSearchBarPlacement, )
where Self: Sized + Message,

Available on crate features UINavigationItem and UIResponder and UIViewController only.

Trait Implementations§

Source§

impl ProtocolType for dyn UISearchControllerDelegate

Source§

const NAME: &'static str = "UISearchControllerDelegate"

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 UISearchControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> UISearchControllerDelegate for ProtocolObject<T>

Implementors§