pub unsafe trait UISearchSuggestion: NSObjectProtocol + MainThreadOnly {
// Provided methods
unsafe fn localizedSuggestion(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn localizedDescription(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn iconImage(&self) -> Option<Retained<UIImage>>
where Self: Sized + Message { ... }
unsafe fn localizedAttributedSuggestion(
&self,
) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message { ... }
unsafe 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§
Sourceunsafe fn localizedSuggestion(&self) -> Option<Retained<NSString>>
unsafe fn localizedSuggestion(&self) -> Option<Retained<NSString>>
The localized suggestion that will be displayed as the search string
Sourceunsafe fn localizedDescription(&self) -> Option<Retained<NSString>>
unsafe fn localizedDescription(&self) -> Option<Retained<NSString>>
The localized description used as accessibility string
Sourceunsafe fn iconImage(&self) -> Option<Retained<UIImage>>
Available on crate feature UIImage only.
unsafe fn iconImage(&self) -> Option<Retained<UIImage>>
UIImage only.Icon that represents this search suggestion item
Sourceunsafe fn localizedAttributedSuggestion(
&self,
) -> Option<Retained<NSAttributedString>>
unsafe fn localizedAttributedSuggestion( &self, ) -> Option<Retained<NSAttributedString>>
If non-null, will be displayed as the search string instead of localizedSuggestion
Sourceunsafe fn representedObject(&self) -> Option<Retained<AnyObject>>
unsafe fn representedObject(&self) -> Option<Retained<AnyObject>>
User information
Sourceunsafe fn setRepresentedObject(&self, represented_object: Option<&AnyObject>)
unsafe fn setRepresentedObject(&self, represented_object: Option<&AnyObject>)
Setter for representedObject.