Package apple.uikit.protocol
Interface UICollectionViewDropPlaceholderContext
-
- All Superinterfaces:
UIDragAnimating
public interface UICollectionViewDropPlaceholderContext extends UIDragAnimating
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUICollectionViewDropPlaceholderContext.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(UICollectionViewDropPlaceholderContext.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()Retrieve drop data from the dragItem's itemProvider.voidsetNeedsCellUpdate()Call this method to request an update of the placeholder cell's content via the updateCellHandler.-
Methods inherited from interface apple.uikit.protocol.UIDragAnimating
addAnimations, addCompletion
-
-
-
-
Method Detail
-
commitInsertionWithDataSourceUpdates
boolean commitInsertionWithDataSourceUpdates(UICollectionViewDropPlaceholderContext.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()
Retrieve drop data from the dragItem's itemProvider.
-
setNeedsCellUpdate
void setNeedsCellUpdate()
Call this method to request an update of the placeholder cell's content via the updateCellHandler. This will only be called if the placeholder is visible. If the placeholder becomes visible via scrolling, the updateCellHandler will automatically be called.
-
-