Package apple.uikit.protocol
Interface UITableViewDropPlaceholderContext
-
- All Superinterfaces:
UIDragAnimating
public interface UITableViewDropPlaceholderContext extends UIDragAnimating
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUITableViewDropPlaceholderContext.Block_commitInsertionWithDataSourceUpdates-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIDragAnimating
UIDragAnimating.Block_addAnimations, UIDragAnimating.Block_addCompletion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancommitInsertionWithDataSourceUpdates(UITableViewDropPlaceholderContext.Block_commitInsertionWithDataSourceUpdates dataSourceUpdates)Exchange the placeholder for the final cell.booleandeletePlaceholder()If the placeholder is no longer needed or you wish to manually insert a cell for the drop data, you can remove the placeholder via this method.UIDragItemdragItem()The drag item this placeholder was created for.-
Methods inherited from interface apple.uikit.protocol.UIDragAnimating
addAnimations, addCompletion
-
-
-
-
Method Detail
-
commitInsertionWithDataSourceUpdates
boolean commitInsertionWithDataSourceUpdates(UITableViewDropPlaceholderContext.Block_commitInsertionWithDataSourceUpdates dataSourceUpdates)
Exchange the placeholder for the final cell. You are only responsible for updating your data source inside the block using the provided insertionIndexPath. If the placeholder is no longer available (e.g. -reloadData has been called) the dataSourceUpdates block will not be executed and this will return NO.
-
deletePlaceholder
boolean deletePlaceholder()
If the placeholder is no longer needed or you wish to manually insert a cell for the drop data, you can remove the placeholder via this method. If the placeholder is no longer available (e.g. -reloadData has been called) this will return NO.
-
dragItem
UIDragItem dragItem()
The drag item this placeholder was created for.
-
-