Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
yh_sdwebimage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
Olivier Poitrey
2014-06-02 02:23:59 -0700
Commit
5b3c54ba163d2949b4712120e79882beb8ca2f54
2 parents
7edeef9f
2c5ee720
Merge pull request #734 from soundcloud/master
add a suspension method to image downloaders
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
SDWebImage/SDWebImageDownloader.h
SDWebImage/SDWebImageDownloader.m
SDWebImage/SDWebImageDownloader.h
View file @
5b3c54b
...
...
@@ -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
...
...
SDWebImage/SDWebImageDownloader.m
View file @
5b3c54b
...
...
@@ -212,4 +212,8 @@ static NSString *const kCompletedCallbackKey = @"completed";
});
}
-
(
void
)
setSuspended
:
(
BOOL
)
suspended
{
[
self
.
downloadQueue
setSuspended
:
suspended
];
}
@end
...
...
Please
register
or
login
to post a comment