Trait objc2_ui_kit::UITextPasteItem

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

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