Trait objc2_ui_kit::UISearchSuggestion

source ·
pub unsafe trait UISearchSuggestion: NSObjectProtocol + IsMainThreadOnly {
    // 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.

Provided Methods§

source

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

source

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

source

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

Available on crate feature UIImage only.
source

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

source

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

source

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

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