IGListDisplayDelegate
@protocol IGListDisplayDelegate <NSObject>
Implement this protocol to receive display events for a section controller when it is on screen.
-
Tells the delegate that the specified section controller is about to be displayed.
Declaration
Objective-C
- (void)listAdapter:(nonnull IGListAdapter *)listAdapter willDisplaySectionController: (nonnull IGListSectionController *)sectionController;Swift
func listAdapter(_ listAdapter: IGListAdapter, willDisplay sectionController: IGListSectionController)Parameters
listAdapterThe list adapter for the section controller.
sectionControllerThe section controller about to be displayed.
-
Tells the delegate that the specified section controller is no longer being displayed.
Declaration
Objective-C
- (void)listAdapter:(nonnull IGListAdapter *)listAdapter didEndDisplayingSectionController: (nonnull IGListSectionController *)sectionController;Swift
func listAdapter(_ listAdapter: IGListAdapter, didEndDisplaying sectionController: IGListSectionController)Parameters
listAdapterThe list adapter for the section controller.
sectionControllerThe section controller that is no longer displayed.
-
Tells the delegate that a cell in the specified list is about to be displayed.
Declaration
Objective-C
- (void)listAdapter:(nonnull IGListAdapter *)listAdapter willDisplaySectionController: (nonnull IGListSectionController *)sectionController cell:(nonnull UICollectionViewCell *)cell atIndex:(NSInteger)index;Swift
func listAdapter(_ listAdapter: IGListAdapter, willDisplay sectionController: IGListSectionController, cell: UICollectionViewCell, at index: Int)Parameters
listAdapterThe list adapter in which the cell will display.
sectionControllerThe section controller that is displaying the cell.
cellThe cell about to be displayed.
indexThe index of the cell in the section.
-
Tells the delegate that a cell in the specified list is no longer being displayed.
Declaration
Objective-C
- (void)listAdapter:(nonnull IGListAdapter *)listAdapter didEndDisplayingSectionController: (nonnull IGListSectionController *)sectionController cell:(nonnull UICollectionViewCell *)cell atIndex:(NSInteger)index;Swift
func listAdapter(_ listAdapter: IGListAdapter, didEndDisplaying sectionController: IGListSectionController, cell: UICollectionViewCell, at index: Int)Parameters
listAdapterThe list adapter in which the cell was displayed.
sectionControllerThe section controller that is no longer displaying the cell.
cellThe cell that is no longer displayed.
indexThe index of the cell in the section.