Swiftgram/AsyncDisplayKit/Details/ASFlowLayoutController.h
Ryan Nystrom 9c877c51af Support for dynamic ranges
This refactors how we do ranges and implements tuning parameters for a "Render" range and a "Preload" range
2015-02-26 15:40:21 -08:00

28 lines
823 B
Objective-C

// Copyright 2004-present Facebook. All Rights Reserved.
#import <AsyncDisplayKit/ASLayoutController.h>
#import <AsyncDisplayKit/ASBaseDefines.h>
typedef NS_ENUM(NSUInteger, ASFlowLayoutDirection) {
ASFlowLayoutDirectionVertical,
ASFlowLayoutDirectionHorizontal,
};
/**
* The controller for flow layout.
*/
@interface ASFlowLayoutController : NSObject <ASLayoutController>
- (void)setTuningParameters:(ASRangeTuningParameters)tuningParameters forRange:(ASLayoutRange)range;
- (ASRangeTuningParameters)tuningParametersForRange:(ASLayoutRange)range;
@property (nonatomic, readonly, assign) ASFlowLayoutDirection layoutDirection;
- (instancetype)initWithScrollOption:(ASFlowLayoutDirection)layoutDirection;
@property (nonatomic, assign) ASRangeTuningParameters tuningParameters ASDISPLAYNODE_DEPRECATED;
@end