mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-06-13 01:18:31 +08:00
31 lines
803 B
Objective-C
31 lines
803 B
Objective-C
//
|
|
// PINProgressiveImage.h
|
|
// Pods
|
|
//
|
|
// Created by Garrett Moon on 2/9/15.
|
|
//
|
|
//
|
|
|
|
#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
|
|
#import <UIKit/UIKit.h>
|
|
#else
|
|
#import <Cocoa/Cocoa.h>
|
|
#endif
|
|
|
|
#import "PINRemoteImageMacros.h"
|
|
|
|
@interface PINProgressiveImage : NSObject
|
|
|
|
@property (atomic, copy, nonnull) NSArray *progressThresholds;
|
|
@property (atomic, assign) CFTimeInterval estimatedRemainingTimeThreshold;
|
|
@property (atomic, assign) CFTimeInterval startTime;
|
|
|
|
- (void)updateProgressiveImageWithData:(nonnull NSData *)data expectedNumberOfBytes:(int64_t)expectedNumberOfBytes;
|
|
|
|
/// Returns the latest image based on thresholds, returns nil if no new image is generated
|
|
- (nullable PINImage *)currentImageBlurred:(BOOL)blurred maxProgressiveRenderSize:(CGSize)maxBlurSize;
|
|
|
|
- (nullable NSData *)data;
|
|
|
|
@end
|