mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Shuffle & Cleanup Stuff (#3080)
This commit is contained in:
50
Source/Private/ASMutableElementMap.h
Normal file
50
Source/Private/ASMutableElementMap.h
Normal file
@@ -0,0 +1,50 @@
|
||||
//
|
||||
// ASMutableElementMap.h
|
||||
// AsyncDisplayKit
|
||||
//
|
||||
// Created by Adlai Holler on 2/23/17.
|
||||
// Copyright © 2017 Facebook. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AsyncDisplayKit/ASBaseDefines.h>
|
||||
#import <AsyncDisplayKit/ASElementMap.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class ASSection, ASCollectionElement;
|
||||
|
||||
/**
|
||||
* This mutable version will be removed in the future. It's only here now to keep the diff small
|
||||
* as we port data controller to use ASElementMap.
|
||||
*/
|
||||
AS_SUBCLASSING_RESTRICTED
|
||||
@interface ASMutableElementMap : NSObject <NSCopying>
|
||||
|
||||
- (instancetype)init __unavailable;
|
||||
|
||||
- (instancetype)initWithSections:(NSArray<ASSection *> *)sections items:(ASCollectionElementTwoDimensionalArray *)items supplementaryElements:(ASSupplementaryElementDictionary *)supplementaryElements;
|
||||
|
||||
- (void)insertSection:(ASSection *)section atIndex:(NSInteger)index;
|
||||
|
||||
- (void)removeAllSectionContexts;
|
||||
|
||||
/// Only modifies the array of ASSection * objects
|
||||
- (void)removeSectionContextsAtIndexes:(NSIndexSet *)indexes;
|
||||
|
||||
- (void)removeAllElements;
|
||||
|
||||
- (void)removeItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths;
|
||||
|
||||
- (void)removeElementsOfKind:(NSString *)kind inSections:(NSIndexSet *)sections;
|
||||
|
||||
- (void)insertEmptySectionsOfItemsAtIndexes:(NSIndexSet *)sections;
|
||||
|
||||
- (void)insertElement:(ASCollectionElement *)element atIndexPath:(NSIndexPath *)indexPath;
|
||||
|
||||
@end
|
||||
|
||||
@interface ASElementMap (MutableCopying) <NSMutableCopying>
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user