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