Trait UITextPasteDelegate

Source
pub unsafe trait UITextPasteDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn textPasteConfigurationSupporting_transformPasteItem(
        &self,
        text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>,
        item: &ProtocolObject<dyn UITextPasteItem>,
    )
       where Self: Sized + Message { ... }
    unsafe fn textPasteConfigurationSupporting_combineItemAttributedStrings_forRange(
        &self,
        text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>,
        item_strings: &NSArray<NSAttributedString>,
        text_range: &UITextRange,
    ) -> Retained<NSAttributedString>
       where Self: Sized + Message { ... }
    unsafe fn textPasteConfigurationSupporting_performPasteOfAttributedString_toRange(
        &self,
        text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>,
        attributed_string: &NSAttributedString,
        text_range: &UITextRange,
    ) -> Retained<UITextRange>
       where Self: Sized + Message { ... }
    unsafe fn textPasteConfigurationSupporting_shouldAnimatePasteOfAttributedString_toRange(
        &self,
        text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>,
        attributed_string: &NSAttributedString,
        text_range: &UITextRange,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UITextPasteDelegate only.
Expand description

Provided Methods§

Source

unsafe fn textPasteConfigurationSupporting_transformPasteItem( &self, text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>, item: &ProtocolObject<dyn UITextPasteItem>, )
where Self: Sized + Message,

Available on crate features UIPasteConfigurationSupporting and UITextPasteConfigurationSupporting only.
Source

unsafe fn textPasteConfigurationSupporting_combineItemAttributedStrings_forRange( &self, text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>, item_strings: &NSArray<NSAttributedString>, text_range: &UITextRange, ) -> Retained<NSAttributedString>
where Self: Sized + Message,

Available on crate features UIPasteConfigurationSupporting and UITextInput and UITextPasteConfigurationSupporting only.
Source

unsafe fn textPasteConfigurationSupporting_performPasteOfAttributedString_toRange( &self, text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>, attributed_string: &NSAttributedString, text_range: &UITextRange, ) -> Retained<UITextRange>
where Self: Sized + Message,

Available on crate features UIPasteConfigurationSupporting and UITextInput and UITextPasteConfigurationSupporting only.
Source

unsafe fn textPasteConfigurationSupporting_shouldAnimatePasteOfAttributedString_toRange( &self, text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>, attributed_string: &NSAttributedString, text_range: &UITextRange, ) -> bool
where Self: Sized + Message,

Available on crate features UIPasteConfigurationSupporting and UITextInput and UITextPasteConfigurationSupporting only.

Trait Implementations§

Source§

impl ProtocolType for dyn UITextPasteDelegate

Source§

const NAME: &'static str = "UITextPasteDelegate"

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 UITextPasteDelegate

Implementations on Foreign Types§

Source§

impl<T> UITextPasteDelegate for ProtocolObject<T>

Implementors§