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§
unsafe fn itemProvider(&self) -> Retained<NSItemProvider>
unsafe fn localObject(&self) -> Option<Retained<AnyObject>>
unsafe fn defaultAttributes( &self, ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>
unsafe fn setStringResult(&self, string: &NSString)
unsafe fn setAttributedStringResult(&self, string: &NSAttributedString)
unsafe fn setAttachmentResult(&self, text_attachment: &NSTextAttachment)
Available on crate feature
NSTextAttachment
only.