|
JubeatPlus 3.9.11
|
Downloads one image over an NSURLSession and reports it to a delegate.
More...
#include <ImageDownloader.h>


Instance Methods | |
| (instancetype) | - initWithImageURL:forKey: |
| Builds a downloader for an image URL and cache key. | |
| (void) | - startDownload |
| Starts the download. | |
| (void) | - cancelDownload |
| Cancels the download. | |
| (nullable UIImage *) | - getImage |
| The loaded image, or nil. | |
Properties | |
| NSURL * | imageURL |
| The image's URL. | |
| id | key |
| The cache key the download is associated with. | |
| id< ImageDownloaderDelegate > | delegate |
| The delegate told when the image loads. | |
| BOOL | downloading |
| Whether a download is in progress. | |
Downloads one image over an NSURLSession and reports it to a delegate.
| - (void) cancelDownload |
Cancels the download.
| - (UIImage *) getImage |
The loaded image, or nil.
| - (instancetype) initWithImageURL: | (nullable NSURL *) | imageURL | |
| forKey: | (nullable id) | key |
Builds a downloader for an image URL and cache key.
| imageURL | The image's URL. |
| key | The cache key. |
| - (void) startDownload |
Starts the download.
|
readwritenonatomicweak |
The delegate told when the image loads.
Held weakly.