mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-03-28 22:45:33 +08:00
* Have PINProgressiveImage pass back the quality of the current progressive image * fix * Check for nil for imageProgress pointer * Rename some variables * Rename a bunch of things * Update comment
25 lines
903 B
Objective-C
25 lines
903 B
Objective-C
//
|
|
// PINRemoteImageDownloadTask.h
|
|
// Pods
|
|
//
|
|
// Created by Garrett Moon on 3/9/15.
|
|
//
|
|
//
|
|
|
|
#import "PINRemoteImageTask.h"
|
|
#import "PINProgressiveImage.h"
|
|
#import "PINDataTaskOperation.h"
|
|
|
|
@interface PINRemoteImageDownloadTask : PINRemoteImageTask
|
|
|
|
@property (nonatomic, strong, nullable) PINDataTaskOperation *urlSessionTaskOperation;
|
|
@property (nonatomic, assign) CFTimeInterval sessionTaskStartTime;
|
|
@property (nonatomic, assign) CFTimeInterval sessionTaskEndTime;
|
|
@property (nonatomic, assign) BOOL hasProgressBlocks;
|
|
@property (nonatomic, strong, nullable) PINProgressiveImage *progressImage;
|
|
|
|
- (void)callProgressDownloadWithQueue:(nonnull dispatch_queue_t)queue completedBytes:(int64_t)completedBytes totalBytes:(int64_t)totalBytes;
|
|
- (void)callProgressImageWithQueue:(nonnull dispatch_queue_t)queue withImage:(nonnull PINImage *)image renderedImageQuality:(CGFloat)renderedImageQuality;
|
|
|
|
@end
|