JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StoreImageView.h
Go to the documentation of this file.
1
14
15#import <UIKit/UIKit.h>
16
17#import "Downloader.h"
18
19NS_ASSUME_NONNULL_BEGIN
20
24@interface StoreImageView : UIImageView <DownloaderDelegate>
25
30@property(nonatomic, strong, nullable) NSString *imageURL;
31
36@property(nonatomic, strong, nullable) Downloader *imageDownloader;
37
42- (void)startDownloadImage;
43
52- (void)unloadImage:(nullable UIImage *)image;
53
63- (void)downloaderFinished:(id)downloader;
64
70- (void)downloaderError:(id)downloader;
71
72@end
73
74NS_ASSUME_NONNULL_END
75
76// code: language=Objective-C
77// kate: hl Objective-C;
78// vim: set ft=objc :
The HTTP client.
A one-shot HTTP request that reports its result to a delegate.
Definition Downloader.h:52
An image view that loads itself from imageURL on demand.
Definition StoreImageView.h:24
NSString * imageURL
Where to fetch the artwork from.
Definition StoreImageView.h:30
Downloader * imageDownloader
The fetch in flight, or nil when none is.
Definition StoreImageView.h:36
void startDownloadImage()
Starts fetching imageURL , unless there is no URL or a fetch is already running.
Definition StoreImageView.m:9
Performs a single HTTP request.
Definition Downloader.h:30