[ASRangeControllerUpdateRangeProtocol] BREAKING Remove +setRangeModeForMemoryWarnings:, replace with global method

This commit is contained in:
Adlai Holler
2016-07-14 11:26:18 -07:00
parent 65e194c7c6
commit bd0254f306
3 changed files with 19 additions and 17 deletions

View File

@@ -9,6 +9,7 @@
//
#import "ASContextTransitioning.h"
#import "ASLayoutRangeType.h"
NS_ASSUME_NONNULL_BEGIN
@@ -116,6 +117,15 @@ ASDISPLAYNODE_EXTERN_C_END
*/
- (void)hierarchyDisplayDidFinish;
/**
* Only ASLayoutRangeModeVisibleOnly or ASLayoutRangeModeLowMemory are recommended. Default is ASLayoutRangeModeVisibleOnly,
* because this is the only way to ensure an application will not have blank / flashing views as the user navigates back after
* a memory warning. Apps that wish to use the more effective / aggressive ASLayoutRangeModeLowMemory may need to take steps
* to mitigate this behavior, including: restoring a larger range mode to the next controller before the user navigates there,
* enabling .neverShowPlaceholders on ASCellNodes so that the navigation operation is blocked on redisplay completing, etc.
*/
+ (void)setRangeModeForMemoryWarnings:(ASLayoutRangeMode)rangeMode;
@end
NS_ASSUME_NONNULL_END