add a suspension method to image downloaders
This commit is contained in:
parent
7edeef9f1a
commit
2c5ee720ba
|
@ -148,4 +148,9 @@ typedef void(^SDWebImageDownloaderCompletedBlock)(UIImage *image, NSData *data,
|
|||
progress:(SDWebImageDownloaderProgressBlock)progressBlock
|
||||
completed:(SDWebImageDownloaderCompletedBlock)completedBlock;
|
||||
|
||||
/**
|
||||
* Sets the download queue suspension state
|
||||
*/
|
||||
- (void)setSuspended:(BOOL)suspended;
|
||||
|
||||
@end
|
||||
|
|
|
@ -212,4 +212,8 @@ static NSString *const kCompletedCallbackKey = @"completed";
|
|||
});
|
||||
}
|
||||
|
||||
- (void)setSuspended:(BOOL)suspended {
|
||||
[self.downloadQueue setSuspended:suspended];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue