Package apple.uikit.protocol
Interface UITableViewDropItem
-
public interface UITableViewDropItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UIDragItemdragItem()Retrieve drop data from the dragItem's itemProvider.CGSizepreviewSize()May be useful for computing the UIDragPreviewTarget transform for UITableViewDropCoordinator dropItem:toTarget: Returns CGSizeZero if the dragItem does not have a visible drop preview.NSIndexPathsourceIndexPath()If this drop item is also from this table view this index path will specify the location of the row it came from.
-
-
-
Method Detail
-
dragItem
UIDragItem dragItem()
Retrieve drop data from the dragItem's itemProvider.
-
previewSize
CGSize previewSize()
May be useful for computing the UIDragPreviewTarget transform for UITableViewDropCoordinator dropItem:toTarget: Returns CGSizeZero if the dragItem does not have a visible drop preview.
-
sourceIndexPath
NSIndexPath sourceIndexPath()
If this drop item is also from this table view this index path will specify the location of the row it came from. If the dragItem comes from some other source (e.g. another source inside or outside of the app), or if the source table view is updated or reloaded after the drag begins, this index path will be nil. This is useful for directly accessing the model object in your data source instead of using the item provider to retrieve the data.
-
-