add a suspension method to image downloaders

This commit is contained in:
Richard Howell 2014-06-02 11:12:26 +02:00
parent 7edeef9f1a
commit 2c5ee720ba
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -212,4 +212,8 @@ static NSString *const kCompletedCallbackKey = @"completed";
});
}
- (void)setSuspended:(BOOL)suspended {
[self.downloadQueue setSuspended:suspended];
}
@end