Trait objc2_ui_kit::UISearchTextFieldDelegate

source ·
pub unsafe trait UISearchTextFieldDelegate: UITextFieldDelegate + IsMainThreadOnly {
    // Provided methods
    unsafe fn searchTextField_itemProviderForCopyingToken(
        &self,
        search_text_field: &UISearchTextField,
        token: &UISearchToken
    ) -> Retained<NSItemProvider>
       where Self: Sized + Message { ... }
    unsafe fn searchTextField_didSelectSuggestion(
        &self,
        search_text_field: &UISearchTextField,
        suggestion: &ProtocolObject<dyn UISearchSuggestion>
    )
       where Self: Sized + Message { ... }
}
Available on crate features UISearchTextField and UITextField only.

Provided Methods§

source

unsafe fn searchTextField_itemProviderForCopyingToken( &self, search_text_field: &UISearchTextField, token: &UISearchToken ) -> Retained<NSItemProvider>
where Self: Sized + Message,

Available on crate features UIControl and UIResponder and UIView only.
source

unsafe fn searchTextField_didSelectSuggestion( &self, search_text_field: &UISearchTextField, suggestion: &ProtocolObject<dyn UISearchSuggestion> )
where Self: Sized + Message,

Available on crate features UIControl and UIResponder and UISearchSuggestion and UIView only.

Trait Implementations§

source§

impl ProtocolType for dyn UISearchTextFieldDelegate

source§

const NAME: &'static str = "UISearchTextFieldDelegate"

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 UISearchTextFieldDelegate

Implementations on Foreign Types§

source§

impl<T> UISearchTextFieldDelegate for ProtocolObject<T>

Implementors§