public interface UITableViewDragDelegate
| Modifier and Type | Method and Description |
|---|---|
default UIDragPreviewParameters |
tableViewDragPreviewParametersForRowAtIndexPath(UITableView tableView,
NSIndexPath indexPath)
Allows customization of the preview used for the row when it is lifted or if the drag cancels.
|
default boolean |
tableViewDragSessionAllowsMoveOperation(UITableView tableView,
UIDragSession session)
Controls whether move operations are allowed for the drag session.
|
default void |
tableViewDragSessionDidEnd(UITableView tableView,
UIDragSession session)
Called to signal the end of the drag session.
|
default boolean |
tableViewDragSessionIsRestrictedToDraggingApplication(UITableView tableView,
UIDragSession session)
Controls whether the drag session is restricted to the source application.
|
default void |
tableViewDragSessionWillBegin(UITableView tableView,
UIDragSession session)
Called after the lift animation has completed to signal the start of a drag session.
|
default NSArray<? extends UIDragItem> |
tableViewItemsForAddingToDragSessionAtIndexPathPoint(UITableView tableView,
UIDragSession session,
NSIndexPath indexPath,
CGPoint point)
Called to request items to add to an existing drag session in response to the add item gesture.
|
NSArray<? extends UIDragItem> |
tableViewItemsForBeginningDragSessionAtIndexPath(UITableView tableView,
UIDragSession session,
NSIndexPath indexPath)
Provide items to begin a drag associated with a given index path.
|
default UIDragPreviewParameters tableViewDragPreviewParametersForRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
default boolean tableViewDragSessionAllowsMoveOperation(UITableView tableView, UIDragSession session)
default void tableViewDragSessionDidEnd(UITableView tableView, UIDragSession session)
default boolean tableViewDragSessionIsRestrictedToDraggingApplication(UITableView tableView, UIDragSession session)
default void tableViewDragSessionWillBegin(UITableView tableView, UIDragSession session)
default NSArray<? extends UIDragItem> tableViewItemsForAddingToDragSessionAtIndexPathPoint(UITableView tableView, UIDragSession session, NSIndexPath indexPath, CGPoint point)
NSArray<? extends UIDragItem> tableViewItemsForBeginningDragSessionAtIndexPath(UITableView tableView, UIDragSession session, NSIndexPath indexPath)