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

Lists the user's purchased packs with a restore-purchases action and a pack detail view. More...

#include <StorePurchasedViewController.h>

Inheritance diagram for StorePurchasedViewController:
Collaboration diagram for StorePurchasedViewController:

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.

Detailed Description

Lists the user's purchased packs with a restore-purchases action and a pack detail view.

Method Documentation

◆ cancelFetching

- (void) cancelFetching

Cancels the in-flight catalogue downloader and product request.

Ghidra address:
0x1b5c84

◆ dealloc

- (void) dealloc

Cancels nothing and removes no observers; the ivars are torn down by the generated destructor.

Ghidra address:
0x1b7374

◆ downloaderError:

- (void) downloaderError: (id) downloader

The catalogue fetch failed: show a network error.

Parameters
downloaderThe downloader reporting the failure.
Ghidra address:
0x1b69c8
Ghidra address:
0x1b69c8

Reimplemented from <DownloaderDelegate>.

◆ downloaderFinished:

- (void) downloaderFinished: (id) downloader

The catalogue fetch finished: resolve product identifiers and fire the product request.

Parameters
downloaderThe downloader reporting the result.
Ghidra address:
0x1b6414
Ghidra address:
0x1b6414

Reimplemented from <DownloaderDelegate>.

◆ downloaderProceed:

- (void) downloaderProceed: (id) downloader

Progress callback; the shipped body is empty.

Parameters
downloaderThe downloader reporting progress. The binary ignores it.
Ghidra address:
0x1b6a88
Ghidra address:
0x1b6a88

Reimplemented from <DownloaderDelegate>.

◆ handleTapCoverView:

- (void) handleTapCoverView: (nullable UITapGestureRecognizer *) recognizer

Dismisses the iPad detail overlay: fades both overlay views out and detaches them.

Parameters
recognizerThe tap gesture recogniser on the dimming cover (may be nil when invoked from -storePackDetailViewClose ).
Ghidra address:
0x1b5738

◆ initWithParent:

- (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.

Parameters
parentThe owning StoreViewController ; held weakly.
Returns
The initialised controller.
Ghidra address:
0x1b4324

◆ loadView

- (void) loadView

Builds the view: a vertical grey gradient behind the pack table, plus the iPad detail overlay and the loading view.

Ghidra address:
0x1b4dc0
Ghidra address:
0x10028fad8
Ghidra address:
0x10028faf0
Ghidra address:
0x10028e078
Ghidra address:
0x100291c30
Ghidra address:
0x100291d30
Ghidra address:
0x100291c50
Ghidra address:
0x100291d38
Ghidra address:
0x100291c58

◆ productsRequest:didReceiveResponse:

- (void) productsRequest: (SKProductsRequest *) request
didReceiveResponse: (SKProductsResponse *) response 

The product request resolved: build the pack list and reload the table.

Parameters
requestThe product request that resolved.
responseThe resolved products.
Ghidra address:
0x1b6a8c
Ghidra address:
0x1b6a8c

◆ reloadPurchasedList

- (void) reloadPurchasedList

Resets and reloads the purchased-pack list from scratch.

Ghidra address:
0x1b4d8c

◆ request:didFailWithError:

- (void) request: (SKRequest *) request
didFailWithError: (NSError *) error 

The product request failed: re-enable restore and clear the request state.

Parameters
requestThe request that failed.
errorThe failure.
Ghidra address:
0x1b6f98
Ghidra address:
0x1b6f98

◆ requestDidFinish:

- (void) requestDidFinish: (SKRequest *) request

The product request finished: clears the request.

Parameters
requestThe request that finished.
Ghidra address:
0x1b6f80
Ghidra address:
0x1b6f80

◆ resetPurchasedList

- (void) resetPurchasedList

Clears the resolved and unresolved pack lists and the table's current genre.

Ghidra address:
0x1b4948

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the screen rotates.

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

◆ 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:
0x1b7354
Ghidra address:
0x1b7354

◆ showError:

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

Reports an error, either in the loading view (before the table is shown) or as an alert.

Parameters
messageThe message to show; a network-error message is substituted when nil .
Ghidra address:
0x1b5cf8

◆ startFetch

- (void) startFetch

Fetches the next page of purchased-pack catalogue entries.

Ghidra address:
0x1b5b40

◆ startLoadPurchasedList

- (void) startLoadPurchasedList

Gathers the owned and pending pack identifiers, then either shows the empty-list message or starts the catalogue fetch.

Ghidra address:
0x1b49b4
Ghidra address:
0x1b4d0c

◆ storeClose

- (void) storeClose

Closes any open alert.

Ghidra address:
0x1b730c

◆ storePackDetailViewClose

- (void) storePackDetailViewClose

StorePackDetailView close callback: dismisses the iPad overlay.

Ghidra address:
0x1b6404

◆ storePackTableViewLoadMore

- (void) storePackTableViewLoadMore

StorePackTableView load-more callback: fetches the next page.

Ghidra address:
0x1b5f44

◆ storePackTableViewShowDetail:

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

StorePackTableView detail callback: opens a pack's detail (iPad overlay or iPhone push).

Parameters
packInfoThe tapped pack.
Ghidra address:
0x1b5f50

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The orientations the screen supports.

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

◆ updatePurchaseStateForPackID:

- (void) updatePurchaseStateForPackID: (int) packID

Refreshes the row for a pack whose purchase state changed.

Parameters
packIDThe pack identifier that was (re)purchased.
Ghidra address:
0x1b546c
Ghidra address:
0x1b546c

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

The view has appeared.

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

◆ viewDidDisappear:

- (void) viewDidDisappear: (BOOL) animated

The view has disappeared.

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

◆ viewDidUnload

- (void) viewDidUnload

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

Ghidra address:
0x1b6ff4

◆ viewWillAppear:

- (void) viewWillAppear: (BOOL) animated

The view is about to appear.

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

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

The view is about to disappear.

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

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