pub unsafe trait UITextDropDelegate: NSObjectProtocol + MainThreadOnly {
// Provided methods
unsafe fn textDroppableView_willBecomeEditableForDrop(
&self,
text_droppable_view: &UIView,
drop: &ProtocolObject<dyn UITextDropRequest>,
) -> UITextDropEditability
where Self: Sized + Message { ... }
unsafe fn textDroppableView_proposalForDrop(
&self,
text_droppable_view: &UIView,
drop: &ProtocolObject<dyn UITextDropRequest>,
) -> Retained<UITextDropProposal>
where Self: Sized + Message { ... }
unsafe fn textDroppableView_willPerformDrop(
&self,
text_droppable_view: &UIView,
drop: &ProtocolObject<dyn UITextDropRequest>,
)
where Self: Sized + Message { ... }
unsafe fn textDroppableView_previewForDroppingAllItemsWithDefault(
&self,
text_droppable_view: &UIView,
default_preview: &UITargetedDragPreview,
) -> Option<Retained<UITargetedDragPreview>>
where Self: Sized + Message { ... }
unsafe fn textDroppableView_dropSessionDidEnter(
&self,
text_droppable_view: &UIView,
session: &ProtocolObject<dyn UIDropSession>,
)
where Self: Sized + Message { ... }
unsafe fn textDroppableView_dropSessionDidUpdate(
&self,
text_droppable_view: &UIView,
session: &ProtocolObject<dyn UIDropSession>,
)
where Self: Sized + Message { ... }
unsafe fn textDroppableView_dropSessionDidExit(
&self,
text_droppable_view: &UIView,
session: &ProtocolObject<dyn UIDropSession>,
)
where Self: Sized + Message { ... }
unsafe fn textDroppableView_dropSessionDidEnd(
&self,
text_droppable_view: &UIView,
session: &ProtocolObject<dyn UIDropSession>,
)
where Self: Sized + Message { ... }
}Available on crate feature
UITextDropping only.Expand description
Provided Methods§
Sourceunsafe fn textDroppableView_willBecomeEditableForDrop(
&self,
text_droppable_view: &UIView,
drop: &ProtocolObject<dyn UITextDropRequest>,
) -> UITextDropEditability
Available on crate features UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
unsafe fn textDroppableView_willBecomeEditableForDrop( &self, text_droppable_view: &UIView, drop: &ProtocolObject<dyn UITextDropRequest>, ) -> UITextDropEditability
UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.§Safety
text_droppable_view must implement UITextDroppable.
Sourceunsafe fn textDroppableView_proposalForDrop(
&self,
text_droppable_view: &UIView,
drop: &ProtocolObject<dyn UITextDropRequest>,
) -> Retained<UITextDropProposal>
Available on crate features UIDropInteraction and UIPasteConfigurationSupporting and UIResponder and UITextDropProposal and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
unsafe fn textDroppableView_proposalForDrop( &self, text_droppable_view: &UIView, drop: &ProtocolObject<dyn UITextDropRequest>, ) -> Retained<UITextDropProposal>
UIDropInteraction and UIPasteConfigurationSupporting and UIResponder and UITextDropProposal and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.§Safety
text_droppable_view must implement UITextDroppable.
Sourceunsafe fn textDroppableView_willPerformDrop(
&self,
text_droppable_view: &UIView,
drop: &ProtocolObject<dyn UITextDropRequest>,
)
Available on crate features UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
unsafe fn textDroppableView_willPerformDrop( &self, text_droppable_view: &UIView, drop: &ProtocolObject<dyn UITextDropRequest>, )
UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.§Safety
text_droppable_view must implement UITextDroppable.
Sourceunsafe fn textDroppableView_previewForDroppingAllItemsWithDefault(
&self,
text_droppable_view: &UIView,
default_preview: &UITargetedDragPreview,
) -> Option<Retained<UITargetedDragPreview>>
Available on crate features UIPasteConfigurationSupporting and UIResponder and UITargetedDragPreview and UITargetedPreview and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
unsafe fn textDroppableView_previewForDroppingAllItemsWithDefault( &self, text_droppable_view: &UIView, default_preview: &UITargetedDragPreview, ) -> Option<Retained<UITargetedDragPreview>>
UIPasteConfigurationSupporting and UIResponder and UITargetedDragPreview and UITargetedPreview and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.§Safety
text_droppable_view must implement UITextDroppable.
Sourceunsafe fn textDroppableView_dropSessionDidEnter(
&self,
text_droppable_view: &UIView,
session: &ProtocolObject<dyn UIDropSession>,
)
Available on crate features UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
unsafe fn textDroppableView_dropSessionDidEnter( &self, text_droppable_view: &UIView, session: &ProtocolObject<dyn UIDropSession>, )
UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.§Safety
text_droppable_view must implement UITextDroppable.
Sourceunsafe fn textDroppableView_dropSessionDidUpdate(
&self,
text_droppable_view: &UIView,
session: &ProtocolObject<dyn UIDropSession>,
)
Available on crate features UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
unsafe fn textDroppableView_dropSessionDidUpdate( &self, text_droppable_view: &UIView, session: &ProtocolObject<dyn UIDropSession>, )
UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.§Safety
text_droppable_view must implement UITextDroppable.
Sourceunsafe fn textDroppableView_dropSessionDidExit(
&self,
text_droppable_view: &UIView,
session: &ProtocolObject<dyn UIDropSession>,
)
Available on crate features UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
unsafe fn textDroppableView_dropSessionDidExit( &self, text_droppable_view: &UIView, session: &ProtocolObject<dyn UIDropSession>, )
UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.§Safety
text_droppable_view must implement UITextDroppable.
Sourceunsafe fn textDroppableView_dropSessionDidEnd(
&self,
text_droppable_view: &UIView,
session: &ProtocolObject<dyn UIDropSession>,
)
Available on crate features UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
unsafe fn textDroppableView_dropSessionDidEnd( &self, text_droppable_view: &UIView, session: &ProtocolObject<dyn UIDropSession>, )
UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.§Safety
text_droppable_view must implement UITextDroppable.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn UITextDropDelegate
Source§impl ProtocolType for dyn UITextDropDelegate
impl ProtocolType for dyn UITextDropDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".