-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNNDiffReloader.h
More file actions
35 lines (25 loc) · 1.01 KB
/
Copy pathNNDiffReloader.h
File metadata and controls
35 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// NNDiffReloader.h
// ArrayDiff
//
// Created by Nick Tymchenko on 27/04/14.
// Copyright (c) 2014 Nick Tymchenko. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NNSectionsDiff.h"
#import "NNDiffReloadOptions.h"
@interface NNDiffReloader : NSObject
- (void)reloadWithSectionsDiff:(NNSectionsDiff *)diff
options:(NNDiffReloadOptions *)options
completion:(void (^)())completion;
@end
@interface NNDiffReloader (Abstract)
- (void)performUpdates:(void (^)())updates withOptions:(NNDiffReloadOptions *)options completion:(void (^)())completion;
- (void)insertSections:(NSIndexSet *)sections;
- (void)deleteSections:(NSIndexSet *)sections;
- (void)insertItemsAtIndexPaths:(NSArray *)indexPaths;
- (void)deleteItemsAtIndexPaths:(NSArray *)indexPaths;
- (void)reloadItemsAtIndexPaths:(NSArray *)indexPaths;
- (void)updateItemsAtIndexPaths:(NSArray *)indexPaths;
- (void)moveItemAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath;
@end