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

An image view that loads itself from imageURL on demand. More...

#include <StoreImageView.h>

Inheritance diagram for StoreImageView:
Collaboration diagram for StoreImageView:

Instance Methods

(void) - startDownloadImage
 Starts fetching imageURL , unless there is no URL or a fetch is already running.
(void) - unloadImage:
 Cancels any fetch and puts a given image up instead.
(void) - downloaderFinished:
 Takes the fetched bytes as the view's image.
(void) - downloaderError:
 Clears the fetch.
Instance Methods inherited from <DownloaderDelegate>
(void) - downloaderProceed:
 Sent periodically as data arrives, and once more on completion.

Properties

NSString * imageURL
 Where to fetch the artwork from.
Downloader * imageDownloader
 The fetch in flight, or nil when none is.

Detailed Description

An image view that loads itself from imageURL on demand.

Method Documentation

◆ downloaderError:

- (void) downloaderError: (id) downloader

Clears the fetch.

The view keeps whatever image it already had.

Parameters
downloaderThe failed fetch. Unused.
Ghidra address:
0xd1fd8
Ghidra address:
0xd1fd8

Reimplemented from <DownloaderDelegate>.

◆ downloaderFinished:

- (void) downloaderFinished: (id) downloader

Takes the fetched bytes as the view's image.

On a Retina screen the image is rebuilt at the screen's scale, because -initWithData: always decodes at scale 1 and would otherwise draw at twice its intended size.

Parameters
downloaderThe finished fetch.
Ghidra address:
0xd1e24
Ghidra address:
0xd1e24

Reimplemented from <DownloaderDelegate>.

◆ startDownloadImage

- (void) startDownloadImage

Starts fetching imageURL , unless there is no URL or a fetch is already running.

Ghidra address:
0xd1c14

◆ unloadImage:

- (void) unloadImage: (nullable UIImage *) image

Cancels any fetch and puts a given image up instead.

Despite the name it sets an image rather than clearing one — pass nil to blank the view.

Parameters
imageThe image to show.
Ghidra address:
0xd1d74

Property Documentation

◆ imageDownloader

- (Downloader*) imageDownloader
readwritenonatomicstrong

The fetch in flight, or nil when none is.

Ghidra address:
0xd207c (getter)

◆ imageURL

- (NSString*) imageURL
readwritenonatomicstrong

Where to fetch the artwork from.

Ghidra address:
0xd2058 (getter)

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