|
JubeatPlus 3.9.11
|
The store's four-tab container and shared purchase/restore/download coordinator. More...
#include <StoreViewControllerV2.h>


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. | |
The store's four-tab container and shared purchase/restore/download coordinator.
| - (void) agreementError: | (nullable id) | agreement | |
| msgStr: | (nullable NSString *) | msgStr |
Licence-agreement error: builds a centred error label on the overlay and fades it in.
| agreement | The agreement view. |
| msgStr | The error message; the localised network-error message is substituted when nil. |
| - (void) agreementFailed: | (nullable id) | agreement |
Licence-agreement failure: fades the agreement view out and ends the store.
| agreement | The agreement view. |
| - (void) agreementSuccess: | (nullable id) | agreement |
Licence-agreement success: registers the user's total purchase or age through a signed session download.
| agreement | The agreement view. |
| - (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.
| info | The alert result dictionary carrying "btnMessage" and "Tag". |
Reimplemented from <AlertViewManagerDelegate>.
| - (void) becomeCoverView |
Fades the user-policy overlay in.
| - (void) becomePolicyAgreement: | (nullable id) | agreement |
Licence-agreement acceptance-in-progress: fades the user-policy overlay in.
| agreement | The agreement view. |
| - (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.
| product | The StoreKit product being purchased. |
YES when the purchase is blocked by the limit, NO when it may proceed. | - (void) createStoreMissionDownloader |
Builds the mission-achievement-check session downloader from the selected mission sheet's unclaimed challenge missions.
| - (void) detailViewStartExtendDownload: | (nullable StorePackInfo *) | packInfo |
Records the pack, shows the modal dialog, and downloads its extension tunes.
| packInfo | The pack whose extensions to download. |
Reimplemented from <StoreDetailViewControllerDelegate>.
| - (void) detailViewStartPurchase: | (nullable StorePackInfo *) | packInfo |
Begins a pack purchase: guards purchasability, checks the spend limit, shows the modal dialog, and starts the purchase manager.
| packInfo | The pack to purchase. |
Reimplemented from <StoreDetailViewControllerDelegate>.
| - (void) detailViewStartRedownload: | (nullable StorePackInfo *) | packInfo |
Records the pack as the redownload target and presents the already-purchased alert.
| packInfo | The pack to redownload. |
Reimplemented from <StoreDetailViewControllerDelegate>.
| - (void) didReceiveMemoryWarning |
Chains to super; the override adds nothing of its own.
| - (void) dispErrorLabel: | (nullable NSString *) | message |
Builds a centred error label on the user-policy overlay and fades the overlay in.
| message | The error text; the localised network-error message is substituted when nil. |
| - (void) downloaderError: | (nullable id) | downloader |
Session-download failure: shows the tag-specific error alert, or an error label on the overlay.
| downloader | The failed request. |
| - (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.
| downloader | The finished request. |
| - (void) downloadManagerCompleted: | (nullable id) | manager |
Download-manager completion: drops the manager and hides the dialog.
| manager | The download manager. |
| - (void) downloadManagerFailed: | (nullable id) | manager |
Download-manager failure: refreshes the purchase state, hides the dialog, and shows the download-error alert.
| manager | The download manager. |
| - (void) downloadManagerProceed: | (nullable id) | manager |
Download-manager progress: updates the dialog's progress bar.
| manager | The download manager. |
| - (void) downloadManagerStartTask: | (nullable id) | manager |
Download-manager task start: updates the dialog's message with the current file name.
| manager | The download manager. |
| - (void) errorIDDownload: | (nullable id) | manager | |
| msgStr: | (nullable NSString *) | msgStr |
Editor-ID download failure: builds the dimming overlay and shows the error label.
| manager | The editor-ID manager. |
| msgStr | The error message; the localised network-error message is substituted when nil or empty. |
Reimplemented from <EditorIDManagerDelegate>.
| - (void) firstRestore |
Shows the processing dialog and begins a purchase restore.
Reimplemented from <StoreParentViewController>.
| - (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) hideModalDialog |
Fades the modal cover view out, stops the spinner, and unmounts it.
Reimplemented from <StoreParentViewController>.
| - (instancetype) init |
Builds the four tabs, each wrapped in a non-translucent navigation controller.
| - (void) loadInitialStoreInfo |
Resumes interaction, then either starts the editor-ID download (when no ID exists) or builds the dimming licence-agreement overlay.
| - (void) loadView |
Builds the modal cover view and the StoreDialogView progress overlay, sized for the device idiom.
| - (void) openCampaignDetail: | (nullable NSNumber *) | campaignID |
Closes any alert, opens the campaign tab's detail, and selects the campaign tab.
| campaignID | The campaign identifier, boxed in an NSNumber . |
| - (void) openDetail: | (nullable NSNumber *) | packID |
Closes any alert, opens the main tab's detail for the pack, and selects the main tab.
| packID | The pack identifier, boxed in an NSNumber . |
Reimplemented from <StoreParentViewController>.
| - (void) performRestore: | (nullable id) | sender |
Presents the restore-confirmation alert.
| sender | The sender; unused. |
| - (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.
| productID | The product identifier that failed. |
| error | The failure. |
| - (void) purchaseSucceeded: | (nullable NSString *) | productID |
Purchase-manager success: clears the delegate, refreshes the purchased list where shown, and downloads the purchased pack's tunes.
| productID | The purchased product identifier. |
| - (void) resignCoverView |
Fades the user-policy overlay out.
| - (void) restoreFailed: | (nullable NSError *) | error |
Restore failure: clears the delegate, hides the dialog, and shows the restore-cancel error alert.
| error | The failure. |
| - (void) restoreNothing |
Restore with nothing to restore: clears the delegate, hides the dialog, and shows the nothing-to-restore alert.
Reimplemented from <PurchaseManagerDelegate>.
| - (void) restoreSucceeded |
Restore success: clears the delegate, hides the dialog, and shows the restore-complete alert.
Reimplemented from <PurchaseManagerDelegate>.
| - (BOOL) shouldAutorotate |
Whether the screen rotates.
| - (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation |
Whether the screen may rotate to an orientation.
| interfaceOrientation | The orientation asked about. |
| - (void) showModalDialog: | (nullable id) | delegate |
Fades the modal cover view in and re-enables the dialog's abort button once visible.
| delegate | The dialog's abort delegate. |
Reimplemented from <StoreParentViewController>.
| - (void) startDownloadExtendMusics: | (int) | packID |
Registers the pack's extension tunes with the music-list manager, then downloads the missing extension files.
| packID | The pack whose extensions to download. |
| - (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 .
| packID | The pack whose purchase state to refresh once queued. |
| - (void) storeClose |
Closes every tab's store session and any open alert.
| - (void) storeDialogCancel: | (nullable id) | dialogView |
Store-dialog abort: cancels the download manager, hides the dialog, and refreshes the purchase state.
| dialogView | The aborted dialog. |
| - (void) storeEnd: | (nullable id) | sender |
Tells the root view controller to end the store.
| sender | The sender; unused. |
Reimplemented from <StoreParentViewController>.
| - (void) successIDDownload: | (nullable id) | manager |
Editor-ID download success: clears the manager and builds the dimming licence-agreement overlay.
| manager | The editor-ID manager. |
Reimplemented from <EditorIDManagerDelegate>.
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
The orientations the screen supports.
| - (void) viewDidAppear: | (BOOL) | animated |
The view has appeared.
| animated | Whether the appearance was animated. |
| - (void) viewDidDisappear: | (BOOL) | animated |
The view has disappeared.
| animated | Whether the disappearance was animated. |
| - (void) viewWillAppear: | (BOOL) | animated |
The view is about to appear.
| animated | Whether the appearance is animated. |
| - (void) viewWillDisappear: | (BOOL) | animated |
The view is about to disappear.
| animated | Whether the disappearance is animated. |
|
readnonatomicassign |
The shared progress-and-abort modal overlay.
|
readwritenonatomicstrong |
The parameters that seed the initial pack, genre, or campaign to open.