|
|
@@ -45,8 +45,8 @@ FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadFinishNotification
|
|
|
- (nullable NSURLSessionTask *)dataTask;
|
|
|
- (nullable NSURLCredential *)credential;
|
|
|
- (void)setCredential:(nullable NSURLCredential *)credential;
|
|
|
-- (NSTimeInterval)minimumProgressInterval;
|
|
|
-- (void)setMinimumProgressInterval:(NSTimeInterval)minimumProgressInterval;
|
|
|
+- (double)minimumProgressInterval;
|
|
|
+- (void)setMinimumProgressInterval:(double)minimumProgressInterval;
|
|
|
|
|
|
@end
|
|
|
|
|
|
@@ -76,13 +76,13 @@ FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadFinishNotification
|
|
|
@property (nonatomic, strong, nullable) NSURLCredential *credential;
|
|
|
|
|
|
/**
|
|
|
- * The minimum interval about progress percent during network downloading. Which means the next progress callback and current progress callback's progress percent difference should be larger or equal to this value.
|
|
|
+ * The minimum interval about progress percent during network downloading. Which means the next progress callback and current progress callback's progress percent difference should be larger or equal to this value. However, the final finish download progress callback does not get effected.
|
|
|
* The value should be 0.0-1.0.
|
|
|
* @note If you're using progressive decoding feature, this will also effect the image refresh rate.
|
|
|
* @note This value may enhance the performance if you don't want progress callback too frequently.
|
|
|
* Defaults to 0, which means each time we receive the new data from URLSession, we callback the progressBlock immediately.
|
|
|
*/
|
|
|
-@property (assign, nonatomic) NSTimeInterval minimumProgressInterval;
|
|
|
+@property (assign, nonatomic) double minimumProgressInterval;
|
|
|
|
|
|
/**
|
|
|
* The options for the receiver.
|