Add support for disabling progressive image rendering

Differential Revision: https://phabricator.pinadmin.com/D89742
This commit is contained in:
Garrett Moon
2016-05-09 15:00:44 -07:00
parent 62a853b3e9
commit c0eb6cac09
4 changed files with 92 additions and 26 deletions

View File

@@ -117,6 +117,12 @@ typedef NS_ENUM(NSUInteger, ASMultiplexImageNodeErrorCode) {
*/
@property (nullable, nonatomic, readonly) ASImageIdentifier displayedImageIdentifier;
/**
* @abstract If the downloader implements progressive image rendering and this value is YES progressive renders of the
* image will be displayed as the image downloads. Defaults to YES.
*/
@property (nonatomic, assign, readwrite) BOOL shouldRenderProgressImages;
#if TARGET_OS_IOS
/**
* @abstract The image manager that this image node should use when requesting images from the Photos framework. If this is `nil` (the default), then `PHImageManager.defaultManager` is used.