Trait objc2_ui_kit::UISearchBarDelegate

source ·
pub unsafe trait UISearchBarDelegate: UIBarPositioningDelegate + IsMainThreadOnly {
    // Provided methods
    unsafe fn searchBarShouldBeginEditing(
        &self,
        search_bar: &UISearchBar
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn searchBarTextDidBeginEditing(&self, search_bar: &UISearchBar)
       where Self: Sized + Message { ... }
    unsafe fn searchBarShouldEndEditing(&self, search_bar: &UISearchBar) -> bool
       where Self: Sized + Message { ... }
    unsafe fn searchBarTextDidEndEditing(&self, search_bar: &UISearchBar)
       where Self: Sized + Message { ... }
    unsafe fn searchBar_textDidChange(
        &self,
        search_bar: &UISearchBar,
        search_text: &NSString
    )
       where Self: Sized + Message { ... }
    unsafe fn searchBar_shouldChangeTextInRange_replacementText(
        &self,
        search_bar: &UISearchBar,
        range: NSRange,
        text: &NSString
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn searchBarSearchButtonClicked(&self, search_bar: &UISearchBar)
       where Self: Sized + Message { ... }
    unsafe fn searchBarBookmarkButtonClicked(&self, search_bar: &UISearchBar)
       where Self: Sized + Message { ... }
    unsafe fn searchBarCancelButtonClicked(&self, search_bar: &UISearchBar)
       where Self: Sized + Message { ... }
    unsafe fn searchBarResultsListButtonClicked(&self, search_bar: &UISearchBar)
       where Self: Sized + Message { ... }
    unsafe fn searchBar_selectedScopeButtonIndexDidChange(
        &self,
        search_bar: &UISearchBar,
        selected_scope: NSInteger
    )
       where Self: Sized + Message { ... }
}
Available on crate features UIBarCommon and UISearchBar only.

Provided Methods§

source

unsafe fn searchBarShouldBeginEditing(&self, search_bar: &UISearchBar) -> bool
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBarTextDidBeginEditing(&self, search_bar: &UISearchBar)
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBarShouldEndEditing(&self, search_bar: &UISearchBar) -> bool
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBarTextDidEndEditing(&self, search_bar: &UISearchBar)
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBar_textDidChange( &self, search_bar: &UISearchBar, search_text: &NSString )
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBar_shouldChangeTextInRange_replacementText( &self, search_bar: &UISearchBar, range: NSRange, text: &NSString ) -> bool
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBarSearchButtonClicked(&self, search_bar: &UISearchBar)
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBarBookmarkButtonClicked(&self, search_bar: &UISearchBar)
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBarCancelButtonClicked(&self, search_bar: &UISearchBar)
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBarResultsListButtonClicked(&self, search_bar: &UISearchBar)
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn searchBar_selectedScopeButtonIndexDidChange( &self, search_bar: &UISearchBar, selected_scope: NSInteger )
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

Trait Implementations§

source§

impl ProtocolType for dyn UISearchBarDelegate

source§

const NAME: &'static str = "UISearchBarDelegate"

The name of the Objective-C protocol that this type represents.
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 UISearchBarDelegate

Implementations on Foreign Types§

source§

impl<T> UISearchBarDelegate for ProtocolObject<T>

Implementors§