JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ImageDownloader Class Reference

Downloads one image over an NSURLSession and reports it to a delegate. More...

#include <ImageDownloader.h>

Inheritance diagram for ImageDownloader:
Collaboration diagram for ImageDownloader:

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.

Detailed Description

Downloads one image over an NSURLSession and reports it to a delegate.

Method Documentation

◆ cancelDownload

- (void) cancelDownload

Cancels the download.

Ghidra address:
0xfedfc

◆ getImage

- (UIImage *) getImage

The loaded image, or nil.

Returns
The loaded image, or nil when the download has not produced one.
Ghidra address:
0xfee58
Ghidra address:
0xfee58

◆ initWithImageURL:forKey:

- (instancetype) initWithImageURL: (nullable NSURL *) imageURL
forKey: (nullable id) key 

Builds a downloader for an image URL and cache key.

Parameters
imageURLThe image's URL.
keyThe cache key.
Returns
The initialised downloader.
Ghidra address:
0xfeb38

◆ startDownload

- (void) startDownload

Starts the download.

Ghidra address:
0xfebf0

Property Documentation

◆ delegate

- (id<ImageDownloaderDelegate>) delegate
readwritenonatomicweak

The delegate told when the image loads.

Held weakly.


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