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§
unsafe fn textPasteConfigurationSupporting_transformPasteItem( &self, text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>, item: &ProtocolObject<dyn UITextPasteItem>, )
Available on crate features
UIPasteConfigurationSupporting
and UITextPasteConfigurationSupporting
only.unsafe fn textPasteConfigurationSupporting_combineItemAttributedStrings_forRange( &self, text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>, item_strings: &NSArray<NSAttributedString>, text_range: &UITextRange, ) -> Retained<NSAttributedString>
Available on crate features
UIPasteConfigurationSupporting
and UITextInput
and UITextPasteConfigurationSupporting
only.unsafe fn textPasteConfigurationSupporting_performPasteOfAttributedString_toRange( &self, text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>, attributed_string: &NSAttributedString, text_range: &UITextRange, ) -> Retained<UITextRange>
Available on crate features
UIPasteConfigurationSupporting
and UITextInput
and UITextPasteConfigurationSupporting
only.unsafe fn textPasteConfigurationSupporting_shouldAnimatePasteOfAttributedString_toRange( &self, text_paste_configuration_supporting: &ProtocolObject<dyn UITextPasteConfigurationSupporting>, attributed_string: &NSAttributedString, text_range: &UITextRange, ) -> bool
Available on crate features
UIPasteConfigurationSupporting
and UITextInput
and UITextPasteConfigurationSupporting
only.