Skip to main content

UISearchDisplayDelegate

Trait UISearchDisplayDelegate 

Source
pub unsafe trait UISearchDisplayDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn searchDisplayControllerWillBeginSearch(
        &self,
        controller: &UISearchDisplayController,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayControllerDidBeginSearch(
        &self,
        controller: &UISearchDisplayController,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayControllerWillEndSearch(
        &self,
        controller: &UISearchDisplayController,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayControllerDidEndSearch(
        &self,
        controller: &UISearchDisplayController,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayController_didLoadSearchResultsTableView(
        &self,
        controller: &UISearchDisplayController,
        table_view: &UITableView,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayController_willUnloadSearchResultsTableView(
        &self,
        controller: &UISearchDisplayController,
        table_view: &UITableView,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayController_willShowSearchResultsTableView(
        &self,
        controller: &UISearchDisplayController,
        table_view: &UITableView,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayController_didShowSearchResultsTableView(
        &self,
        controller: &UISearchDisplayController,
        table_view: &UITableView,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayController_willHideSearchResultsTableView(
        &self,
        controller: &UISearchDisplayController,
        table_view: &UITableView,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayController_didHideSearchResultsTableView(
        &self,
        controller: &UISearchDisplayController,
        table_view: &UITableView,
    )
       where Self: Sized + Message { ... }
    fn searchDisplayController_shouldReloadTableForSearchString(
        &self,
        controller: &UISearchDisplayController,
        search_string: Option<&NSString>,
    ) -> bool
       where Self: Sized + Message { ... }
    fn searchDisplayController_shouldReloadTableForSearchScope(
        &self,
        controller: &UISearchDisplayController,
        search_option: NSInteger,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UISearchDisplayController only.
Expand description

Provided MethodsΒ§

Source

fn searchDisplayControllerWillBeginSearch( &self, controller: &UISearchDisplayController, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

fn searchDisplayControllerDidBeginSearch( &self, controller: &UISearchDisplayController, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

fn searchDisplayControllerWillEndSearch( &self, controller: &UISearchDisplayController, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

fn searchDisplayControllerDidEndSearch( &self, controller: &UISearchDisplayController, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

fn searchDisplayController_didLoadSearchResultsTableView( &self, controller: &UISearchDisplayController, table_view: &UITableView, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Available on crate features UIResponder and UIScrollView and UITableView and UIView only.
Source

fn searchDisplayController_willUnloadSearchResultsTableView( &self, controller: &UISearchDisplayController, table_view: &UITableView, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Available on crate features UIResponder and UIScrollView and UITableView and UIView only.
Source

fn searchDisplayController_willShowSearchResultsTableView( &self, controller: &UISearchDisplayController, table_view: &UITableView, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Available on crate features UIResponder and UIScrollView and UITableView and UIView only.
Source

fn searchDisplayController_didShowSearchResultsTableView( &self, controller: &UISearchDisplayController, table_view: &UITableView, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Available on crate features UIResponder and UIScrollView and UITableView and UIView only.
Source

fn searchDisplayController_willHideSearchResultsTableView( &self, controller: &UISearchDisplayController, table_view: &UITableView, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Available on crate features UIResponder and UIScrollView and UITableView and UIView only.
Source

fn searchDisplayController_didHideSearchResultsTableView( &self, controller: &UISearchDisplayController, table_view: &UITableView, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Available on crate features UIResponder and UIScrollView and UITableView and UIView only.
Source

fn searchDisplayController_shouldReloadTableForSearchString( &self, controller: &UISearchDisplayController, search_string: Option<&NSString>, ) -> bool
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

fn searchDisplayController_shouldReloadTableForSearchScope( &self, controller: &UISearchDisplayController, search_option: NSInteger, ) -> bool
where Self: Sized + Message,

πŸ‘ŽDeprecated

Trait ImplementationsΒ§

SourceΒ§

impl<T> ImplementedBy<T> for dyn UISearchDisplayDelegate

SourceΒ§

impl ProtocolType for dyn UISearchDisplayDelegate

SourceΒ§

const NAME: &'static str = "UISearchDisplayDelegate"

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

ImplementorsΒ§