JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StorePackDetailViewV2.h
Go to the documentation of this file.
1
26
27#import <StoreKit/StoreKit.h>
28#import <UIKit/UIKit.h>
29
30#import "AlertViewManager.h"
31#import "Downloader.h"
32
33@class StorePackInfo;
34
35NS_ASSUME_NONNULL_BEGIN
36
40// clang-format off
41// One protocol per line: the packed form, which begins a continuation line with ": UIView <", is
42// read by Doxygen as undocumented ivars named after the trailing protocols.
45 SKProductsRequestDelegate>
46// clang-format on
47
53@property(nonatomic, strong, nullable) StorePackInfo *packInfo;
54
62@property(nonatomic, weak, nullable) id delegate;
63
70@property(nonatomic, weak, nullable) UIViewController *viewController;
71
81- (instancetype)initWithFrame:(CGRect)frame;
82
88- (void)removePackInfo;
89
96- (void)tapRelationButton:(nullable id)sender;
97
105- (void)setRelationColor:(int)color selectable:(BOOL)selectable;
106
114- (void)setRelationColor:(int)color animate:(BOOL)animate;
115
120- (void)cancelLoading;
121
127- (void)stopSample;
128
134- (void)updatePurchaseState;
135
142- (void)showPackInfo;
143
149- (void)loadInfo;
150
155- (void)loadRestoreInfo;
156
163- (void)doPurchase:(nullable id)sender;
164
171- (void)downloadExtendMusic:(nullable id)sender;
172
180- (void)handleLink:(nullable id)sender;
181
188- (void)handleSample:(nullable id)sender;
189
195- (void)finishBgm:(nullable NSNotification *)notification;
196
204- (void)downloaderFinished:(id)downloader;
205
211- (void)downloaderError:(id)downloader;
212
218- (void)downloaderProceed:(id)downloader;
219
226- (void)alertSelect:(nonnull NSDictionary *)info;
227
233- (void)alertClose:(nonnull NSDictionary *)info;
234
239- (void)detailClose;
240
245- (void)setInactive;
246
251- (void)setActive;
252
257- (void)popOutDetailView;
258
267- (void)productsRequest:(nonnull SKProductsRequest *)request
268 didReceiveResponse:(nonnull SKProductsResponse *)response;
269
270@end
271
272NS_ASSUME_NONNULL_END
273
274// code: language=Objective-C
275// kate: hl Objective-C;
276// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The HTTP client.
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