IGListBindingSectionControllerSelectionDelegate
@protocol IGListBindingSectionControllerSelectionDelegate <NSObject>
A protocol that handles cell selection events in an IGListBindingSectionController
.
-
Tells the delegate that a cell at a given index was selected.
Declaration
Objective-C
- (void)sectionController: (nonnull IGListBindingSectionController *)sectionController didSelectItemAtIndex:(NSInteger)index viewModel:(nonnull id)viewModel;
Swift
func sectionController(_ sectionController: IGListBindingSectionController, didSelectItemAt index: Int, viewModel: Any)
Parameters
sectionController
The section controller the selection occurred in.
index
The index of the selected cell.
viewModel
The view model that was bound to the cell.
-
Undocumented
Declaration
Objective-C
- (void)sectionController:(IGListBindingSectionController *)sectionController didDeselectItemAtIndex:(NSInteger)index viewModel:(id)viewModel;
Swift
optional func sectionController(_ sectionController: IGListBindingSectionController, didDeselectItemAt index: Int, viewModel: Any)
-
Undocumented
Declaration
Objective-C
- (void)sectionController:(IGListBindingSectionController *)sectionController didHighlightItemAtIndex:(NSInteger)index viewModel:(id)viewModel;
Swift
optional func sectionController(_ sectionController: IGListBindingSectionController, didHighlightItemAt index: Int, viewModel: Any)
-
Undocumented
Declaration
Objective-C
- (void)sectionController:(IGListBindingSectionController *)sectionController didUnhighlightItemAtIndex:(NSInteger)index viewModel:(id)viewModel;
Swift
optional func sectionController(_ sectionController: IGListBindingSectionController, didUnhighlightItemAt index: Int, viewModel: Any)