pub unsafe trait UITextDragDelegate: NSObjectProtocol + MainThreadOnly {
// Provided methods
unsafe fn textDraggableView_itemsForDrag(
&self,
text_draggable_view: &UIView,
drag_request: &ProtocolObject<dyn UITextDragRequest>,
) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message { ... }
unsafe fn textDraggableView_dragPreviewForLiftingItem_session(
&self,
text_draggable_view: &UIView,
item: &UIDragItem,
session: &ProtocolObject<dyn UIDragSession>,
) -> Option<Retained<UITargetedDragPreview>>
where Self: Sized + Message { ... }
unsafe fn textDraggableView_willAnimateLiftWithAnimator_session(
&self,
text_draggable_view: &UIView,
animator: &ProtocolObject<dyn UIDragAnimating>,
session: &ProtocolObject<dyn UIDragSession>,
)
where Self: Sized + Message { ... }
unsafe fn textDraggableView_dragSessionWillBegin(
&self,
text_draggable_view: &UIView,
session: &ProtocolObject<dyn UIDragSession>,
)
where Self: Sized + Message { ... }
unsafe fn textDraggableView_dragSessionDidEnd_withOperation(
&self,
text_draggable_view: &UIView,
session: &ProtocolObject<dyn UIDragSession>,
operation: UIDropOperation,
)
where Self: Sized + Message { ... }
}
Available on crate feature
UITextDragging
only.Expand description
Provided Methods§
unsafe fn textDraggableView_itemsForDrag( &self, text_draggable_view: &UIView, drag_request: &ProtocolObject<dyn UITextDragRequest>, ) -> Retained<NSArray<UIDragItem>>
Available on crate features
UIDragItem
and UIResponder
and UITextInput
and UITextInputTraits
and UIView
only.unsafe fn textDraggableView_dragPreviewForLiftingItem_session( &self, text_draggable_view: &UIView, item: &UIDragItem, session: &ProtocolObject<dyn UIDragSession>, ) -> Option<Retained<UITargetedDragPreview>>
Available on crate features
UIDragItem
and UIDragSession
and UIResponder
and UITargetedDragPreview
and UITargetedPreview
and UITextInput
and UITextInputTraits
and UIView
only.unsafe fn textDraggableView_willAnimateLiftWithAnimator_session( &self, text_draggable_view: &UIView, animator: &ProtocolObject<dyn UIDragAnimating>, session: &ProtocolObject<dyn UIDragSession>, )
Available on crate features
UIDragInteraction
and UIDragSession
and UIResponder
and UITextInput
and UITextInputTraits
and UIView
only.unsafe fn textDraggableView_dragSessionWillBegin( &self, text_draggable_view: &UIView, session: &ProtocolObject<dyn UIDragSession>, )
Available on crate features
UIDragSession
and UIResponder
and UITextInput
and UITextInputTraits
and UIView
only.unsafe fn textDraggableView_dragSessionDidEnd_withOperation( &self, text_draggable_view: &UIView, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation, )
Available on crate features
UIDragSession
and UIDropInteraction
and UIResponder
and UITextInput
and UITextInputTraits
and UIView
only.