mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-10 14:35:42 +00:00
* [section-infos-api] Add ASSectionInfo.h * Create Processes.md * Update ASSectionInfo.h * Update ASSectionInfo.h * Add more changes/info * More stuff * More updates * Make it a protocol * Update things * Oops * Update Misc.m * Update Overview.md * Update ASCollectionSection.h * Update ASCollectionSection.h
28 lines
1.0 KiB
Objective-C
28 lines
1.0 KiB
Objective-C
/**
|
|
* Information about a section of items in a collection.
|
|
*
|
|
* This class is private to ASDK.
|
|
* Data sources may override -collectionView:infoForSectionAtIndex: to provide the
|
|
* "userInfo" object when the section is initially inserted. ASCollectionView
|
|
* vends the user info object publicly via "infoForSectionAtIndex:".
|
|
*/
|
|
@interface ASCollectionSection : NSObject
|
|
|
|
// Autoincrementing value, set by collection view immediately after creation.
|
|
@property NSInteger sectionID;
|
|
|
|
@property NSMutableDictionary<NSString *, NSMutableArray<ASCellNode *> *> *editingNodesByKind;
|
|
@property NSMutableDictionary<NSString *, NSMutableArray<ASCellNode *> *> *completedNodesByKind;
|
|
|
|
@property (strong, nullable) id<ASSectionUserInfo> userInfo;
|
|
|
|
@end
|
|
|
|
@protocol ASSectionUserInfo
|
|
// This will be set once, immediately after the object is returned by the data source.
|
|
@property (weak, nonatomic, nullable) ASCollectionView *collectionView;
|
|
|
|
// Could be optional, but need to cache -respondsToSelector: dynamically.
|
|
@property (nullable, readonly, copy) NSString *sectionName;
|
|
@end
|