mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Functioning Preload range
Refactor how we do ranges so they can be arbitrarily managed. Introduce the concept of a preload range.
This commit is contained in:
@@ -32,22 +32,22 @@
|
||||
/**
|
||||
* Tuning parameters for a range.
|
||||
*
|
||||
* @param range The range to get the tuning parameters for.
|
||||
* @param rangeType The range to get the tuning parameters for.
|
||||
*
|
||||
* @returns A tuning parameter value for the given range.
|
||||
*
|
||||
* Defaults to the render range having one sceenful both leading and trailing and the preload range having two
|
||||
* screenfuls in both directions.
|
||||
*/
|
||||
- (ASRangeTuningParameters)tuningParametersForRange:(ASLayoutRange)range;
|
||||
- (ASRangeTuningParameters)tuningParametersForRangeType:(ASLayoutRangeType)rangeType;
|
||||
|
||||
/**
|
||||
* Set the tuning parameters for a range.
|
||||
*
|
||||
* @param tuningParameters The tuning parameters to store for a range.
|
||||
* @param range The range to set the tuning parameters for.
|
||||
* @param rangeType The range to set the tuning parameters for.
|
||||
*/
|
||||
- (void)setTuningParameters:(ASRangeTuningParameters)tuningParameters forRange:(ASLayoutRange)range;
|
||||
- (void)setTuningParameters:(ASRangeTuningParameters)tuningParameters forRangeType:(ASLayoutRangeType)rangeType;
|
||||
|
||||
/**
|
||||
* initializer.
|
||||
|
||||
Reference in New Issue
Block a user