mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-07 05:02:56 +00:00
- Objects conform to ASSectionContext protocol can be provided via ASCollectionDataSource and later retrieved from the collection view. They are guaranteed to be in sync with sections of the collection view. They can be used to store additional data associated with each section, to be used in collection view layout and the like. - ASSection is an internal object that is the foundation for coming debugging tools. - Unit tests included.
26 lines
816 B
Objective-C
26 lines
816 B
Objective-C
//
|
|
// ASSection.h
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Huy Nguyen on 28/08/16.
|
|
//
|
|
// Copyright (c) 2014-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>
|
|
|
|
@protocol ASSectionContext;
|
|
|
|
@interface ASSection : NSObject
|
|
|
|
@property (nonatomic, assign, readonly) NSInteger sectionID;
|
|
@property (nonatomic, strong, nullable, readonly) id<ASSectionContext> context;
|
|
|
|
- (nullable instancetype)init __unavailable;
|
|
- (nullable instancetype)initWithSectionID:(NSInteger)sectionID context:(nullable id<ASSectionContext>)context NS_DESIGNATED_INITIALIZER;
|
|
|
|
@end
|