Added "cancelAllDownloads" method to SDWebImageDownloader.
This commit is contained in:
parent
16e1862afc
commit
ed7df926ea
|
@ -188,4 +188,9 @@ typedef NSDictionary *(^SDWebImageDownloaderHeadersFilterBlock)(NSURL *url, NSDi
|
||||||
*/
|
*/
|
||||||
- (void)setSuspended:(BOOL)suspended;
|
- (void)setSuspended:(BOOL)suspended;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cancels all download operations in the queue
|
||||||
|
*/
|
||||||
|
- (void)cancelAllDownloads;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -229,4 +229,8 @@ static NSString *const kCompletedCallbackKey = @"completed";
|
||||||
[self.downloadQueue setSuspended:suspended];
|
[self.downloadQueue setSuspended:suspended];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)cancelAllDownloads {
|
||||||
|
[self.downloadQueue cancelAllOperations];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue