public interface UITextDropDelegate
| Modifier and Type | Method and Description |
|---|---|
default void |
textDroppableViewDropSessionDidEnd(UIView textDroppableView,
UIDropSession session)
Called when the drag has ended.
|
default void |
textDroppableViewDropSessionDidEnter(UIView textDroppableView,
UIDropSession session)
Called when a drag has entered the text view.
|
default void |
textDroppableViewDropSessionDidExit(UIView textDroppableView,
UIDropSession session)
Called when the drag has left the view.
|
default void |
textDroppableViewDropSessionDidUpdate(UIView textDroppableView,
UIDropSession session)
Called when the drag has updated.
|
default UITargetedDragPreview |
textDroppableViewPreviewForDroppingAllItemsWithDefault(UIView textDroppableView,
UITargetedDragPreview defaultPreview)
Provide a custom preview for dropping text into the text control.
|
default UITextDropProposal |
textDroppableViewProposalForDrop(UIView textDroppableView,
UITextDropRequest drop)
Defines whether a text control can accept a drag.
|
default long |
textDroppableViewWillBecomeEditableForDrop(UIView textDroppableView,
UITextDropRequest drop)
By default, when the text control is not editable, drops will not occur.
|
default void |
textDroppableViewWillPerformDrop(UIView textDroppableView,
UITextDropRequest drop)
Indicates that the drop is about to be performed.
|
default void textDroppableViewDropSessionDidEnd(UIView textDroppableView, UIDropSession session)
default void textDroppableViewDropSessionDidEnter(UIView textDroppableView, UIDropSession session)
default void textDroppableViewDropSessionDidExit(UIView textDroppableView, UIDropSession session)
default void textDroppableViewDropSessionDidUpdate(UIView textDroppableView, UIDropSession session)
Note: this is called *very* frequently, so try to do minimal work.
default UITargetedDragPreview textDroppableViewPreviewForDroppingAllItemsWithDefault(UIView textDroppableView, UITargetedDragPreview defaultPreview)
Only one preview is used, regardless of the number of items being dropped. Because we're animating into one range of text, there is no need for individual previews.
The defaultPreview is the preview that the control would normally use to animate the drop. It is based on the (ordered) combination of text representations for each item. (See UITextPasteDelegate to customize it.) It resembles the text that will be inserted into the view.
If any of the items have not finished loading, this will be an animation into the location of the caret when the drop was being performed.
Return nil to use the default preview of the underlying drop interaction.
default UITextDropProposal textDroppableViewProposalForDrop(UIView textDroppableView, UITextDropRequest drop)
Note: this is called frequently, so try to do minimal work.
default long textDroppableViewWillBecomeEditableForDrop(UIView textDroppableView, UITextDropRequest drop)
default void textDroppableViewWillPerformDrop(UIView textDroppableView, UITextDropRequest drop)