IGListAdapterUpdateListener
Objective-C
@protocol IGListAdapterUpdateListener <NSObject>
Swift
protocol ListAdapterUpdateListener : NSObjectProtocol
Conform to this protocol to receive events about IGListAdapter updates.
-
Notifies a listener that the listAdapter was updated.
Note
This event is sent before the completion block in
-[IGListAdapter performUpdatesAnimated:completion:]and-[IGListAdapter reloadDataWithCompletion:]is executed. This event is also delivered when anIGListSectionControllerupdates via-[IGListCollectionContext performBatchAnimated:updates:completion:].Declaration
Objective-C
- (void)listAdapter:(nonnull IGListAdapter *)listAdapter didFinishUpdate:(IGListAdapterUpdateType)update animated:(BOOL)animated;Swift
func listAdapter(_ listAdapter: IGListAdapter, didFinish update: IGListAdapterUpdateType, animated: Bool)Parameters
listAdapterThe
IGListAdapterthat updated.updateThe type of update executed.
animatedA flag indicating if the update was animated. Always
NOforIGListAdapterUpdateTypeReloadData.
View on GitHub