SDWebImagePrefetcher Class Reference
| Inherits from | NSObject |
| Declared in | SDWebImagePrefetcher.h |
Tasks
-
maxConcurrentDownloadsMaximum number of URLs to prefetch at the same time. Defaults to 3.
property -
optionsSDWebImageOptions for prefetcher. Defaults to SDWebImageLowPriority.
property -
+ sharedImagePrefetcherReturn the global image prefetcher instance.
-
– prefetchURLs:Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, currently one image is downloaded at a time, and skips images for failed downloads and proceed to the next image in the list
-
– prefetchURLs:completed:Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, currently one image is downloaded at a time, and skips images for failed downloads and proceed to the next image in the list
-
– cancelPrefetchingRemove and cancel queued list
Properties
Instance Methods
cancelPrefetching
Remove and cancel queued list
- (void)cancelPrefetchingDiscussion
Remove and cancel queued list
Declared In
SDWebImagePrefetcher.hprefetchURLs:
Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, currently one image is downloaded at a time, and skips images for failed downloads and proceed to the next image in the list
- (void)prefetchURLs:(NSArray *)urlsParameters
- urls
list of URLs to prefetch
Discussion
Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, currently one image is downloaded at a time, and skips images for failed downloads and proceed to the next image in the list
Declared In
SDWebImagePrefetcher.hprefetchURLs:completed:
Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, currently one image is downloaded at a time, and skips images for failed downloads and proceed to the next image in the list
- (void)prefetchURLs:(NSArray *)urls completed:(void ( ^ ) ( NSUInteger finishedCount , NSUInteger skippedCount ))completionBlockParameters
- urls
list of URLs to prefetch
- completionBlock
block to be called when prefetching is completed
Discussion
Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, currently one image is downloaded at a time, and skips images for failed downloads and proceed to the next image in the list
Declared In
SDWebImagePrefetcher.h