Add tuning params method forwards to ASCollectionNode

This commit is contained in:
Levi McCallum
2015-12-21 09:01:19 -06:00
parent 2bb7fc43f5
commit ad4db73b95
4 changed files with 30 additions and 7 deletions

View File

@@ -18,6 +18,26 @@
@property (nonatomic, readonly) ASCollectionView *view;
/**
* Tuning parameters for a range type.
*
* @param rangeType The range type to get the tuning parameters for.
*
* @returns A tuning parameter value for the given range type.
*
* Defaults to the render range having one sceenful both leading and trailing and the preload range having two
* screenfuls in both directions.
*/
- (ASRangeTuningParameters)tuningParametersForRangeType:(ASLayoutRangeType)rangeType;
/**
* Set the tuning parameters for a range type.
*
* @param tuningParameters The tuning parameters to store for a range type.
* @param rangeType The range type to set the tuning parameters for.
*/
- (void)setTuningParameters:(ASRangeTuningParameters)tuningParameters forRangeType:(ASLayoutRangeType)rangeType;
/**
* Reload everything from scratch, destroying the working range and all cached nodes.
*