LuxChat  2.0
Instant messenger for iOS
Instance Methods | Class Methods | Properties | List of all members
SDWebImagePrefetcher Class Reference

#import <SDWebImagePrefetcher.h>

Inheritance diagram for SDWebImagePrefetcher:

Instance Methods

(void) - prefetchURLs:
 
(void) - prefetchURLs:progress:completed:
 
(void) - cancelPrefetching
 

Class Methods

(SDWebImagePrefetcher *) + sharedImagePrefetcher
 

Properties

SDWebImageManagermanager
 
NSUInteger maxConcurrentDownloads
 
SDWebImageOptions options
 
dispatch_queue_t prefetcherQueue
 
id< SDWebImagePrefetcherDelegatedelegate
 

Detailed Description

Prefetch some URLs in the cache for future use. Images are downloaded in low priority.

Method Documentation

- (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

Parameters
urlslist 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

Parameters
urlslist of URLs to prefetch
progressBlockblock 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
completionBlockblock 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.

Property Documentation

- (SDWebImageManager*) manager
readnonatomicstrong

The web image manager

- (NSUInteger) maxConcurrentDownloads
readwritenonatomicassign

Maximum number of URLs to prefetch at the same time. Defaults to 3.

- (SDWebImageOptions) options
readwritenonatomicassign

SDWebImageOptions for prefetcher. Defaults to SDWebImageLowPriority.

- (dispatch_queue_t) prefetcherQueue
readwritenonatomicassign

Queue options for Prefetcher. Defaults to Main Queue.


The documentation for this class was generated from the following files: