Merge pull request #734 from soundcloud/master
add a suspension method to image downloaders
Showing
2 changed files
with
9 additions
and
0 deletions
@@ -148,4 +148,9 @@ typedef void(^SDWebImageDownloaderCompletedBlock)(UIImage *image, NSData *data, | @@ -148,4 +148,9 @@ typedef void(^SDWebImageDownloaderCompletedBlock)(UIImage *image, NSData *data, | ||
148 | progress:(SDWebImageDownloaderProgressBlock)progressBlock | 148 | progress:(SDWebImageDownloaderProgressBlock)progressBlock |
149 | completed:(SDWebImageDownloaderCompletedBlock)completedBlock; | 149 | completed:(SDWebImageDownloaderCompletedBlock)completedBlock; |
150 | 150 | ||
151 | +/** | ||
152 | + * Sets the download queue suspension state | ||
153 | + */ | ||
154 | +- (void)setSuspended:(BOOL)suspended; | ||
155 | + | ||
151 | @end | 156 | @end |
@@ -212,4 +212,8 @@ static NSString *const kCompletedCallbackKey = @"completed"; | @@ -212,4 +212,8 @@ static NSString *const kCompletedCallbackKey = @"completed"; | ||
212 | }); | 212 | }); |
213 | } | 213 | } |
214 | 214 | ||
215 | +- (void)setSuspended:(BOOL)suspended { | ||
216 | + [self.downloadQueue setSuspended:suspended]; | ||
217 | +} | ||
218 | + | ||
215 | @end | 219 | @end |
-
Please register or login to post a comment