|
JubeatPlus 3.9.11
|
Lists the user's purchased packs with a restore-purchases action and a pack detail view. More...
#include <StorePurchasedViewController.h>


Instance Methods | |
| (instancetype) | - initWithParent: |
| Builds the controller for a parent store view. | |
| (void) | - resetPurchasedList |
| Clears the resolved and unresolved pack lists and the table's current genre. | |
| (void) | - startLoadPurchasedList |
| Gathers the owned and pending pack identifiers, then either shows the empty-list message or starts the catalogue fetch. | |
| (void) | - reloadPurchasedList |
| Resets and reloads the purchased-pack list from scratch. | |
| (void) | - loadView |
| Builds the view: a vertical grey gradient behind the pack table, plus the iPad detail overlay and the loading view. | |
| (void) | - updatePurchaseStateForPackID: |
| Refreshes the row for a pack whose purchase state changed. | |
| (void) | - handleTapCoverView: |
| Dismisses the iPad detail overlay: fades both overlay views out and detaches them. | |
| (void) | - startFetch |
| Fetches the next page of purchased-pack catalogue entries. | |
| (void) | - cancelFetching |
| Cancels the in-flight catalogue downloader and product request. | |
| (void) | - showError: |
| Reports an error, either in the loading view (before the table is shown) or as an alert. | |
| (void) | - storePackTableViewLoadMore |
StorePackTableView load-more callback: fetches the next page. | |
| (void) | - storePackTableViewShowDetail: |
StorePackTableView detail callback: opens a pack's detail (iPad overlay or iPhone push). | |
| (void) | - storePackDetailViewClose |
StorePackDetailView close callback: dismisses the iPad overlay. | |
| (void) | - downloaderFinished: |
| The catalogue fetch finished: resolve product identifiers and fire the product request. | |
| (void) | - downloaderError: |
| The catalogue fetch failed: show a network error. | |
| (void) | - downloaderProceed: |
| Progress callback; the shipped body is empty. | |
| (void) | - productsRequest:didReceiveResponse: |
| The product request resolved: build the pack list and reload the table. | |
| (void) | - requestDidFinish: |
| The product request finished: clears the request. | |
| (void) | - request:didFailWithError: |
| The product request failed: re-enable restore and clear the request state. | |
| (void) | - viewDidUnload |
| 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. | |
| (void) | - storeClose |
| Closes any open alert. | |
| (BOOL) | - shouldAutorotateToInterfaceOrientation: |
| Whether the screen may rotate to an orientation. | |
| (UIInterfaceOrientationMask) | - supportedInterfaceOrientations |
| The orientations the screen supports. | |
| (BOOL) | - shouldAutorotate |
| Whether the screen rotates. | |
| (void) | - dealloc |
| Cancels nothing and removes no observers; the ivars are torn down by the generated destructor. | |
Lists the user's purchased packs with a restore-purchases action and a pack detail view.
| - (void) cancelFetching |
Cancels the in-flight catalogue downloader and product request.
| - (void) dealloc |
Cancels nothing and removes no observers; the ivars are torn down by the generated destructor.
| - (void) downloaderError: | (id) | downloader |
The catalogue fetch failed: show a network error.
| downloader | The downloader reporting the failure. |
Reimplemented from <DownloaderDelegate>.
| - (void) downloaderFinished: | (id) | downloader |
The catalogue fetch finished: resolve product identifiers and fire the product request.
| downloader | The downloader reporting the result. |
Reimplemented from <DownloaderDelegate>.
| - (void) downloaderProceed: | (id) | downloader |
Progress callback; the shipped body is empty.
| downloader | The downloader reporting progress. The binary ignores it. |
Reimplemented from <DownloaderDelegate>.
| - (void) handleTapCoverView: | (nullable UITapGestureRecognizer *) | recognizer |
Dismisses the iPad detail overlay: fades both overlay views out and detaches them.
| recognizer | The tap gesture recogniser on the dimming cover (may be nil when invoked from -storePackDetailViewClose ). |
| - (instancetype) initWithParent: | (nullable id< StoreParentViewController >) | parent |
Builds the controller for a parent store view.
Sets the navigation and tab-bar titles, loads the tab image, installs a back button targeting the parent, builds the restore button in the right bar-button slot, and caches the device idiom.
| parent | The owning StoreViewController ; held weakly. |
| - (void) loadView |
Builds the view: a vertical grey gradient behind the pack table, plus the iPad detail overlay and the loading view.
| - (void) productsRequest: | (SKProductsRequest *) | request | |
| didReceiveResponse: | (SKProductsResponse *) | response |
The product request resolved: build the pack list and reload the table.
| request | The product request that resolved. |
| response | The resolved products. |
| - (void) reloadPurchasedList |
Resets and reloads the purchased-pack list from scratch.
| - (void) request: | (SKRequest *) | request | |
| didFailWithError: | (NSError *) | error |
The product request failed: re-enable restore and clear the request state.
| request | The request that failed. |
| error | The failure. |
| - (void) requestDidFinish: | (SKRequest *) | request |
The product request finished: clears the request.
| request | The request that finished. |
| - (void) resetPurchasedList |
Clears the resolved and unresolved pack lists and the table's current genre.
| - (BOOL) shouldAutorotate |
Whether the screen rotates.
| - (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation |
Whether the screen may rotate to an orientation.
| interfaceOrientation | The orientation asked about. |
| - (void) showError: | (nullable NSString *) | message |
Reports an error, either in the loading view (before the table is shown) or as an alert.
| message | The message to show; a network-error message is substituted when nil . |
| - (void) startFetch |
Fetches the next page of purchased-pack catalogue entries.
| - (void) startLoadPurchasedList |
Gathers the owned and pending pack identifiers, then either shows the empty-list message or starts the catalogue fetch.
| - (void) storeClose |
Closes any open alert.
| - (void) storePackDetailViewClose |
StorePackDetailView close callback: dismisses the iPad overlay.
| - (void) storePackTableViewLoadMore |
StorePackTableView load-more callback: fetches the next page.
| - (void) storePackTableViewShowDetail: | (nullable StorePackInfo *) | packInfo |
StorePackTableView detail callback: opens a pack's detail (iPad overlay or iPhone push).
| packInfo | The tapped pack. |
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
The orientations the screen supports.
| - (void) updatePurchaseStateForPackID: | (int) | packID |
Refreshes the row for a pack whose purchase state changed.
| packID | The pack identifier that was (re)purchased. |
| - (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) viewDidUnload |
Chains to super; the override adds nothing of its own.
| - (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. |