19#import <UIKit/UIKit.h>
27NS_ASSUME_NONNULL_BEGIN
47@property(nonatomic, weak, nullable) id<StoreDetailViewControllerDelegate>
delegate;
66- (instancetype)initWithFrame:(CGRect)frame;
122- (void)doPurchase:(nullable
id)sender;
130- (void)downloadExtendMusic:(nullable
id)sender;
139- (void)handleLink:(nullable
id)sender;
147- (void)handleSample:(nullable
id)sender;
154- (void)finishBgm:(nullable NSNotification *)notification;
162- (void)downloaderFinished:(
id)downloader;
169- (void)downloaderError:(
id)downloader;
176- (void)downloaderProceed:(
id)downloader;
184- (void)alertSelect:(nonnull NSDictionary *)info;
191- (void)alertClose:(nonnull NSDictionary *)info;
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The store pack-detail page: a header panel over a table of the pack's tunes, with per-row sample play...
A downloaded pack's detail card.
Definition StorePackDetailView.h:32
void updatePurchaseState()
Refreshes the purchase button's colour, title, and enabled state, and shows or hides the extend-downl...
Definition StorePackDetailView.m:442
void loadInfo()
Loads the pack detail: shows it directly when the track list is already present, otherwise starts the...
Definition StorePackDetailView.m:667
void loadRestoreInfo()
Loads the pack detail for a restore: like -loadInfo but fetches the restore endpoint.
Definition StorePackDetailView.m:687
void removePackInfo()
Clears the pack and returns every subview to its empty state, and unsubscribes from the BGM finish no...
Definition StorePackDetailView.m:409
void cancelLoading()
Cancels the in-flight info download, if any.
Definition StorePackDetailView.m:434
void showPackInfo()
Populates the card from the loaded pack: sizes the tune list, fills the labels and artwork,...
Definition StorePackDetailView.m:507
UIViewController * viewController
The controller that owns this card, messaged to close the card and to open iTunes.
Definition StorePackDetailView.h:55
void stopSample()
Stops the sample tune: fades out the BGM, drops the sample downloader, resets every tune view,...
Definition StorePackDetailView.m:830
void detailClose()
Closes any presented alert.
Definition StorePackDetailView.m:958
id< StoreDetailViewControllerDelegate > delegate
The card's delegate, told when to start a purchase, redownload, or extend download.
Definition StorePackDetailView.h:47
StorePackInfo * packInfo
The pack being shown.
Definition StorePackDetailView.h:39
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Performs a single HTTP request.
Definition Downloader.h:30