Interface UICollectionViewDropItem


  • public interface UICollectionViewDropItem
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      UIDragItem dragItem()  
      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.
      NSIndexPath sourceIndexPath()
      If this drop item is also from this collection view this indexPath will specify the location of the item.
    • Method Detail

      • 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

        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.