IGListKit/Source/Common/Internal/IGListIndexSetResultInternal.h
Ryan Nystrom dfc6b687a8 Add changeCount API to index set and path results
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
2017-07-12 12:54:28 -07:00

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