UITextPasteItem

Trait UITextPasteItem 

Source
pub unsafe trait UITextPasteItem: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn itemProvider(&self) -> Retained<NSItemProvider>
       where Self: Sized + Message { ... }
    unsafe fn localObject(&self) -> Option<Retained<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn defaultAttributes(
        &self,
    ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn setStringResult(&self, string: &NSString)
       where Self: Sized + Message { ... }
    unsafe fn setAttributedStringResult(&self, string: &NSAttributedString)
       where Self: Sized + Message { ... }
    unsafe fn setAttachmentResult(&self, text_attachment: &NSTextAttachment)
       where Self: Sized + Message { ... }
    unsafe fn setNoResult(&self)
       where Self: Sized + Message { ... }
    unsafe fn setDefaultResult(&self)
       where Self: Sized + Message { ... }
}
Available on crate feature UITextPasteDelegate only.
Expand description

Provided Methods§

Source

unsafe fn itemProvider(&self) -> Retained<NSItemProvider>
where Self: Sized + Message,

Source

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

Source

unsafe fn defaultAttributes( &self, ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>
where Self: Sized + Message,

Source

unsafe fn setStringResult(&self, string: &NSString)
where Self: Sized + Message,

Source

unsafe fn setAttributedStringResult(&self, string: &NSAttributedString)
where Self: Sized + Message,

Source

unsafe fn setAttachmentResult(&self, text_attachment: &NSTextAttachment)
where Self: Sized + Message,

Available on crate feature NSTextAttachment only.
Source

unsafe fn setNoResult(&self)
where Self: Sized + Message,

Source

unsafe fn setDefaultResult(&self)
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UITextPasteItem

Source§

const NAME: &'static str = "UITextPasteItem"

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 UITextPasteItem

Implementations on Foreign Types§

Source§

impl<T> UITextPasteItem for ProtocolObject<T>
where T: ?Sized + UITextPasteItem,

Implementors§