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 anIGListSectionController
updates 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
listAdapter
The
IGListAdapter
that updated.update
The type of update executed.
animated
A flag indicating if the update was animated. Always
NO
forIGListAdapterUpdateTypeReloadData
.