Class UITableViewDropIntent


  • public final class UITableViewDropIntent
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Automatic
      The table view will automatically choose between .insertAtDestinationIndexPath and .insertIntoDestinationIndexPath depending on the position of the drop.
      static long InsertAtDestinationIndexPath
      The drop will be placed in row(s) inserted at the destination index path.
      static long InsertIntoDestinationIndexPath
      The drop will be placed inside the row at the destination index path (e.g. the row is a container of other items).
      static long Unspecified
      Table view will accept the drop, but the location is not yet known and will be determined later.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Unspecified

        public static final long Unspecified
        Table view will accept the drop, but the location is not yet known and will be determined later. Will not open a gap. You may wish to provide some visual treatment to communicate this to the user.
        See Also:
        Constant Field Values
      • InsertAtDestinationIndexPath

        public static final long InsertAtDestinationIndexPath
        The drop will be placed in row(s) inserted at the destination index path. Opens a gap at the specified location simulating the final dropped layout.
        See Also:
        Constant Field Values
      • InsertIntoDestinationIndexPath

        public static final long InsertIntoDestinationIndexPath
        The drop will be placed inside the row at the destination index path (e.g. the row is a container of other items). Will not open a gap. Table view will highlight the row at the destination index path.
        See Also:
        Constant Field Values
      • Automatic

        public static final long Automatic
        The table view will automatically choose between .insertAtDestinationIndexPath and .insertIntoDestinationIndexPath depending on the position of the drop. This should be used instead of .insertIntoDestinationIndexPath when the item being dropped can either be placed inside the row at the destination index path or inserted in a new row at the index path of the container row.
        See Also:
        Constant Field Values