JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StoreViewController.h
Go to the documentation of this file.
1
27
28#import <UIKit/UIKit.h>
29
30#import "AlertViewManager.h"
31#import "Downloader.h"
32#import "EditorIDManager.h"
33#import "PurchaseManager.h"
34#import "StoreDialogView.h"
37
39@class StorePackInfo;
40
41NS_ASSUME_NONNULL_BEGIN
42
46@interface StoreViewController : UITabBarController <PurchaseManagerDelegate,
53
59@property(nonatomic, strong, nullable) NSDictionary *startupParameters;
60
65@property(nonatomic, readonly, strong, nullable) StoreDialogView *modalDialog;
66
73- (instancetype)init;
74
80- (void)firstStoreItemLoad;
81
88
94- (void)loadView;
95
101- (void)storeEnd:(nullable id)sender;
102
109- (void)showModalDialog:(nullable id<StoreDialogViewDelegate>)delegate;
110
116- (void)hideModalDialog;
117
124- (void)startDownloadMusics:(int)packID;
125
132- (void)startDownloadExtendMusics:(int)packID;
133
139- (void)performRestore:(nullable id)sender;
140
147- (void)detailViewStartRedownload:(nullable StoreDetailViewControllerV2 *)packInfo;
148
156- (BOOL)checkAttainLimitPurchase:(nullable SKProduct *)product;
157
164- (void)detailViewStartPurchase:(nullable StoreDetailViewControllerV2 *)packInfo;
165
172- (void)detailViewStartExtendDownload:(nullable StorePackInfo *)packInfo;
173
174#pragma mark - PurchaseManagerDelegate
175
182- (void)purchaseSucceeded:(nullable NSString *)productID;
183
190- (void)purchaseFailed:(nullable NSString *)productID error:(nullable NSError *)error;
191
197- (void)restoreSucceeded;
198
204- (void)restoreFailed:(nullable NSError *)error;
205
210- (void)restoreNothing;
211
216- (void)firstRestore;
217
218#pragma mark - AlertViewManagerDelegate
219
225- (void)alertSelect:(nonnull NSDictionary *)info;
226
227#pragma mark - StoreDialogViewDelegate
228
235- (void)storeDialogCancel:(nullable id)dialogView;
236
237#pragma mark - StoreDownloadManagerDelegate
238
244- (void)downloadManagerStartTask:(nonnull StoreDownloadManager *)manager;
245
251- (void)downloadManagerCompleted:(nonnull StoreDownloadManager *)manager;
252
258- (void)downloadManagerFailed:(nonnull StoreDownloadManager *)manager;
259
265- (void)downloadManagerProceed:(nonnull StoreDownloadManager *)manager;
266
267#pragma mark - Deep-link detail opening
268
275- (void)openDetail:(nullable NSNumber *)packID;
276
283- (void)openCampaignDetail:(nullable NSNumber *)campaignID;
284
289- (void)storeClose;
290
291#pragma mark - Cover view and agreement gate
292
297- (void)becomeCoverView;
298
303- (void)resignCoverView;
304
310- (void)dispErrorLabel:(nullable NSString *)msg;
311
318- (void)agreementSuccess:(nullable id)sender;
319
325- (void)agreementFailed:(nullable id)sender;
326
332- (void)becomePolicyAgreement:(nullable id)sender;
333
340- (void)agreementError:(nullable id)sender msgStr:(nullable NSString *)msg;
341
342#pragma mark - DownloaderDelegate
343
349- (void)downloaderFinished:(nullable id)downloader;
350
356- (void)downloaderError:(nullable id)downloader;
357
358#pragma mark - EditorIDManagerDelegate
359
365- (void)successIDDownload:(nullable id)manager;
366
373- (void)errorIDDownload:(nullable id)manager msgStr:(nullable NSString *)msg;
374
375#pragma mark - Mission achievement
376
383
384#pragma mark - View lifecycle
385
391
397- (void)viewWillAppear:(BOOL)animated;
398
404- (void)viewDidAppear:(BOOL)animated;
405
411- (void)viewWillDisappear:(BOOL)animated;
412
418- (void)viewDidDisappear:(BOOL)animated;
419
426- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
427
433- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
434
440- (BOOL)shouldAutorotate;
441
442@end
443
444NS_ASSUME_NONNULL_END
445
446// code: language=Objective-C
447// kate: hl Objective-C;
448// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The HTTP client.
The editor identifier store, backed by the keychain.
The StoreKit purchase manager.
The store's modal progress panel.
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 store pack's detail screen (version 2).
Definition StoreDetailViewControllerV2.h:89
A rounded panel with a spinner, a one-line message, a progress bar and an abort button.
Definition StoreDialogView.h:37
Runs a list of store download tasks one after another, verifying each pack's trailing MD5 digest,...
Definition StoreDownloadManager.h:49
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
The store's root tab container and shared purchase, download, and agreement coordinator.
Definition StoreViewController.h:52
void resignCoverView()
Fades the licence-agreement cover out.
Definition StoreViewController.m:984
void restoreNothing()
A restore found nothing to restore: hides the dialog and tells the player.
Definition StoreViewController.m:767
void didReceiveMemoryWarning()
Handles a low-memory warning.
Definition StoreViewController.m:1348
void storeClose()
Closes every child's store view and any open alert.
Definition StoreViewController.m:959
void becomeCoverView()
Fades the licence-agreement cover in.
Definition StoreViewController.m:970
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen supports.
Definition StoreViewController.m:1378
NSDictionary * startupParameters
The deep-link parameters used to pre-open a genre, pack, or campaign.
Definition StoreViewController.h:59
void firstRestore()
Shows the modal dialog and begins a purchase restore.
Definition StoreViewController.m:790
BOOL shouldAutorotate()
Whether the screen rotates.
Definition StoreViewController.m:1383
void restoreSucceeded()
A restore completed: clears the purchase delegate, hides the dialog, and shows the restore-complete a...
Definition StoreViewController.m:719
void firstStoreItemLoad()
Reads the startup parameters and opens the deep-linked genre or pack (and, when present,...
Definition StoreViewController.m:252
instancetype init()
Builds the four child controllers, wraps each in a navigation controller, and installs them as the ta...
Definition StoreViewController.m:213
void loadView()
Builds the tab container's view, the dimming cover, and the modal dialog sized for the device idiom.
Definition StoreViewController.m:311
StoreDialogView * modalDialog
The shared modal progress panel behind the dimming cover.
Definition StoreViewController.h:65
void loadInitialStoreInfo()
Re-enables interaction and either provisions a missing editor id or builds the licence-agreement gate...
Definition StoreViewController.m:268
void createStoreMissionDownloader()
Builds the mission-achievement-check session downloader for the challenge missions that are unlocked-...
Definition StoreViewController.m:1312
void hideModalDialog()
Fades the dimming cover and modal dialog out, stopping the spinner and unmounting the dialog on compl...
Definition StoreViewController.m:370
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Performs a single HTTP request.
Definition Downloader.h:30
Told how the editor-identifier provisioning download finished.
Definition EditorIDManager.h:22
Drives in-app purchases.
Definition PurchaseManager.h:24
What a StoreDialogView tells its owner.
Definition StoreDialogView.h:21
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