JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StoreViewControllerV2 Class Reference

The store's four-tab container and shared purchase/restore/download coordinator. More...

#include <StoreViewControllerV2.h>

Inheritance diagram for StoreViewControllerV2:
Collaboration diagram for StoreViewControllerV2:

Instance Methods

(instancetype) - init
 Builds the four tabs, each wrapped in a non-translucent navigation controller.
(void) - firstStoreItemLoad
 Opens the main tab on its startup pack or genre, and the campaign tab on its startup campaign, from the startup parameters.
(void) - loadInitialStoreInfo
 Resumes interaction, then either starts the editor-ID download (when no ID exists) or builds the dimming licence-agreement overlay.
(void) - errorIDDownload:msgStr:
 Editor-ID download failure: builds the dimming overlay and shows the error label.
(void) - successIDDownload:
 Editor-ID download success: clears the manager and builds the dimming licence-agreement overlay.
(void) - loadView
 Builds the modal cover view and the StoreDialogView progress overlay, sized for the device idiom.
(void) - storeEnd:
 Tells the root view controller to end the store.
(void) - showModalDialog:
 Fades the modal cover view in and re-enables the dialog's abort button once visible.
(void) - hideModalDialog
 Fades the modal cover view out, stops the spinner, and unmounts it.
(void) - startDownloadMusics:
 Registers the pack's tunes with the music-list manager, then downloads any missing tune and extension files through a StoreDownloadManager .
(void) - startDownloadExtendMusics:
 Registers the pack's extension tunes with the music-list manager, then downloads the missing extension files.
(void) - performRestore:
 Presents the restore-confirmation alert.
(void) - detailViewStartRedownload:
 Records the pack as the redownload target and presents the already-purchased alert.
(BOOL) - checkAttainLimitPurchase:
 Reports whether the pack's price would exceed the monthly purchase limit, presenting the age-selection or limit-exceeded alert when it would.
(void) - detailViewStartPurchase:
 Begins a pack purchase: guards purchasability, checks the spend limit, shows the modal dialog, and starts the purchase manager.
(void) - detailViewStartExtendDownload:
 Records the pack, shows the modal dialog, and downloads its extension tunes.
(void) - purchaseSucceeded:
 Purchase-manager success: clears the delegate, refreshes the purchased list where shown, and downloads the purchased pack's tunes.
(void) - purchaseFailed:error:
 Purchase-manager failure: hides the dialog, refreshes the purchase state on a receipt error, and presents the appropriate error alert.
(void) - restoreSucceeded
 Restore success: clears the delegate, hides the dialog, and shows the restore-complete alert.
(void) - restoreFailed:
 Restore failure: clears the delegate, hides the dialog, and shows the restore-cancel error alert.
(void) - restoreNothing
 Restore with nothing to restore: clears the delegate, hides the dialog, and shows the nothing-to-restore alert.
(void) - firstRestore
 Shows the processing dialog and begins a purchase restore.
(void) - alertSelect:
 Alert-button callback: drives restore, purchase, download, age registration, and mission-check flows keyed by the alert tag and tapped button.
(void) - storeDialogCancel:
 Store-dialog abort: cancels the download manager, hides the dialog, and refreshes the purchase state.
(void) - downloadManagerStartTask:
 Download-manager task start: updates the dialog's message with the current file name.
(void) - downloadManagerCompleted:
 Download-manager completion: drops the manager and hides the dialog.
(void) - downloadManagerFailed:
 Download-manager failure: refreshes the purchase state, hides the dialog, and shows the download-error alert.
(void) - downloadManagerProceed:
 Download-manager progress: updates the dialog's progress bar.
(void) - openDetail:
 Closes any alert, opens the main tab's detail for the pack, and selects the main tab.
(void) - openCampaignDetail:
 Closes any alert, opens the campaign tab's detail, and selects the campaign tab.
(void) - storeClose
 Closes every tab's store session and any open alert.
(void) - becomeCoverView
 Fades the user-policy overlay in.
(void) - resignCoverView
 Fades the user-policy overlay out.
(void) - dispErrorLabel:
 Builds a centred error label on the user-policy overlay and fades the overlay in.
(void) - agreementSuccess:
 Licence-agreement success: registers the user's total purchase or age through a signed session download.
(void) - downloaderFinished:
 Session-download completion: drives the age, total-purchase, and mission-check flows keyed by the request tag and response status.
(void) - downloaderError:
 Session-download failure: shows the tag-specific error alert, or an error label on the overlay.
(void) - agreementFailed:
 Licence-agreement failure: fades the agreement view out and ends the store.
(void) - becomePolicyAgreement:
 Licence-agreement acceptance-in-progress: fades the user-policy overlay in.
(void) - agreementError:msgStr:
 Licence-agreement error: builds a centred error label on the overlay and fades it in.
(void) - createStoreMissionDownloader
 Builds the mission-achievement-check session downloader from the selected mission sheet's unclaimed challenge missions.
(void) - didReceiveMemoryWarning
 Chains to super; the override adds nothing of its own.
(void) - viewWillAppear:
 The view is about to appear.
(void) - viewDidAppear:
 The view has appeared.
(void) - viewWillDisappear:
 The view is about to disappear.
(void) - viewDidDisappear:
 The view has disappeared.
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Whether the screen may rotate to an orientation.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The orientations the screen supports.
(BOOL) - shouldAutorotate
 Whether the screen rotates.
Instance Methods inherited from <AlertViewManagerDelegate>
(void) - alertClose:
 Sent when a UIAlertController -based alert finishes dismissing.
Instance Methods inherited from <StoreDownloadManagerDelegate>
(void) - downloadManagerStartTask:
 A task has started.
(void) - downloadManagerProceed:
 The current task made progress.
(void) - downloadManagerCompleted:
 All tasks completed.
(void) - downloadManagerFailed:
 A task failed.
Instance Methods inherited from <PurchaseManagerDelegate>
(void) - purchaseFailed:error:
 A purchase failed.
(void) - purchaseSucceeded:
 A purchase was verified.

Properties

NSDictionary * startupParameters
 The parameters that seed the initial pack, genre, or campaign to open.
StoreDialogView * modalDialog
 The shared progress-and-abort modal overlay.
Properties inherited from <StoreParentViewController>
StoreDialogView * modalDialog
 The shared modal progress/download dialog panel, or nil before it is built.

Detailed Description

The store's four-tab container and shared purchase/restore/download coordinator.

Method Documentation

◆ agreementError:msgStr:

- (void) agreementError: (nullable id) agreement
msgStr: (nullable NSString *) msgStr 

Licence-agreement error: builds a centred error label on the overlay and fades it in.

Parameters
agreementThe agreement view.
msgStrThe error message; the localised network-error message is substituted when nil.
Ghidra address:
0xf8670

◆ agreementFailed:

- (void) agreementFailed: (nullable id) agreement

Licence-agreement failure: fades the agreement view out and ends the store.

Parameters
agreementThe agreement view.
Ghidra address:
0xf84ac

◆ agreementSuccess:

- (void) agreementSuccess: (nullable id) agreement

Licence-agreement success: registers the user's total purchase or age through a signed session download.

Parameters
agreementThe agreement view.
Ghidra address:
0xf75a4

◆ alertSelect:

- (void) alertSelect: (nonnull NSDictionary *) info

Alert-button callback: drives restore, purchase, download, age registration, and mission-check flows keyed by the alert tag and tapped button.

Parameters
infoThe alert result dictionary carrying "btnMessage" and "Tag".
Ghidra address:
0xf5f58

Reimplemented from <AlertViewManagerDelegate>.

◆ becomeCoverView

- (void) becomeCoverView

Fades the user-policy overlay in.

Ghidra address:
0xf70c4
Ghidra address:
0xf71c0
Ghidra address:
0xf720c

◆ becomePolicyAgreement:

- (void) becomePolicyAgreement: (nullable id) agreement

Licence-agreement acceptance-in-progress: fades the user-policy overlay in.

Parameters
agreementThe agreement view.
Ghidra address:
0xf8664

◆ checkAttainLimitPurchase:

- (BOOL) checkAttainLimitPurchase: (nullable SKProduct *) product

Reports whether the pack's price would exceed the monthly purchase limit, presenting the age-selection or limit-exceeded alert when it would.

Parameters
productThe StoreKit product being purchased.
Returns
YES when the purchase is blocked by the limit, NO when it may proceed.
Ghidra address:
0xf4920

◆ createStoreMissionDownloader

- (void) createStoreMissionDownloader

Builds the mission-achievement-check session downloader from the selected mission sheet's unclaimed challenge missions.

Ghidra address:
0xf88e8

◆ detailViewStartExtendDownload:

- (void) detailViewStartExtendDownload: (nullable StorePackInfo *) packInfo

Records the pack, shows the modal dialog, and downloads its extension tunes.

Parameters
packInfoThe pack whose extensions to download.
Ghidra address:
0xf507c

Reimplemented from <StoreDetailViewControllerDelegate>.

◆ detailViewStartPurchase:

- (void) detailViewStartPurchase: (nullable StorePackInfo *) packInfo

Begins a pack purchase: guards purchasability, checks the spend limit, shows the modal dialog, and starts the purchase manager.

Parameters
packInfoThe pack to purchase.
Ghidra address:
0xf4c9c

Reimplemented from <StoreDetailViewControllerDelegate>.

◆ detailViewStartRedownload:

- (void) detailViewStartRedownload: (nullable StorePackInfo *) packInfo

Records the pack as the redownload target and presents the already-purchased alert.

Parameters
packInfoThe pack to redownload.
Ghidra address:
0xf4690

Reimplemented from <StoreDetailViewControllerDelegate>.

◆ didReceiveMemoryWarning

- (void) didReceiveMemoryWarning

Chains to super; the override adds nothing of its own.

Ghidra address:
0xf8d3c

◆ dispErrorLabel:

- (void) dispErrorLabel: (nullable NSString *) message

Builds a centred error label on the user-policy overlay and fades the overlay in.

Parameters
messageThe error text; the localised network-error message is substituted when nil.
Ghidra address:
0xf732c

◆ downloaderError:

- (void) downloaderError: (nullable id) downloader

Session-download failure: shows the tag-specific error alert, or an error label on the overlay.

Parameters
downloaderThe failed request.
Ghidra address:
0xf7fc0

◆ downloaderFinished:

- (void) downloaderFinished: (nullable id) downloader

Session-download completion: drives the age, total-purchase, and mission-check flows keyed by the request tag and response status.

Parameters
downloaderThe finished request.
Ghidra address:
0xf7878

◆ downloadManagerCompleted:

- (void) downloadManagerCompleted: (nullable id) manager

Download-manager completion: drops the manager and hides the dialog.

Parameters
managerThe download manager.
Ghidra address:
0xf6a58

◆ downloadManagerFailed:

- (void) downloadManagerFailed: (nullable id) manager

Download-manager failure: refreshes the purchase state, hides the dialog, and shows the download-error alert.

Parameters
managerThe download manager.
Ghidra address:
0xf6a94

◆ downloadManagerProceed:

- (void) downloadManagerProceed: (nullable id) manager

Download-manager progress: updates the dialog's progress bar.

Parameters
managerThe download manager.
Ghidra address:
0xf6d00

◆ downloadManagerStartTask:

- (void) downloadManagerStartTask: (nullable id) manager

Download-manager task start: updates the dialog's message with the current file name.

Parameters
managerThe download manager.
Ghidra address:
0xf67cc

◆ errorIDDownload:msgStr:

- (void) errorIDDownload: (nullable id) manager
msgStr: (nullable NSString *) msgStr 

Editor-ID download failure: builds the dimming overlay and shows the error label.

Parameters
managerThe editor-ID manager.
msgStrThe error message; the localised network-error message is substituted when nil or empty.
Ghidra address:
0xf2404

Reimplemented from <EditorIDManagerDelegate>.

◆ firstRestore

- (void) firstRestore

Shows the processing dialog and begins a purchase restore.

Ghidra address:
0xf5dd0

Reimplemented from <StoreParentViewController>.

◆ firstStoreItemLoad

- (void) firstStoreItemLoad

Opens the main tab on its startup pack or genre, and the campaign tab on its startup campaign, from the startup parameters.

Ghidra address:
0xf1f88

◆ hideModalDialog

- (void) hideModalDialog

Fades the modal cover view out, stops the spinner, and unmounts it.

Ghidra address:
0xf3060
Ghidra address:
0xf3270
Ghidra address:
0xf32bc

Reimplemented from <StoreParentViewController>.

◆ init

- (instancetype) init

Builds the four tabs, each wrapped in a non-translucent navigation controller.

Returns
The initialised controller.
Ghidra address:
0xf1ba0
Ghidra address:
0xf1ba0

◆ loadInitialStoreInfo

- (void) loadInitialStoreInfo

Resumes interaction, then either starts the editor-ID download (when no ID exists) or builds the dimming licence-agreement overlay.

Ghidra address:
0xf212c

◆ loadView

- (void) loadView

Builds the modal cover view and the StoreDialogView progress overlay, sized for the device idiom.

Ghidra address:
0xf28a8

◆ openCampaignDetail:

- (void) openCampaignDetail: (nullable NSNumber *) campaignID

Closes any alert, opens the campaign tab's detail, and selects the campaign tab.

Parameters
campaignIDThe campaign identifier, boxed in an NSNumber .
Ghidra address:
0xf6ed4

◆ openDetail:

- (void) openDetail: (nullable NSNumber *) packID

Closes any alert, opens the main tab's detail for the pack, and selects the main tab.

Parameters
packIDThe pack identifier, boxed in an NSNumber .
Ghidra address:
0xf6d88

Reimplemented from <StoreParentViewController>.

◆ performRestore:

- (void) performRestore: (nullable id) sender

Presents the restore-confirmation alert.

Parameters
senderThe sender; unused.
Ghidra address:
0xf4444

◆ purchaseFailed:error:

- (void) purchaseFailed: (nullable NSString *) productID
error: (nullable NSError *) error 

Purchase-manager failure: hides the dialog, refreshes the purchase state on a receipt error, and presents the appropriate error alert.

Parameters
productIDThe product identifier that failed.
errorThe failure.
Ghidra address:
0xf5214

◆ purchaseSucceeded:

- (void) purchaseSucceeded: (nullable NSString *) productID

Purchase-manager success: clears the delegate, refreshes the purchased list where shown, and downloads the purchased pack's tunes.

Parameters
productIDThe purchased product identifier.
Ghidra address:
0xf5104

◆ resignCoverView

- (void) resignCoverView

Fades the user-policy overlay out.

Ghidra address:
0xf7210
Ghidra address:
0xf72dc
Ghidra address:
0xf7328

◆ restoreFailed:

- (void) restoreFailed: (nullable NSError *) error

Restore failure: clears the delegate, hides the dialog, and shows the restore-cancel error alert.

Parameters
errorThe failure.
Ghidra address:
0xf5990

◆ restoreNothing

- (void) restoreNothing

Restore with nothing to restore: clears the delegate, hides the dialog, and shows the nothing-to-restore alert.

Ghidra address:
0xf5bec

Reimplemented from <PurchaseManagerDelegate>.

◆ restoreSucceeded

- (void) restoreSucceeded

Restore success: clears the delegate, hides the dialog, and shows the restore-complete alert.

Ghidra address:
0xf5794

Reimplemented from <PurchaseManagerDelegate>.

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the screen rotates.

Returns
Always YES.
Ghidra address:
0xf8e6c
Ghidra address:
0xf8e6c

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Whether the screen may rotate to an orientation.

Parameters
interfaceOrientationThe orientation asked about.
Returns
YES for the two portrait orientations, NO otherwise.
Ghidra address:
0xf8e54
Ghidra address:
0xf8e54

◆ showModalDialog:

- (void) showModalDialog: (nullable id) delegate

Fades the modal cover view in and re-enables the dialog's abort button once visible.

Parameters
delegateThe dialog's abort delegate.
Ghidra address:
0xf2d0c

Reimplemented from <StoreParentViewController>.

◆ startDownloadExtendMusics:

- (void) startDownloadExtendMusics: (int) packID

Registers the pack's extension tunes with the music-list manager, then downloads the missing extension files.

Parameters
packIDThe pack whose extensions to download.
Ghidra address:
0xf3cd4
Ghidra address:
0xf3cd4

◆ startDownloadMusics:

- (void) startDownloadMusics: (int) packID

Registers the pack's tunes with the music-list manager, then downloads any missing tune and extension files through a StoreDownloadManager .

Parameters
packIDThe pack whose purchase state to refresh once queued.
Ghidra address:
0xf3398
Ghidra address:
0xf3398

◆ storeClose

- (void) storeClose

Closes every tab's store session and any open alert.

Ghidra address:
0xf7020

◆ storeDialogCancel:

- (void) storeDialogCancel: (nullable id) dialogView

Store-dialog abort: cancels the download manager, hides the dialog, and refreshes the purchase state.

Parameters
dialogViewThe aborted dialog.
Ghidra address:
0xf66b0

◆ storeEnd:

- (void) storeEnd: (nullable id) sender

Tells the root view controller to end the store.

Parameters
senderThe sender; unused.
Ghidra address:
0xf2ca4

Reimplemented from <StoreParentViewController>.

◆ successIDDownload:

- (void) successIDDownload: (nullable id) manager

Editor-ID download success: clears the manager and builds the dimming licence-agreement overlay.

Parameters
managerThe editor-ID manager.
Ghidra address:
0xf2640

Reimplemented from <EditorIDManagerDelegate>.

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The orientations the screen supports.

Returns
Both portrait orientations.
Ghidra address:
0xf8e64
Ghidra address:
0xf8e64

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

The view has appeared.

Parameters
animatedWhether the appearance was animated.
Ghidra address:
0xf8dac
Ghidra address:
0xf8dac

◆ viewDidDisappear:

- (void) viewDidDisappear: (BOOL) animated

The view has disappeared.

Parameters
animatedWhether the disappearance was animated.
Ghidra address:
0xf8e1c
Ghidra address:
0xf8e1c

◆ viewWillAppear:

- (void) viewWillAppear: (BOOL) animated

The view is about to appear.

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0xf8d74
Ghidra address:
0xf8d74

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

The view is about to disappear.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0xf8de4
Ghidra address:
0xf8de4

Property Documentation

◆ modalDialog

- (StoreDialogView*) modalDialog
readnonatomicassign

The shared progress-and-abort modal overlay.

Ghidra address:
0xf8ed0 (getter)

◆ startupParameters

- (NSDictionary*) startupParameters
readwritenonatomicstrong

The parameters that seed the initial pack, genre, or campaign to open.

Ghidra address:
0xf8eac (getter)
Ghidra address:
0xf8ebc (setter)

The documentation for this class was generated from the following files: