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

@@ -73,6 +73,12 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, assign, readwrite) BOOL shouldCacheImage;
/**
* 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;
/**
* The image quality of the current image. This is a number between 0 and 1 and can be used to track
* progressive progress. Calculated by dividing number of bytes / expected number of total bytes.