Skip to main content

UITextPasteDelegate

Trait UITextPasteDelegate 

Source
pub unsafe trait UITextPasteDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn textPasteConfigurationSupporting_transformPasteItem(
        &self,
        text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>,
        item: &ProtocolObject<dyn UITextPasteItem>,
    )
       where Self: Sized + Message { ... }
    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 { ... }
    fn textPasteConfigurationSupporting_performPasteOfAttributedString_toRange(
        &self,
        text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>,
        attributed_string: &NSAttributedString,
        text_range: &UITextRange,
    ) -> Retained<UITextRange>
       where Self: Sized + Message { ... }
    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

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

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

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

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<T> ImplementedBy<T> for dyn UITextPasteDelegate

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

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> UITextPasteDelegate for ProtocolObject<T>

Implementors§