mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-20 15:58:28 +00:00
Summary: Adding this API as a standard in preparation for a reloadData fallback test, avoiding massive batch updates stalling the main thread. Depends on D5392536 Reviewed By: jeremycohen Differential Revision: D5392713 fbshipit-source-id: 9447bad4b76194ccf26d74c5111624b2fba02efa
29 lines
941 B
Objective-C
29 lines
941 B
Objective-C
/**
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <IGListKit/IGListIndexSetResult.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface IGListIndexSetResult()
|
|
|
|
- (instancetype)initWithInserts:(NSIndexSet *)inserts
|
|
deletes:(NSIndexSet *)deletes
|
|
updates:(NSIndexSet *)updates
|
|
moves:(NSArray<IGListMoveIndex *> *)moves
|
|
oldIndexMap:(NSMapTable<id<NSObject>, NSNumber *> *)oldIndexMap
|
|
newIndexMap:(NSMapTable<id<NSObject>, NSNumber *> *)newIndexMap;
|
|
|
|
@property (nonatomic, assign, readonly) NSInteger changeCount;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|