IGListAdapterDelegate

@protocol IGListAdapterDelegate <NSObject>

Conform to IGListAdapterDelegate to receive display events for objects in a list.

  • Notifies the delegate that a list object is about to be displayed.

    Declaration

    Objective-C

    - (void)listAdapter:(nonnull IGListAdapter *)listAdapter
        willDisplayObject:(nonnull id)object
                  atIndex:(NSInteger)index;

    Swift

    func listAdapter(_ listAdapter: IGListAdapter, willDisplay object: Any, at index: Int)

    Parameters

    listAdapter

    The list adapter sending this information.

    object

    The object that will display.

    index

    The index of the object in the list.

  • Notifies the delegate that a list object is no longer being displayed.

    Declaration

    Objective-C

    - (void)listAdapter:(nonnull IGListAdapter *)listAdapter
        didEndDisplayingObject:(nonnull id)object
                       atIndex:(NSInteger)index;

    Swift

    func listAdapter(_ listAdapter: IGListAdapter, didEndDisplaying object: Any, at index: Int)

    Parameters

    listAdapter

    The list adapter sending this information.

    object

    The object that ended display.

    index

    The index of the object in the list.