Skip to main content

UITextPasteItem

Trait UITextPasteItem 

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Available on crate feature NSTextAttachment only.
Source

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

Source

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UITextPasteItem

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Implementors§