|
LuxChat
2.0
Instant messenger for iOS
|
#import <SDWebImagePrefetcher.h>
Instance Methods | |
| (void) | - prefetchURLs: |
| (void) | - prefetchURLs:progress:completed: |
| (void) | - cancelPrefetching |
Class Methods | |
| (SDWebImagePrefetcher *) | + sharedImagePrefetcher |
Properties | |
| SDWebImageManager * | manager |
| NSUInteger | maxConcurrentDownloads |
| SDWebImageOptions | options |
| dispatch_queue_t | prefetcherQueue |
| id< SDWebImagePrefetcherDelegate > | delegate |
Prefetch some URLs in the cache for future use. Images are downloaded in low priority.
| - (void) cancelPrefetching |
Remove and cancel queued list
| - (void) prefetchURLs: | (NSArray *) | urls |
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
| urls | list of URLs to prefetch |
| - (void) prefetchURLs: | (NSArray *) | urls | |
| progress: | (SDWebImagePrefetcherProgressBlock) | progressBlock | |
| completed: | (SDWebImagePrefetcherCompletionBlock) | completionBlock | |
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
| urls | list of URLs to prefetch |
| progressBlock | block to be called when progress updates; first parameter is the number of completed (successful or not) requests, second parameter is the total number of images originally requested to be prefetched |
| completionBlock | block to be called when prefetching is completed first param is the number of completed (successful or not) requests, second parameter is the number of skipped requests |
| + (SDWebImagePrefetcher *) sharedImagePrefetcher |
Return the global image prefetcher instance.
|
readnonatomicstrong |
The web image manager
|
readwritenonatomicassign |
Maximum number of URLs to prefetch at the same time. Defaults to 3.
|
readwritenonatomicassign |
SDWebImageOptions for prefetcher. Defaults to SDWebImageLowPriority.
|
readwritenonatomicassign |
Queue options for Prefetcher. Defaults to Main Queue.
1.8.9.1