15#import <CoreGraphics/CoreGraphics.h>
16#import <Foundation/Foundation.h>
17#import <UIKit/UIKit.h>
19NS_ASSUME_NONNULL_BEGIN
29@protocol ArtworkLoaderDelegate <NSObject>
47@property(nonatomic, strong, nullable) UIImage *
image;
52@property(nonatomic, weak, nullable) id<ArtworkLoaderDelegate>
delegate;
58@property(nonatomic, readonly)
unsigned int tuneID;
77- (instancetype)initWithPath:(nullable NSString *)path
78 tuneID:(
unsigned int)tuneID
79 indexRow:(
int)indexRow
81 bigArtwork:(BOOL)bigArtwork;
96- (instancetype)initWithPath:(nullable NSString *)path
97 tuneID:(
unsigned int)tuneID
99 bigArtwork:(BOOL)bigArtwork;
111- (nullable UIImage *)shrinkImage:(nullable UIImage *)image;
A one-shot loader for a single tune's artwork.
Definition ArtworkLoader.h:42
id< ArtworkLoaderDelegate > delegate
The object told when the artwork is ready.
Definition ArtworkLoader.h:52
void loadArtwork()
Unzips, deciphers and decodes the artwork, then tells the delegate.
Definition ArtworkLoader.m:78
unsigned int tuneID
Which tune this artwork belongs to.
Definition ArtworkLoader.h:58
int indexRow
Which row asked for it.
Definition ArtworkLoader.h:64
UIImage * image
The decoded artwork, once -loadArtwork has run.
Definition ArtworkLoader.h:47