|
JubeatPlus 3.9.11
|
The store's root tab container and shared purchase, download, and agreement coordinator. More...
#include <StoreViewController.h>


Instance Methods | |
| (instancetype) | - init |
| Builds the four child controllers, wraps each in a navigation controller, and installs them as the tab bar's view controllers. | |
| (void) | - firstStoreItemLoad |
| Reads the startup parameters and opens the deep-linked genre or pack (and, when present, a campaign) in the appropriate child tab. | |
| (void) | - loadInitialStoreInfo |
| Re-enables interaction and either provisions a missing editor id or builds the licence-agreement gate over the store. | |
| (void) | - loadView |
| Builds the tab container's view, the dimming cover, and the modal dialog sized for the device idiom. | |
| (void) | - storeEnd: |
| Closes the pack browser and asks the root controller to end the store. | |
| (void) | - showModalDialog: |
| Fades the dimming cover and modal dialog in, starting the spinner and enabling the abort button on completion. | |
| (void) | - hideModalDialog |
| Fades the dimming cover and modal dialog out, stopping the spinner and unmounting the dialog on completion. | |
| (void) | - startDownloadMusics: |
| Registers a purchased pack's tunes with the music-list manager and downloads any tune files not already present, driving the modal dialog's progress. | |
| (void) | - startDownloadExtendMusics: |
| Registers a pack's extend tunes and downloads any extend files not already present, driving the modal dialog's progress. | |
| (void) | - performRestore: |
| Raises the "restore purchases?" confirmation alert. | |
| (void) | - detailViewStartRedownload: |
| Child redownload callback: records the pack and raises the "already purchased, download?" confirmation alert. | |
| (BOOL) | - checkAttainLimitPurchase: |
| Whether buying a product would exceed the player's purchase limit, raising the appropriate age-registration or limit-reached alert when it does. | |
| (void) | - detailViewStartPurchase: |
| Child purchase callback: records the pack and, unless it is unpurchasable or over the limit, shows the modal dialog and begins the purchase. | |
| (void) | - detailViewStartExtendDownload: |
| Child extend-download callback: shows the modal dialog and downloads the pack's extend files. | |
| (void) | - purchaseSucceeded: |
| A purchase completed: starts the pack's download and refreshes the purchased and campaign-unlock lists. | |
| (void) | - purchaseFailed:error: |
| A purchase failed: hides the modal dialog and shows the failure or cancellation message. | |
| (void) | - restoreSucceeded |
| A restore completed: clears the purchase delegate, hides the dialog, and shows the restore-complete alert. | |
| (void) | - restoreFailed: |
| A restore failed: clears the purchase delegate, hides the dialog, and shows the message. | |
| (void) | - restoreNothing |
| A restore found nothing to restore: hides the dialog and tells the player. | |
| (void) | - firstRestore |
| Shows the modal dialog and begins a purchase restore. | |
| (void) | - alertSelect: |
| An alert button was tapped: acts on the alert identified by the info dictionary's tag. | |
| (void) | - storeDialogCancel: |
| The modal dialog's abort button was pressed: cancels the download and updates the pack's purchase state. | |
| (void) | - downloadManagerStartTask: |
| A download task started: shows the downloading tune's name in the modal dialog. | |
| (void) | - downloadManagerCompleted: |
| The download queue completed: drops the manager and hides the modal dialog. | |
| (void) | - downloadManagerFailed: |
| The download queue failed: drops the manager and updates the pack's purchase state. | |
| (void) | - downloadManagerProceed: |
| A download task made progress: drives the modal dialog's progress bar. | |
| (void) | - openDetail: |
| Closes any open alert, opens the pack browser's detail for a pack, and switches to the store tab. | |
| (void) | - openCampaignDetail: |
| Closes any open alert, opens the campaign page's detail for a campaign, and switches to the campaign tab. | |
| (void) | - storeClose |
| Closes every child's store view and any open alert. | |
| (void) | - becomeCoverView |
| Fades the licence-agreement cover in. | |
| (void) | - resignCoverView |
| Fades the licence-agreement cover out. | |
| (void) | - dispErrorLabel: |
| Adds a centred error label to the licence-agreement cover and fades the cover in. | |
| (void) | - agreementSuccess: |
| Licence-agreement success: registers the player's total purchase or age limit through a signed session request. | |
| (void) | - agreementFailed: |
| Licence-agreement fade-out failure: fades the agreement view out and ends the store. | |
| (void) | - becomePolicyAgreement: |
| Licence-agreement gate raised: fades the cover in. | |
| (void) | - agreementError:msgStr: |
| Licence-agreement error: adds a centred error label to the cover and fades it in. | |
| (void) | - downloaderFinished: |
| A request finished: dispatches on the downloader's tag to handle its JSON response. | |
| (void) | - downloaderError: |
| A request failed: alerts the player when it was the mission-achievement check. | |
| (void) | - successIDDownload: |
| The editor identity downloaded: drops the manager and builds the store's child screens. | |
| (void) | - errorIDDownload:msgStr: |
| The editor-identity download failed: shows the message to the player. | |
| (void) | - createStoreMissionDownloader |
| Builds the mission-achievement-check session downloader for the challenge missions that are unlocked-by-purchase and not yet cleared, when challenge mode is on. | |
| (void) | - didReceiveMemoryWarning |
| Handles a low-memory warning. | |
| (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 <PurchaseManagerDelegate> | |
| (void) | - purchaseFailed:error: |
| A purchase failed. | |
| (void) | - purchaseSucceeded: |
| A purchase was verified. | |
| Instance Methods inherited from <AlertViewManagerDelegate> | |
| (void) | - alertClose: |
Sent when a UIAlertController -based alert finishes dismissing. | |
| Instance Methods inherited from <StoreDialogViewDelegate> | |
| (void) | - storeDialogCancel: |
| Sent when the abort button is pressed. | |
| Instance Methods inherited from <DownloaderDelegate> | |
| (void) | - downloaderProceed: |
| Sent periodically as data arrives, and once more on completion. | |
| (void) | - downloaderFinished: |
| Sent when the request completes. | |
| (void) | - downloaderError: |
| Sent when the request fails. | |
| Instance Methods inherited from <StoreParentViewController> | |
| (void) | - showModalDialog: |
| Shows the modal download dialog over the given sender. | |
| Instance Methods inherited from <StoreDetailViewControllerDelegate> | |
| (void) | - detailViewStartPurchase: |
| Sent when the purchase button is tapped for a pack that is not yet owned. | |
| (void) | - detailViewStartRedownload: |
| Sent when the purchase button is tapped for an owned pack that must be redownloaded. | |
Properties | |
| NSDictionary * | startupParameters |
| The deep-link parameters used to pre-open a genre, pack, or campaign. | |
| StoreDialogView * | modalDialog |
| The shared modal progress panel behind the dimming cover. | |
| Properties inherited from <StoreParentViewController> | |
| StoreDialogView * | modalDialog |
The shared modal progress/download dialog panel, or nil before it is built. | |
The store's root tab container and shared purchase, download, and agreement coordinator.
| - (void) agreementError: | (nullable id) | sender | |
| msgStr: | (nullable NSString *) | msg |
Licence-agreement error: adds a centred error label to the cover and fades it in.
| sender | The agreement view; unused. |
| msg | The error message; a localised network-error message is substituted when nil . |
| - (void) agreementFailed: | (nullable id) | sender |
Licence-agreement fade-out failure: fades the agreement view out and ends the store.
| sender | The agreement view. |
| - (void) agreementSuccess: | (nullable id) | sender |
Licence-agreement success: registers the player's total purchase or age limit through a signed session request.
| sender | The agreement view; unused. |
| - (void) alertSelect: | (nonnull NSDictionary *) | info |
An alert button was tapped: acts on the alert identified by the info dictionary's tag.
| info | The alert's result, carrying the tapped button and the alert's tag. |
Reimplemented from <AlertViewManagerDelegate>.
| - (void) becomeCoverView |
Fades the licence-agreement cover in.
| - (void) becomePolicyAgreement: | (nullable id) | sender |
Licence-agreement gate raised: fades the cover in.
| sender | The agreement view; unused. |
| - (BOOL) checkAttainLimitPurchase: | (nullable SKProduct *) | product |
Whether buying a product would exceed the player's purchase limit, raising the appropriate age-registration or limit-reached alert when it does.
| product | The StoreKit product about to be purchased. |
YES when the limit alert was raised, NO when the purchase may proceed. | - (void) createStoreMissionDownloader |
Builds the mission-achievement-check session downloader for the challenge missions that are unlocked-by-purchase and not yet cleared, when challenge mode is on.
| - (void) detailViewStartExtendDownload: | (nullable StorePackInfo *) | packInfo |
Child extend-download callback: shows the modal dialog and downloads the pack's extend files.
| packInfo | The pack being extended. |
Reimplemented from <StoreDetailViewControllerDelegate>.
| - (void) detailViewStartPurchase: | (nullable StoreDetailViewControllerV2 *) | packInfo |
Child purchase callback: records the pack and, unless it is unpurchasable or over the limit, shows the modal dialog and begins the purchase.
| packInfo | The detail controller reporting the purchase. |
| - (void) detailViewStartRedownload: | (nullable StoreDetailViewControllerV2 *) | packInfo |
Child redownload callback: records the pack and raises the "already purchased, download?" confirmation alert.
| packInfo | The detail controller reporting the redownload. |
| - (void) didReceiveMemoryWarning |
Handles a low-memory warning.
| - (void) dispErrorLabel: | (nullable NSString *) | msg |
Adds a centred error label to the licence-agreement cover and fades the cover in.
| msg | The message; a localised network-error message is substituted when nil . |
| - (void) downloaderError: | (nullable id) | downloader |
A request failed: alerts the player when it was the mission-achievement check.
| downloader | The downloader reporting the failure. |
| - (void) downloaderFinished: | (nullable id) | downloader |
A request finished: dispatches on the downloader's tag to handle its JSON response.
| downloader | The downloader reporting the result. |
| - (void) downloadManagerCompleted: | (nonnull StoreDownloadManager *) | manager |
The download queue completed: drops the manager and hides the modal dialog.
| manager | The download manager reporting completion. |
Reimplemented from <StoreDownloadManagerDelegate>.
| - (void) downloadManagerFailed: | (nonnull StoreDownloadManager *) | manager |
The download queue failed: drops the manager and updates the pack's purchase state.
| manager | The download manager reporting the failure. |
Reimplemented from <StoreDownloadManagerDelegate>.
| - (void) downloadManagerProceed: | (nonnull StoreDownloadManager *) | manager |
A download task made progress: drives the modal dialog's progress bar.
| manager | The download manager reporting progress. |
Reimplemented from <StoreDownloadManagerDelegate>.
| - (void) downloadManagerStartTask: | (nonnull StoreDownloadManager *) | manager |
A download task started: shows the downloading tune's name in the modal dialog.
| manager | The download manager reporting the task. |
Reimplemented from <StoreDownloadManagerDelegate>.
| - (void) errorIDDownload: | (nullable id) | manager | |
| msgStr: | (nullable NSString *) | msg |
The editor-identity download failed: shows the message to the player.
| manager | The editor-ID manager reporting the failure. |
| msg | The message to show; the default network-error text when nil or empty. |
Reimplemented from <EditorIDManagerDelegate>.
| - (void) firstRestore |
Shows the modal dialog and begins a purchase restore.
Reimplemented from <StoreParentViewController>.
| - (void) firstStoreItemLoad |
Reads the startup parameters and opens the deep-linked genre or pack (and, when present, a campaign) in the appropriate child tab.
| - (void) hideModalDialog |
Fades the dimming cover and modal dialog out, stopping the spinner and unmounting the dialog on completion.
Reimplemented from <StoreParentViewController>.
| - (instancetype) init |
Builds the four child controllers, wraps each in a navigation controller, and installs them as the tab bar's view controllers.
| - (void) loadInitialStoreInfo |
Re-enables interaction and either provisions a missing editor id or builds the licence-agreement gate over the store.
| - (void) loadView |
Builds the tab container's view, the dimming cover, and the modal dialog sized for the device idiom.
| - (void) openCampaignDetail: | (nullable NSNumber *) | campaignID |
Closes any open alert, opens the campaign page's detail for a campaign, and switches to the campaign tab.
| campaignID | The campaign identifier, boxed. |
| - (void) openDetail: | (nullable NSNumber *) | packID |
Closes any open alert, opens the pack browser's detail for a pack, and switches to the store tab.
| packID | The pack identifier, boxed. |
Reimplemented from <StoreParentViewController>.
| - (void) performRestore: | (nullable id) | sender |
Raises the "restore purchases?" confirmation alert.
| sender | The sender; unused. |
| - (void) purchaseFailed: | (nullable NSString *) | productID | |
| error: | (nullable NSError *) | error |
A purchase failed: hides the modal dialog and shows the failure or cancellation message.
| productID | The product that failed. |
| error | The failure, distinguishing a cancellation from a genuine error by its domain. |
| - (void) purchaseSucceeded: | (nullable NSString *) | productID |
A purchase completed: starts the pack's download and refreshes the purchased and campaign-unlock lists.
| productID | The purchased product's identifier, mapped to a pack ID to download. |
| - (void) resignCoverView |
Fades the licence-agreement cover out.
| - (void) restoreFailed: | (nullable NSError *) | error |
A restore failed: clears the purchase delegate, hides the dialog, and shows the message.
| error | The failure, distinguishing a cancellation from a genuine error. |
| - (void) restoreNothing |
A restore found nothing to restore: hides the dialog and tells the player.
Reimplemented from <PurchaseManagerDelegate>.
| - (void) restoreSucceeded |
A restore completed: clears the purchase delegate, hides the dialog, and shows the restore-complete alert.
The lists refresh when that alert is dismissed.
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< StoreDialogViewDelegate >) | delegate |
Fades the dimming cover and modal dialog in, starting the spinner and enabling the abort button on completion.
| delegate | The object told when the panel's abort button is pressed. |
| - (void) startDownloadExtendMusics: | (int) | packID |
Registers a pack's extend tunes and downloads any extend files not already present, driving the modal dialog's progress.
| packID | The pack identifier being extended. |
| - (void) startDownloadMusics: | (int) | packID |
Registers a purchased pack's tunes with the music-list manager and downloads any tune files not already present, driving the modal dialog's progress.
| packID | The purchased pack identifier. |
| - (void) storeClose |
Closes every child's store view and any open alert.
| - (void) storeDialogCancel: | (nullable id) | dialogView |
The modal dialog's abort button was pressed: cancels the download and updates the pack's purchase state.
| dialogView | The dialog whose abort button was pressed. |
| - (void) storeEnd: | (nullable id) | sender |
Closes the pack browser and asks the root controller to end the store.
| sender | The sender; unused. |
Reimplemented from <StoreParentViewController>.
| - (void) successIDDownload: | (nullable id) | manager |
The editor identity downloaded: drops the manager and builds the store's child screens.
| manager | The editor-ID manager reporting the result. |
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. |
|
readnonatomicstrong |
The shared modal progress panel behind the dimming cover.
|
readwritenonatomicstrong |
The deep-link parameters used to pre-open a genre, pack, or campaign.
Held strongly.