Protocols
The following protocols are available globally.
-
Implement this protocol to provide data to an
See moreIGListAdapter.Declaration
Objective-C
@protocol IGListAdapterDataSource <NSObject>Swift
protocol IGListAdapterDataSource
-
Conform to
See moreIGListAdapterDelegateto receive display events for objects in a list.Declaration
Objective-C
@protocol IGListAdapterDelegate <NSObject>Swift
protocol IGListAdapterDelegate : NSObjectProtocol
-
A protocol that receives events about
See moreIGListAdapterUpdateroperations.Declaration
Objective-C
@protocol IGListAdapterUpdaterDelegate <NSObject>Swift
protocol IGListAdapterUpdaterDelegate
-
The collection context provides limited access to the collection-related information that section controllers need for operations like sizing, dequeing cells, insterting, deleting, reloading, etc.
See moreDeclaration
Objective-C
@protocol IGListCollectionContext <NSObject>Swift
protocol IGListCollectionContext
-
The
See moreIGListDiffableprotocol provides methods needed to compare the identity and equality of two objects.Declaration
Objective-C
@protocol IGListDiffableSwift
protocol IGListDiffable
-
Implement this protocol to receive display events for an section controller when it is on screen.
See moreDeclaration
Objective-C
@protocol IGListDisplayDelegate <NSObject>Swift
protocol IGListDisplayDelegate
-
Implement this protocol to receive display events for an section controller when it is on screen.
See moreDeclaration
Objective-C
@protocol IGListScrollDelegate <NSObject>Swift
protocol IGListScrollDelegate
-
Implement this protocol in order to be used within the
IGListKitdata infrastructure and be registered for use in anIGListAdapter. AnIGListSectionTypeconforming object represents a single instance of an object in a collection of objects.The infrastructure uses each
IGListSectionTypeconforming object as aview model
to populate and control cells as part of a section in aUICollectionView.IGListSectionTypeobjects should be architected without knowledge ofglobal
state of the list in which they are contained.Index paths are used as a convenience for communicating the section index to each section object without allowing each section to mutate its own position within a list. The row of an index path can be directly mapped to a cell within an
See moreIGListSectionTypeconforming object.Declaration
Objective-C
@protocol IGListSectionType <NSObject>Swift
protocol IGListSectionType
-
A delegate that can receive selection events on an
See moreIGListSingleSectionController.Declaration
Objective-C
@protocol IGListSingleSectionControllerDelegate <NSObject>Swift
protocol IGListSingleSectionControllerDelegate
-
Conform to this protocol to provide information about a list’s supplementary views. This data is used in
See moreIGListAdapterwhich then configures and maintains aUICollectionView. The supplementary API reflects that inUICollectionView,UICollectionViewLayout, andUICollectionViewDataSource.Declaration
Objective-C
@protocol IGListSupplementaryViewSource <NSObject>Swift
protocol IGListSupplementaryViewSource
-
Implement this protocol in order to handle both section and row based update events. Implementation should forward or coalesce these events to a backing store or collection.
See moreDeclaration
Objective-C
@protocol IGListUpdatingDelegateSwift
protocol IGListUpdatingDelegate
-
Implement this protocol to receive working range events for a list.
The working range is a range near the viewport in which you can begin preparing content for display. For example, you could begin decoding images, or warming text caches.
See moreDeclaration
Objective-C
@protocol IGListWorkingRangeDelegate <NSObject>Swift
protocol IGListWorkingRangeDelegate
View on GitHub
Protocols Reference