JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StoreViewControllerV2.h
Go to the documentation of this file.
1
23
24#import <StoreKit/StoreKit.h>
25#import <UIKit/UIKit.h>
26
27#import "AlertViewManager.h"
28#import "EditorIDManager.h"
29#import "PurchaseManager.h"
32
33@class StoreDialogView;
34@class StorePackInfo;
35
36NS_ASSUME_NONNULL_BEGIN
37
41@interface StoreViewControllerV2 : UITabBarController <AlertViewManagerDelegate,
46
52- (instancetype)init;
53
59- (void)firstStoreItemLoad;
60
67
75- (void)errorIDDownload:(nullable id)manager msgStr:(nullable NSString *)msgStr;
76
83- (void)successIDDownload:(nullable id)manager;
84
90- (void)loadView;
91
97- (void)storeEnd:(nullable id)sender;
98
104- (void)showModalDialog:(nullable id)delegate;
105
110- (void)hideModalDialog;
111
118- (void)startDownloadMusics:(int)packID;
119
126- (void)startDownloadExtendMusics:(int)packID;
127
133- (void)performRestore:(nullable id)sender;
134
140- (void)detailViewStartRedownload:(nullable StorePackInfo *)packInfo;
141
149- (BOOL)checkAttainLimitPurchase:(nullable SKProduct *)product;
150
157- (void)detailViewStartPurchase:(nullable StorePackInfo *)packInfo;
158
164- (void)detailViewStartExtendDownload:(nullable StorePackInfo *)packInfo;
165
172- (void)purchaseSucceeded:(nullable NSString *)productID;
173
181- (void)purchaseFailed:(nullable NSString *)productID error:(nullable NSError *)error;
182
188- (void)restoreSucceeded;
189
196- (void)restoreFailed:(nullable NSError *)error;
197
203- (void)restoreNothing;
204
209- (void)firstRestore;
210
217- (void)alertSelect:(nonnull NSDictionary *)info;
218
225- (void)storeDialogCancel:(nullable id)dialogView;
226
232- (void)downloadManagerStartTask:(nullable id)manager;
233
239- (void)downloadManagerCompleted:(nullable id)manager;
240
247- (void)downloadManagerFailed:(nullable id)manager;
248
254- (void)downloadManagerProceed:(nullable id)manager;
255
261- (void)openDetail:(nullable NSNumber *)packID;
262
268- (void)openCampaignDetail:(nullable NSNumber *)campaignID;
269
274- (void)storeClose;
275
280- (void)becomeCoverView;
281
286- (void)resignCoverView;
287
293- (void)dispErrorLabel:(nullable NSString *)message;
294
301- (void)agreementSuccess:(nullable id)agreement;
302
309- (void)downloaderFinished:(nullable id)downloader;
310
317- (void)downloaderError:(nullable id)downloader;
318
324- (void)agreementFailed:(nullable id)agreement;
325
331- (void)becomePolicyAgreement:(nullable id)agreement;
332
339- (void)agreementError:(nullable id)agreement msgStr:(nullable NSString *)msgStr;
340
347
353
359- (void)viewWillAppear:(BOOL)animated;
360
366- (void)viewDidAppear:(BOOL)animated;
367
373- (void)viewWillDisappear:(BOOL)animated;
374
380- (void)viewDidDisappear:(BOOL)animated;
381
388- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
389
395- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
396
402- (BOOL)shouldAutorotate;
403
409@property(nonatomic, strong, nullable) NSDictionary *startupParameters;
410
415@property(nonatomic, readonly, nullable) StoreDialogView *modalDialog;
416
417@end
418
419NS_ASSUME_NONNULL_END
420
421// code: language=Objective-C
422// kate: hl Objective-C;
423// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The editor identifier store, backed by the keychain.
The StoreKit purchase manager.
Downloads a queue of store packs in sequence, verifying, unpacking, and registering each.
The store-parent interface shared by the two store tab controllers.
A rounded panel with a spinner, a one-line message, a progress bar and an abort button.
Definition StoreDialogView.h:37
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
The store's four-tab container and shared purchase/restore/download coordinator.
Definition StoreViewControllerV2.h:45
void hideModalDialog()
Fades the modal cover view out, stops the spinner, and unmounts it.
Definition StoreViewControllerV2.m:408
void firstRestore()
Shows the processing dialog and begins a purchase restore.
Definition StoreViewControllerV2.m:822
void firstStoreItemLoad()
Opens the main tab on its startup pack or genre, and the campaign tab on its startup campaign,...
Definition StoreViewControllerV2.m:298
void loadView()
Builds the modal cover view and the StoreDialogView progress overlay, sized for the device idiom.
Definition StoreViewControllerV2.m:230
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen supports.
Definition StoreViewControllerV2.m:286
void didReceiveMemoryWarning()
Chains to super; the override adds nothing of its own.
Definition StoreViewControllerV2.m:256
NSDictionary * startupParameters
The parameters that seed the initial pack, genre, or campaign to open.
Definition StoreViewControllerV2.h:409
void resignCoverView()
Fades the user-policy overlay out.
Definition StoreViewControllerV2.m:1019
void becomeCoverView()
Fades the user-policy overlay in.
Definition StoreViewControllerV2.m:1005
StoreDialogView * modalDialog
The shared progress-and-abort modal overlay.
Definition StoreViewControllerV2.h:415
void restoreNothing()
Restore with nothing to restore: clears the delegate, hides the dialog, and shows the nothing-to-rest...
Definition StoreViewControllerV2.m:799
instancetype init()
Builds the four tabs, each wrapped in a non-translucent navigation controller.
Definition StoreViewControllerV2.m:192
void createStoreMissionDownloader()
Builds the mission-achievement-check session downloader from the selected mission sheet's unclaimed c...
Definition StoreViewControllerV2.m:1270
void restoreSucceeded()
Restore success: clears the delegate, hides the dialog, and shows the restore-complete alert.
Definition StoreViewControllerV2.m:751
BOOL shouldAutorotate()
Whether the screen rotates.
Definition StoreViewControllerV2.m:291
void loadInitialStoreInfo()
Resumes interaction, then either starts the editor-ID download (when no ID exists) or builds the dimm...
Definition StoreViewControllerV2.m:314
void storeClose()
Closes every tab's store session and any open alert.
Definition StoreViewControllerV2.m:989
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Told how the editor-identifier provisioning download finished.
Definition EditorIDManager.h:22
Drives in-app purchases.
Definition PurchaseManager.h:24
Told about a store download queue's progress.
Definition StoreDownloadManager.h:20
What a store child controller needs from its owning store tab controller.
Definition StoreParentViewController.h:29