2016-09-07 22:37:59 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< title > Protocols Reference< / title >
< link rel = "stylesheet" type = "text/css" href = "css/jazzy.css" / >
< link rel = "stylesheet" type = "text/css" href = "css/highlight.css" / >
< meta charset = 'utf-8' >
< script src = "js/jquery.min.js" defer > < / script >
< script src = "js/jazzy.js" defer > < / script >
< / head >
< body >
< a title = "Protocols Reference" > < / a >
< header >
< div class = "content-wrapper" >
2016-11-21 23:36:26 +00:00
< p > < a href = "index.html" > IGListKit Docs< / a > (100% documented)< / p >
2016-09-07 22:37:59 +00:00
< p class = "header-right" > < a href = "https://github.com/Instagram/IGListKit" > < img src = "img/gh.png" / > View on GitHub< / a > < / p >
< / div >
< / header >
< div class = "content-wrapper" >
< p id = "breadcrumbs" >
< a href = "index.html" > IGListKit Reference< / a >
< img id = "carat" src = "img/carat.png" / >
Protocols Reference
< / p >
< / div >
< div class = "content-wrapper" >
< nav class = "sidebar" >
< ul class = "nav-groups" >
2016-11-23 20:42:52 +00:00
< li class = "nav-group-name" >
< a href = "Guides.html" > Guides< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "getting-started.html" > Getting Started< / a >
< / li >
2016-11-28 00:53:20 +00:00
< li class = "nav-group-task" >
< a href = "iglistdiffable-and-equality.html" > IGListDiffable and Equality< / a >
< / li >
2016-12-27 20:37:57 +00:00
< li class = "nav-group-task" >
< a href = "installation.html" > Installation< / a >
< / li >
2016-11-23 20:42:52 +00:00
< li class = "nav-group-task" >
< a href = "migration.html" > Migration< / a >
< / li >
< / ul >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-name" >
< a href = "Categories.html" > Categories< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
2016-11-22 07:18:30 +00:00
< a href = "Categories.html#/c:objc(cy)NSNumber@IGListDiffable" > NSNumber(IGListDiffable)< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Categories.html#/c:objc(cy)NSString@IGListDiffable" > NSString(IGListDiffable)< / a >
2016-09-07 22:37:59 +00:00
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "Classes.html" > Classes< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "Classes/IGListAdapter.html" > IGListAdapter< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes/IGListAdapterUpdater.html" > IGListAdapterUpdater< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes/IGListBatchUpdateData.html" > IGListBatchUpdateData< / a >
< / li >
< li class = "nav-group-task" >
2016-11-21 23:36:26 +00:00
< a href = "Classes.html#/c:objc(cs)IGListCollectionView" > IGListCollectionView< / a >
2016-09-07 22:37:59 +00:00
< / li >
2016-11-22 07:18:30 +00:00
< li class = "nav-group-task" >
< a href = "Classes/IGListGridCollectionViewLayout.html" > IGListGridCollectionViewLayout< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "Classes/IGListIndexPathResult.html" > IGListIndexPathResult< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes/IGListIndexSetResult.html" > IGListIndexSetResult< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes/IGListMoveIndex.html" > IGListMoveIndex< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes/IGListMoveIndexPath.html" > IGListMoveIndexPath< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes.html#/c:objc(cs)IGListReloadDataUpdater" > IGListReloadDataUpdater< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes/IGListSectionController.html" > IGListSectionController< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes/IGListSingleSectionController.html" > IGListSingleSectionController< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Classes/IGListStackedSectionController.html" > IGListStackedSectionController< / a >
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "Constants.html" > Constants< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "Constants.html#/c:@IGListKitVersionNumber" > IGListKitVersionNumber< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Constants.html#/c:@IGListKitVersionString" > IGListKitVersionString< / a >
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "Enums.html" > Enums< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "Enums/IGListDiffOption.html" > IGListDiffOption< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Enums/IGListExperiment.html" > IGListExperiment< / a >
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "Protocols.html" > Protocols< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "Protocols/IGListAdapterDataSource.html" > IGListAdapterDataSource< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListAdapterDelegate.html" > IGListAdapterDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListAdapterUpdaterDelegate.html" > IGListAdapterUpdaterDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListCollectionContext.html" > IGListCollectionContext< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListDiffable.html" > IGListDiffable< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListDisplayDelegate.html" > IGListDisplayDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListScrollDelegate.html" > IGListScrollDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListSectionType.html" > IGListSectionType< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListSingleSectionControllerDelegate.html" > IGListSingleSectionControllerDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListSupplementaryViewSource.html" > IGListSupplementaryViewSource< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListUpdatingDelegate.html" > IGListUpdatingDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Protocols/IGListWorkingRangeDelegate.html" > IGListWorkingRangeDelegate< / a >
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "Type Definitions.html" > Type Definitions< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "Type Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListItemUpdateBlock" > IGListItemUpdateBlock< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Type Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListObjectTransitionBlock" > IGListObjectTransitionBlock< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Type Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListReloadUpdateBlock" > IGListReloadUpdateBlock< / a >
< / li >
2016-11-21 23:36:26 +00:00
< li class = "nav-group-task" >
< a href = "Type Definitions.html#/c:IGListSingleSectionController.h@T@IGListSingleSectionCellConfigureBlock" > IGListSingleSectionCellConfigureBlock< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Type Definitions.html#/c:IGListSingleSectionController.h@T@IGListSingleSectionCellSizeBlock" > IGListSingleSectionCellSizeBlock< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "Type Definitions.html#/c:IGListAdapter.h@T@IGListUpdaterCompletion" > IGListUpdaterCompletion< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Type Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListUpdatingCompletion" > IGListUpdatingCompletion< / a >
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "Functions.html" > Functions< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "Functions.html#/c:@F@IGListDiff" > IGListDiff< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Functions.html#/c:@F@IGListDiffExperiment" > IGListDiffExperiment< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Functions.html#/c:@F@IGListDiffPaths" > IGListDiffPaths< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Functions.html#/c:@F@IGListDiffPathsExperiment" > IGListDiffPathsExperiment< / a >
< / li >
< li class = "nav-group-task" >
< a href = "Functions.html#/c:IGListExperiments.h@F@IGListExperimentEnabled" > IGListExperimentEnabled< / a >
< / li >
< / ul >
< / li >
< / ul >
< / nav >
< article class = "main-content" >
< section >
< section class = "section" >
< h1 > Protocols< / h1 >
< p > The following protocols are available globally.< / p >
< / section >
< section class = "section task-group-section" >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListAdapterDataSource" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListAdapterDataSource" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListAdapterDataSource" > IGListAdapterDataSource< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2016-11-21 23:36:26 +00:00
< p > Implement this protocol to provide data to an < code > < a href = "Classes/IGListAdapter.html" > IGListAdapter< / a > < / code > .< / p >
2016-09-07 22:37:59 +00:00
< a href = "Protocols/IGListAdapterDataSource.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListAdapterDataSource< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListAdapterDataSource< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListAdapterDelegate" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListAdapterDelegate" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListAdapterDelegate" > IGListAdapterDelegate< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2016-11-21 23:36:26 +00:00
< p > Conform to < code > IGListAdapterDelegate< / code > to receive display events for objects in a list.< / p >
2016-09-07 22:37:59 +00:00
< a href = "Protocols/IGListAdapterDelegate.html" class = "slightly-smaller" > See more< / a >
< / div >
2016-11-21 23:36:26 +00:00
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListAdapterDelegate< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListAdapterDelegate< / span > < span class = "p" > :< / span > < span class = "kt" > NSObjectProtocol< / span > < / code > < / pre >
< / div >
< / div >
2016-09-07 22:37:59 +00:00
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListAdapterUpdaterDelegate" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListAdapterUpdaterDelegate" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListAdapterUpdaterDelegate" > IGListAdapterUpdaterDelegate< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2016-11-21 23:36:26 +00:00
< p > A protocol that receives events about < code > < a href = "Classes/IGListAdapterUpdater.html" > IGListAdapterUpdater< / a > < / code > operations.< / p >
2016-09-07 22:37:59 +00:00
< a href = "Protocols/IGListAdapterUpdaterDelegate.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListAdapterUpdaterDelegate< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListAdapterUpdaterDelegate< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListCollectionContext" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListCollectionContext" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListCollectionContext" > IGListCollectionContext< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2016-11-21 23:36:26 +00:00
< p > 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.< / p >
2016-09-07 22:37:59 +00:00
< a href = "Protocols/IGListCollectionContext.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListCollectionContext< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListCollectionContext< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListDiffable" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListDiffable" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListDiffable" > IGListDiffable< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2016-11-21 23:36:26 +00:00
< p > The < code > IGListDiffable< / code > protocol provides methods needed to compare the identity and equality of two objects.< / p >
2016-09-07 22:37:59 +00:00
< a href = "Protocols/IGListDiffable.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListDiffable< / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListDiffable< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListDisplayDelegate" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListDisplayDelegate" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListDisplayDelegate" > IGListDisplayDelegate< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
< p > Implement this protocol to receive display events for an section controller when it is on screen.< / p >
< a href = "Protocols/IGListDisplayDelegate.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListDisplayDelegate< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListDisplayDelegate< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListScrollDelegate" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListScrollDelegate" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListScrollDelegate" > IGListScrollDelegate< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
< p > Implement this protocol to receive display events for an section controller when it is on screen.< / p >
< a href = "Protocols/IGListScrollDelegate.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListScrollDelegate< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListScrollDelegate< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListSectionType" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListSectionType" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListSectionType" > IGListSectionType< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2016-11-21 23:36:26 +00:00
< p > Implement this protocol in order to be used within the < code > IGListKit< / code > data infrastructure and be registered for use in an
< code > < a href = "Classes/IGListAdapter.html" > IGListAdapter< / a > < / code > . An < code > IGListSectionType< / code > conforming object represents a single instance of an object in a collection of
2016-09-07 22:37:59 +00:00
objects.< / p >
2016-11-21 23:36:26 +00:00
< p > The infrastructure uses each < code > IGListSectionType< / code > conforming object as a < q > view model< / q > to populate and control cells as
part of a section in a < code > UICollectionView< / code > . < code > IGListSectionType< / code > objects should be architected without knowledge of
< q > global< / q > state of the list in which they are contained.< / p >
2016-09-07 22:37:59 +00:00
< p > Index paths are used as a convenience for communicating the section index to each section object without allowing each
2016-11-21 23:36:26 +00:00
section to mutate its own position within a list. The row of an index path can be directly mapped to a cell within
an < code > IGListSectionType< / code > conforming object.< / p >
2016-09-07 22:37:59 +00:00
< a href = "Protocols/IGListSectionType.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListSectionType< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListSectionType< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListSingleSectionControllerDelegate" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListSingleSectionControllerDelegate" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListSingleSectionControllerDelegate" > IGListSingleSectionControllerDelegate< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2016-11-21 23:36:26 +00:00
< p > A delegate that can receive selection events on an < code > < a href = "Classes/IGListSingleSectionController.html" > IGListSingleSectionController< / a > < / code > .< / p >
2016-09-07 22:37:59 +00:00
< a href = "Protocols/IGListSingleSectionControllerDelegate.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListSingleSectionControllerDelegate< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListSingleSectionControllerDelegate< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListSupplementaryViewSource" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListSupplementaryViewSource" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListSupplementaryViewSource" > IGListSupplementaryViewSource< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2016-11-21 23:36:26 +00:00
< p > Conform to this protocol to provide information about a list’ s supplementary views. This data is used in
< code > < a href = "Classes/IGListAdapter.html" > IGListAdapter< / a > < / code > which then configures and maintains a < code > UICollectionView< / code > . The supplementary API reflects that in
< code > UICollectionView< / code > , < code > UICollectionViewLayout< / code > , and < code > UICollectionViewDataSource< / code > .< / p >
2016-09-07 22:37:59 +00:00
< a href = "Protocols/IGListSupplementaryViewSource.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListSupplementaryViewSource< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListSupplementaryViewSource< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListUpdatingDelegate" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListUpdatingDelegate" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListUpdatingDelegate" > IGListUpdatingDelegate< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
< p > 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.< / p >
< a href = "Protocols/IGListUpdatingDelegate.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListUpdatingDelegate< / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListUpdatingDelegate< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
< a name = "/c:objc(pl)IGListWorkingRangeDelegate" > < / a >
< a name = "//apple_ref/objc/Protocol/IGListWorkingRangeDelegate" class = "dashAnchor" > < / a >
< a class = "token" href = "#/c:objc(pl)IGListWorkingRangeDelegate" > IGListWorkingRangeDelegate< / a >
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
< p > Implement this protocol to receive working range events for a list.< / p >
< p > The working range is a range < em > near< / em > the viewport in which you can begin preparing content for display. For example,
you could begin decoding images, or warming text caches.< / p >
< a href = "Protocols/IGListWorkingRangeDelegate.html" class = "slightly-smaller" > See more< / a >
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
< pre class = "highlight" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListWorkingRangeDelegate< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
< pre class = "highlight" > < code > < span class = "kd" > protocol< / span > < span class = "kt" > IGListWorkingRangeDelegate< / span > < / code > < / pre >
< / div >
< / div >
< / section >
< / div >
< / li >
< / ul >
< / div >
< / section >
< / section >
< section id = "footer" >
2017-01-04 18:09:57 +00:00
< p > © 2017 < a class = "link" href = "https://twitter.com/fbOpenSource" target = "_blank" rel = "external" > Instagram< / a > . All rights reserved. (Last updated: 2017-01-04)< / p >
2016-12-08 18:03:33 +00:00
< p > Generated by < a class = "link" href = "https://github.com/realm/jazzy" target = "_blank" rel = "external" > jazzy ♪♫ v0.7.3< / a > , a < a class = "link" href = "http://realm.io" target = "_blank" rel = "external" > Realm< / a > project.< / p >
2016-09-07 22:37:59 +00:00
< / section >
< / article >
< / div >
< / body >
< / div >
< / html >