UISearchSuggestion

Trait UISearchSuggestion 

Source
pub unsafe trait UISearchSuggestion: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn localizedSuggestion(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn localizedDescription(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn iconImage(&self) -> Option<Retained<UIImage>>
       where Self: Sized + Message { ... }
    fn localizedAttributedSuggestion(
        &self,
    ) -> Option<Retained<NSAttributedString>>
       where Self: Sized + Message { ... }
    fn representedObject(&self) -> Option<Retained<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn setRepresentedObject(
        &self,
        represented_object: Option<&AnyObject>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UISearchSuggestion only.
Expand description

Provided Methods§

Source

fn localizedSuggestion(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

The localized suggestion that will be displayed as the search string

Source

fn localizedDescription(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

The localized description used as accessibility string

Source

fn iconImage(&self) -> Option<Retained<UIImage>>
where Self: Sized + Message,

Available on crate feature UIImage only.

Icon that represents this search suggestion item

Source

fn localizedAttributedSuggestion(&self) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message,

If non-null, will be displayed as the search string instead of localizedSuggestion

Source

fn representedObject(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

User information

Source

unsafe fn setRepresentedObject(&self, represented_object: Option<&AnyObject>)
where Self: Sized + Message,

Setter for representedObject.

§Safety

represented_object should be of the correct type.

Trait Implementations§

Source§

impl ProtocolType for dyn UISearchSuggestion

Source§

const NAME: &'static str = "UISearchSuggestion"

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
Source§

impl<T> ImplementedBy<T> for dyn UISearchSuggestion

Implementations on Foreign Types§

Source§

impl<T> UISearchSuggestion for ProtocolObject<T>

Implementors§