Remove "working range" from flow layout

This is a step towards a preloading range. We first want to migrate towards arbitrary ranges instead of being coupled to the notion of a single "working range".
This commit is contained in:
Ryan Nystrom
2015-01-30 11:57:57 -08:00
parent 9477114c86
commit 43be3294bc
3 changed files with 13 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ typedef NS_ENUM(NSInteger, ASScrollDirection) {
@protocol ASLayoutController <NSObject>
/**
* Tuning parameters for the working range.
* Tuning parameters for the range.
*
* Defaults to a trailing buffer of one screenful and a leading buffer of two screenfuls.
*/
@@ -35,9 +35,8 @@ typedef NS_ENUM(NSInteger, ASScrollDirection) {
- (void)setVisibleNodeIndexPaths:(NSArray *)indexPaths;
- (BOOL)shouldUpdateWorkingRangesForVisibleIndexPath:(NSArray *)indexPath
viewportSize:(CGSize)viewportSize;
- (BOOL)shouldUpdateForVisibleIndexPath:(NSArray *)indexPath viewportSize:(CGSize)viewportSize;
- (NSSet *)indexPathsForScrolling:(enum ASScrollDirection)scrollDirection viewportSize:(CGSize)viewportSize;
- (NSSet *)workingRangeIndexPathsForScrolling:(enum ASScrollDirection)scrollDirection
viewportSize:(CGSize)viewportSize;
@end