public interface UICollectionViewDragDelegate
| Modifier and Type | Method and Description |
|---|---|
default UIDragPreviewParameters |
collectionViewDragPreviewParametersForItemAtIndexPath(UICollectionView collectionView,
NSIndexPath indexPath)
Allows customization of the preview used for the item being lifted from or cancelling back to the collection view.
|
default boolean |
collectionViewDragSessionAllowsMoveOperation(UICollectionView collectionView,
UIDragSession session)
Controls whether move operations (see UICollectionViewDropProposal.operation) are allowed for the drag session.
|
default void |
collectionViewDragSessionDidEnd(UICollectionView collectionView,
UIDragSession session)
Called to signal the end of the drag session.
|
default boolean |
collectionViewDragSessionIsRestrictedToDraggingApplication(UICollectionView collectionView,
UIDragSession session)
Controls whether the drag session is restricted to the source application.
|
default void |
collectionViewDragSessionWillBegin(UICollectionView collectionView,
UIDragSession session)
Called after the lift animation has completed to signal the start of a drag session.
|
default NSArray<? extends UIDragItem> |
collectionViewItemsForAddingToDragSessionAtIndexPathPoint(UICollectionView collectionView,
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> |
collectionViewItemsForBeginningDragSessionAtIndexPath(UICollectionView collectionView,
UIDragSession session,
NSIndexPath indexPath)
Provide items to begin a drag associated with a given indexPath.
|
default UIDragPreviewParameters collectionViewDragPreviewParametersForItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
default boolean collectionViewDragSessionAllowsMoveOperation(UICollectionView collectionView, UIDragSession session)
default void collectionViewDragSessionDidEnd(UICollectionView collectionView, UIDragSession session)
default boolean collectionViewDragSessionIsRestrictedToDraggingApplication(UICollectionView collectionView, UIDragSession session)
default void collectionViewDragSessionWillBegin(UICollectionView collectionView, UIDragSession session)
default NSArray<? extends UIDragItem> collectionViewItemsForAddingToDragSessionAtIndexPathPoint(UICollectionView collectionView, UIDragSession session, NSIndexPath indexPath, CGPoint point)
NSArray<? extends UIDragItem> collectionViewItemsForBeginningDragSessionAtIndexPath(UICollectionView collectionView, UIDragSession session, NSIndexPath indexPath)