Skip to main content

UISearchControllerDelegate

Trait UISearchControllerDelegate 

Source
pub unsafe trait UISearchControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn willPresentSearchController(
        &self,
        search_controller: &UISearchController,
    )
       where Self: Sized + Message { ... }
    fn didPresentSearchController(&self, search_controller: &UISearchController)
       where Self: Sized + Message { ... }
    fn willDismissSearchController(
        &self,
        search_controller: &UISearchController,
    )
       where Self: Sized + Message { ... }
    fn didDismissSearchController(&self, search_controller: &UISearchController)
       where Self: Sized + Message { ... }
    fn presentSearchController(&self, search_controller: &UISearchController)
       where Self: Sized + Message { ... }
    fn searchController_willChangeToSearchBarPlacement(
        &self,
        search_controller: &UISearchController,
        new_placement: UINavigationItemSearchBarPlacement,
    )
       where Self: Sized + Message { ... }
    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

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

Available on crate features UIResponder and UIViewController only.
Source

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

Available on crate features UIResponder and UIViewController only.
Source

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

Available on crate features UIResponder and UIViewController only.
Source

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

Available on crate features UIResponder and UIViewController only.
Source

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

Available on crate features UIResponder and UIViewController only.
Source

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

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<T> ImplementedBy<T> for dyn UISearchControllerDelegate

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

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> UISearchControllerDelegate for ProtocolObject<T>

Implementors§