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 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
.