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§
unsafe fn searchBarShouldBeginEditing(&self, search_bar: &UISearchBar) -> bool
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBarTextDidBeginEditing(&self, search_bar: &UISearchBar)
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBarShouldEndEditing(&self, search_bar: &UISearchBar) -> bool
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBarTextDidEndEditing(&self, search_bar: &UISearchBar)
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBar_textDidChange( &self, search_bar: &UISearchBar, search_text: &NSString )
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBar_shouldChangeTextInRange_replacementText( &self, search_bar: &UISearchBar, range: NSRange, text: &NSString ) -> bool
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBarSearchButtonClicked(&self, search_bar: &UISearchBar)
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBarBookmarkButtonClicked(&self, search_bar: &UISearchBar)
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBarCancelButtonClicked(&self, search_bar: &UISearchBar)
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBarResultsListButtonClicked(&self, search_bar: &UISearchBar)
Available on crate features
UIResponder
and UIView
only.unsafe fn searchBar_selectedScopeButtonIndexDidChange( &self, search_bar: &UISearchBar, selected_scope: NSInteger )
Available on crate features
UIResponder
and UIView
only.