mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-21 18:32:19 +08: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:
@@ -312,7 +312,7 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
|
||||
- (void)recursivelySetDisplaySuspended:(BOOL)flag;
|
||||
|
||||
/**
|
||||
* @abstract Calls -reclaimMemory on the receiver and its subnode hierarchy.
|
||||
* @abstract Calls -clearRendering on the receiver and its subnode hierarchy.
|
||||
*
|
||||
* @discussion Clears backing stores and other memory-intensive intermediates.
|
||||
* If the node is removed from a visible hierarchy and then re-added, it will automatically trigger a new asynchronous display,
|
||||
@@ -322,7 +322,18 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
|
||||
* @see displaySuspended and setNeedsDisplay
|
||||
*/
|
||||
|
||||
- (void)recursivelyReclaimMemory;
|
||||
- (void)recursivelyClearRendering;
|
||||
|
||||
/**
|
||||
* @abstract Calls -clearRemoteData on the receiver and its subnode hierarchy.
|
||||
*
|
||||
* @discussion Clears any memory-intensive fetched content.
|
||||
* This method is used to notify the node that it should purge any content that is both expensive to fetch and to
|
||||
* retain in memory.
|
||||
*
|
||||
* @see fetchRemoteData
|
||||
*/
|
||||
- (void)recursivelyClearRemoteData;
|
||||
|
||||
/**
|
||||
* @abstract Toggle displaying a placeholder over the node that covers content until the node and all subnodes are
|
||||
@@ -539,5 +550,9 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
|
||||
@end
|
||||
|
||||
@interface ASDisplayNode (Deprecated)
|
||||
|
||||
- (void)reclaimMemory ASDISPLAYNODE_DEPRECATED;
|
||||
- (void)recursivelyReclaimMemory ASDISPLAYNODE_DEPRECATED;
|
||||
@property (nonatomic, assign) BOOL placeholderFadesOut ASDISPLAYNODE_DEPRECATED;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user