IGListAdapterMoveDelegate

Objective-C

@protocol IGListAdapterMoveDelegate <NSObject>

Swift

protocol ListAdapterMoveDelegate : NSObjectProtocol

Conform to IGListAdapterMoveDelegate to receive interactive reordering requests.

  • Asks the delegate to move a section object as the result of interactive reordering.

    Declaration

    Objective-C

    - (void)listAdapter:(nonnull IGListAdapter *)listAdapter
             moveObject:(nonnull id)object
                   from:(nonnull NSArray *)previousObjects
                     to:(nonnull NSArray *)objects;

    Swift

    func listAdapter(_ listAdapter: IGListAdapter, move object: Any, from previousObjects: [Any], to objects: [Any])

    Parameters

    listAdapter

    The list adapter sending this information.

    object

    the object that was moved

    previousObjects

    The array of objects prior to the move.

    objects

    The array of objects after the move.