Package apple.uikit.protocol
Interface UITextDragRequest
-
public interface UITextDragRequestAPI-Since: 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull UITextRangedragRange()The text range being dragged.@NotNull UIDragSessiondragSession()The current drag session.@NotNull NSArray<? extends UIDragItem>existingItems()The existing items in the session.booleanisSelected()Indicates whether the drag context contains a selection.@NotNull NSArray<? extends UIDragItem>suggestedItems()The suggested items that the text control would return, if the responsible delegate method were not implemented.
-
-
-
Method Detail
-
dragRange
@NotNull @NotNull UITextRange dragRange()
The text range being dragged.
-
dragSession
@NotNull @NotNull UIDragSession dragSession()
The current drag session.
-
existingItems
@NotNull @NotNull 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
@NotNull @NotNull 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.
-
-