public interface UITextDragDelegate
| Modifier and Type | Method and Description |
|---|---|
default UITargetedDragPreview |
textDraggableViewDragPreviewForLiftingItemSession(UIView textDraggableView,
UIDragItem item,
UIDragSession session)
Provide a preview for lifting the item out of the text control.
|
default void |
textDraggableViewDragSessionDidEndWithOperation(UIView textDraggableView,
UIDragSession session,
long operation)
Called when a drag out of this text control has ended.
|
default void |
textDraggableViewDragSessionWillBegin(UIView textDraggableView,
UIDragSession session)
Called when the user actually begins dragging.
|
default NSArray<? extends UIDragItem> |
textDraggableViewItemsForDrag(UIView textDraggableView,
UITextDragRequest dragRequest)
Implement this to provide custom drag items when dragging out of a text control.
|
default void |
textDraggableViewWillAnimateLiftWithAnimatorSession(UIView textDraggableView,
UIDragAnimating animator,
UIDragSession session)
Called when the lift animation is about to start.
|
default UITargetedDragPreview textDraggableViewDragPreviewForLiftingItemSession(UIView textDraggableView, UIDragItem item, UIDragSession session)
Note: This will not be called for items obtained from a UITextDragRequest’s suggestedItems (via textDraggableView:itemsForDrag:). The text control will use its own previews for those items.
default void textDraggableViewDragSessionDidEndWithOperation(UIView textDraggableView, UIDragSession session, long operation)
default void textDraggableViewDragSessionWillBegin(UIView textDraggableView, UIDragSession session)
default NSArray<? extends UIDragItem> textDraggableViewItemsForDrag(UIView textDraggableView, UITextDragRequest dragRequest)
Note: this method might be called more than once. For instance, if the control is asked to provide more items to add to an existing session. You can detect this by checking the `existingItems` in the drag request.
default void textDraggableViewWillAnimateLiftWithAnimatorSession(UIView textDraggableView, UIDragAnimating animator, UIDragSession session)