Package apple.uikit.protocol
Interface UICollectionViewDropItem
-
public interface UICollectionViewDropItemAPI-Since: 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull UIDragItemdragItem()CGSizepreviewSize()May be useful for computing the UIDragPreviewTarget transform for UICollectionViewDropCoordinator dropItem:toTarget: Returns CGSizeZero if the dragItem does not have a visible drop preview.@Nullable NSIndexPathsourceIndexPath()If this drop item is also from this collection view this indexPath will specify the location of the item.
-
-
-
Method Detail
-
dragItem
@NotNull @NotNull UIDragItem dragItem()
-
previewSize
CGSize previewSize()
May be useful for computing the UIDragPreviewTarget transform for UICollectionViewDropCoordinator dropItem:toTarget: Returns CGSizeZero if the dragItem does not have a visible drop preview.
-
sourceIndexPath
@Nullable @Nullable NSIndexPath sourceIndexPath()
If this drop item is also from this collection view this indexPath will specify the location of the item. If the dragItem comes from some other source (e.g. another source inside or outside of the app), it will be nil. This is useful for directly accessing the model objects in the data source instead of using the item provider to retrieve the data.
-
-