Authored by Olivier Poitrey

Merge pull request #734 from soundcloud/master

add a suspension method to image downloaders
... ... @@ -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
... ...