IGListAdapterUpdateListener
@protocol IGListAdapterUpdateListener <NSObject>
/**
Notifies a listener that the listAdapter was updated.
@param listAdapter The `IGListAdapter` that updated.
@param update The type of update executed.
@param animated A flag indicating if the update was animated. Always `NO` for `IGListAdapterUpdateTypeReloadData`.
@note This event is sent before the completion block in `-[IGListAdapter performUpdatesAnimated:completion:]` and
`-[IGListAdapter reloadDataWithCompletion:]` is executed. This event is also delivered when an
`IGListSectionController` updates via `-[IGListCollectionContext performBatchAnimated:updates:completion:]`.
*/
- (void)listAdapter:(IGListAdapter *)listAdapter
didFinishUpdate:(IGListAdapterUpdateType)update
animated:(BOOL)animated;
@end
Undocumented
-
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.