IGListAdapterDelegate
Objective-C
@protocol IGListAdapterDelegate <NSObject>
Swift
protocol ListAdapterDelegate : NSObjectProtocol
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
listAdapterThe list adapter sending this information.
objectThe object that will display.
indexThe 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
listAdapterThe list adapter sending this information.
objectThe object that ended display.
indexThe index of the object in the list.
View on GitHub