|
LuxChat
2.0
Instant messenger for iOS
|
#import <SDWebImageDownloader.h>
Instance Methods | |
| (void) | - setValue:forHTTPHeaderField: |
| (NSString *) | - valueForHTTPHeaderField: |
| (void) | - setOperationClass: |
| (id< SDWebImageOperation >) | - downloadImageWithURL:options:progress:completed: |
| (void) | - setSuspended: |
Class Methods | |
| (SDWebImageDownloader *) | + sharedDownloader |
Properties | |
| BOOL | shouldDecompressImages |
| NSInteger | maxConcurrentDownloads |
| NSUInteger | currentDownloadCount |
| NSTimeInterval | downloadTimeout |
| SDWebImageDownloaderExecutionOrder | executionOrder |
| NSString * | username |
| NSString * | password |
| SDWebImageDownloaderHeadersFilterBlock | headersFilter |
Asynchronous downloader dedicated and optimized for image loading.
| - (id< SDWebImageOperation >) downloadImageWithURL: | (NSURL *) | url | |
| options: | (SDWebImageDownloaderOptions) | options | |
| progress: | (SDWebImageDownloaderProgressBlock) | progressBlock | |
| completed: | (SDWebImageDownloaderCompletedBlock) | completedBlock | |
Creates a SDWebImageDownloader async downloader instance with a given URL
The delegate will be informed when the image is finish downloaded or an error has happen.
| url | The URL to the image to download |
| options | The options to be used for this download |
| progressBlock | A block called repeatedly while the image is downloading |
| completedBlock | A block called once the download is completed. If the download succeeded, the image parameter is set, in case of error, error parameter is set with the error. The last parameter is always YES if SDWebImageDownloaderProgressiveDownload isn't use. With the SDWebImageDownloaderProgressiveDownload option, this block is called repeatedly with the partial image object and the finished argument set to NO before to be called a last time with the full image and finished argument set to YES. In case of error, the finished argument is always YES. |
| - (void) setOperationClass: | (Class) | operationClass |
Sets a subclass of SDWebImageDownloaderOperation as the default NSOperation to be used each time SDWebImage constructs a request operation to download an image.
| operationClass | The subclass of SDWebImageDownloaderOperation to set as default. Passing nil will revert to SDWebImageDownloaderOperation. |
| - (void) setSuspended: | (BOOL) | suspended |
Sets the download queue suspension state
| - (void) setValue: | (NSString *) | value | |
| forHTTPHeaderField: | (NSString *) | field | |
Set a value for a HTTP header to be appended to each download HTTP request.
| value | The value for the header field. Use nil value to remove the header. |
| field | The name of the header field to set. |
| + (SDWebImageDownloader *) sharedDownloader |
Singleton method, returns the shared instance
| - (NSString *) valueForHTTPHeaderField: | (NSString *) | field |
Returns the value of the specified HTTP header field.
nil if there is no corresponding header field.
|
readnonatomicassign |
Shows the current amount of downloads that still need to be downloaded
|
readwritenonatomicassign |
The timeout value (in seconds) for the download operation. Default: 15.0.
|
readwritenonatomicassign |
Changes download operations execution order. Default value is SDWebImageDownloaderFIFOExecutionOrder.
|
readwritenonatomiccopy |
Set filter to pick headers for downloading image HTTP request.
This block will be invoked for each downloading image request, returned NSDictionary will be used as headers in corresponding HTTP request.
|
readwritenonatomicstrong |
Set password
|
readwritenonatomicassign |
Decompressing images that are downloaded and cached can improve peformance but can consume lot of memory. Defaults to YES. Set this to NO if you are experiencing a crash due to excessive memory consumption.
|
readwritenonatomicstrong |
Set username
1.8.9.1