Package apple.uikit.protocol
Interface UITextDragRequest
-
public interface UITextDragRequest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UITextRangedragRange()The text range being dragged.UIDragSessiondragSession()The current drag session.NSArray<? extends UIDragItem>existingItems()The existing items in the session.booleanisSelected()Indicates whether the drag context contains a selection.NSArray<? extends UIDragItem>suggestedItems()The suggested items that the text control would return, if the responsible delegate method were not implemented.
-
-
-
Method Detail
-
dragRange
UITextRange dragRange()
The text range being dragged.
-
dragSession
UIDragSession dragSession()
The current drag session.
-
existingItems
NSArray<? extends UIDragItem> existingItems()
The existing items in the session. Will be filled when we request new items.
-
isSelected
boolean isSelected()
Indicates whether the drag context contains a selection. Use this to disable dragging from an attachment or links without them being selected. (In those cases, `selected` will be false.) For regular dragged text, this will always be true.
-
suggestedItems
NSArray<? extends UIDragItem> suggestedItems()
The suggested items that the text control would return, if the responsible delegate method were not implemented. This is populated lazily, so only use it when you need it.
-
-