27#import <StoreKit/StoreKit.h>
28#import <UIKit/UIKit.h>
35NS_ASSUME_NONNULL_BEGIN
45 SKProductsRequestDelegate>
62@property(nonatomic, weak, nullable)
id delegate;
81- (instancetype)initWithFrame:(CGRect)frame;
96- (void)tapRelationButton:(nullable
id)sender;
105- (void)setRelationColor:(
int)color selectable:(BOOL)selectable;
114- (void)setRelationColor:(
int)color animate:(BOOL)animate;
163- (void)doPurchase:(nullable
id)sender;
171- (void)downloadExtendMusic:(nullable
id)sender;
180- (void)handleLink:(nullable
id)sender;
188- (void)handleSample:(nullable
id)sender;
195- (void)finishBgm:(nullable NSNotification *)notification;
204- (void)downloaderFinished:(
id)downloader;
211- (void)downloaderError:(
id)downloader;
218- (void)downloaderProceed:(
id)downloader;
226- (void)alertSelect:(nonnull NSDictionary *)info;
233- (void)alertClose:(nonnull NSDictionary *)info;
267- (void)productsRequest:(nonnull SKProductsRequest *)request
268 didReceiveResponse:(nonnull SKProductsResponse *)response;
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
A downloaded pack's detail card (version 2).
Definition StorePackDetailViewV2.h:45
void popOutDetailView()
Back-button tap: asks the delegate to pop the detail list.
Definition StorePackDetailViewV2.m:1291
void setInactive()
Marks the card inactive by re-adding the right-half back button over it.
Definition StorePackDetailViewV2.m:1281
void loadInfo()
Loads the pack detail: shows it directly when the track list is already present, otherwise starts the...
Definition StorePackDetailViewV2.m:772
void setActive()
Marks the card active by removing the right-half back button.
Definition StorePackDetailViewV2.m:1286
void updatePurchaseState()
Refreshes the purchase button's colour, title, and enabled state, shows or hides the extend-download ...
Definition StorePackDetailViewV2.m:941
void showPackInfo()
Populates the card from the loaded pack: sizes the tune list, fills the labels and artwork,...
Definition StorePackDetailViewV2.m:599
UIViewController * viewController
The controller that owns this card, messaged to close the card and to open iTunes.
Definition StorePackDetailViewV2.h:70
StorePackInfo * packInfo
The pack being shown.
Definition StorePackDetailViewV2.h:53
void loadRestoreInfo()
Loads the pack detail for a restore: like -loadInfo but fetches the restore endpoint.
Definition StorePackDetailViewV2.m:792
id delegate
The card's delegate, told when to start a purchase, redownload, or extend download,...
Definition StorePackDetailViewV2.h:62
void detailClose()
Closes any presented alert.
Definition StorePackDetailViewV2.m:1274
void removePackInfo()
Clears the pack and returns every subview to its empty state, resets the relation strip,...
Definition StorePackDetailViewV2.m:551
void cancelLoading()
Cancels the in-flight info download, if any.
Definition StorePackDetailViewV2.m:581
void stopSample()
Stops the sample tune: fades out the BGM, drops the sample downloader, resets every tune view,...
Definition StorePackDetailViewV2.m:589
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