Interface UITextDragRequest


  • public interface UITextDragRequest
    • 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.