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

The store's genre-grouped pack browser with a promotion carousel and pack detail. More...

#include <StoreMainViewController.h>

Inheritance diagram for StoreMainViewController:
Collaboration diagram for StoreMainViewController:

Instance Methods

(instancetype) - initWithParent:
 Builds the controller for a parent store view.
(void) - loadView
 Builds the view: a vertical grey gradient behind a pack table, plus (on pad) a rounded pack-list container, dimming cover, pack-detail overlay, and the loading view.
(void) - loadInitialPacklist:
 Starts the initial pack-list fetch, optionally pre-selecting a pack to reveal.
(void) - loadInitialPacklistWithGenre:
 Starts the initial pack-list fetch for a specific genre.
(void) - refresh
 Reloads the current genre's rows if it holds any packs.
(void) - tapNavigation
 Scrolls the pack table back to the top, and dismisses the one-time tutorial balloon on its first use (the navigation-bar title tap target).
(void) - packListScrolled
 Pack-table scroll callback: fades the tutorial balloon back in.
(void) - updatePurchaseStateForPackID:
 Updates the row for a pack whose purchase state changed and refreshes any open detail.
(void) - showDetailForPackInfo:
 Opens a pack's detail: pushes a StoreDetailViewControllerV2 on the phone or fades in the pad overlay.
(void) - switchToGenre:
 Switches the table to another genre, refetching or scrolling as needed and updating the header title.
(BOOL) - tapReccommendPack:
 Opens a recommended pack's detail, capped at ten open details, alerting when the cap is reached.
(void) - pushDetailList:
 Pushes a pad pack-detail overlay onto the detail-window stack, sliding the neighbours.
(void) - popDetailList
 Pops the top pad pack-detail overlay off the stack, sliding the stack back.
(void) - allReleaseDetail
 Adds a freshly-fetched additional pack to the detail stack; the shipped body is empty.
(void) - clearDetailWindow
 Fades out and dismantles every pad pack-detail overlay, keeping the root entry.
(void) - addOpenDetail:
 Closes the currently-open pad detail overlay and dismisses the presented controller.
(void) - pushOpenDetail:
 Forwards a recommended-pack open request to the parent store view, discarding the current genre's first pack-list entry.
(void) - handleTapCoverView:
 Dismisses the iPad detail overlay: cancels loading and sample, then clears the stack.
(void) - hideGenreSelect:
 Hides the genre selector by dismissing the presented popover.
(void) - handleBackButton:
 Back-button handler: stops the carousel, tells the parent to end the store, and cancels pad detail loading.
(void) - handleTapPolicyButton:
 Policy-button handler: presents the terms navigation controller.
(void) - storeClose
 Closes any open alert and the pad detail overlay, then dismisses this controller.
(void) - packListDownloadSuccess:isInitial:showPack:
 The pack list finished downloading: reloads the table and reveals a pack when asked.
(void) - additionPackInfoDownloadSuccess:showPack:
 A further page of pack information arrived: reveals the named pack's detail, if any.
(void) - packListDownloadError:errorMessage:
 The pack-list download failed: shows the error to the player.
(void) - packListDownloadNothing:
 The pack-list download returned no packs: ends load-more, or shows the server error when the list is not yet on screen.
(void) - storePromotionView:packSelected:
 A pack was tapped in the promotion carousel: opens that pack's detail.
(void) - storePromotionView:genreSelected:
 A genre was tapped in the promotion carousel: scrolls the table to that genre.
(void) - StoreGenreSelectViewDelegateGenreSelected:
 A genre was chosen in the genre selector: reloads the table for that genre.
(void) - storePackTableViewLoadMore
 Pack-table load-more callback: fetches the next page for the current genre.
(void) - storePackTableViewShowDetail:
 Pack-table detail callback: opens a pack's detail.
(void) - storePackDetailViewClose
 Pack-detail close callback: dismisses the pad overlay.
(void) - storePackDetailViewOpenItunesWithURL:
 Pack-detail iTunes callback: opens an affiliate product page or the raw URL.
(void) - detailViewCloseNavigation
 Detail-close navigation callback: decrements the open-detail count unless the close was a recommend push.
(void) - detailViewStartPurchase:
 Pack-detail purchase callback: records the purchasing view and forwards to the parent.
(void) - detailViewStartRedownload:
 Pack-detail redownload callback: records the redownloading view and forwards to the parent.
(void) - detailViewStartExtendDownload:
 Pack-detail extend-download callback: forwards to the parent store view.
(void) - successIDDownload:
 The editor identity downloaded: drops the manager and refetches the current genre.
(void) - errorIDDownload:msgStr:
 The editor-identity download failed: drops the manager and refetches the current genre.
(void) - alertSelect:
 An alert button was tapped: on Restore, starts the restore and shows the library tab.
(void) - settingsNavViewClose:
 The settings navigation controller closed: dismisses it.
(void) - productViewControllerDidFinish:
 The StoreKit product page finished: dismisses it.
(NSInteger) - numberOfSectionsInTableView:
 The number of sections in the genre popover table.
(NSInteger) - tableView:numberOfRowsInSection:
 The number of rows in the genre popover table.
(UITableViewCell *) - tableView:cellForRowAtIndexPath:
 The cell for a genre row.
(CGFloat) - tableView:heightForRowAtIndexPath:
 The height of a genre row.
(void) - tableView:willDisplayCell:forRowAtIndexPath:
 A genre row is about to be drawn.
(void) - tableView:didSelectRowAtIndexPath:
 A genre row was tapped: selects that genre and closes the popover.
(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) - didReceiveMemoryWarning
 Handles a low-memory warning.
(void) - viewDidLoad
 Gives every navigation-bar subview exclusive touch so a tap cannot fall through.
(void) - viewDidUnload
 Releases the view's subviews when the view is unloaded.
(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
 Clears the pack table's current genre and cancels any editor-ID download in flight.
Instance Methods inherited from <AlertViewManagerDelegate>
(void) - alertClose:
 Sent when a UIAlertController -based alert finishes dismissing.
Instance Methods inherited from <SettingsNavControllerDelegate>
(void) - settingsNavViewClose:
 Sent when the settings navigation controller is dismissed.

Detailed Description

The store's genre-grouped pack browser with a promotion carousel and pack detail.

Method Documentation

◆ additionPackInfoDownloadSuccess:showPack:

- (void) additionPackInfoDownloadSuccess: (StorePackListController *) controller
showPack: (nullable StorePackInfo *) showPack 

A further page of pack information arrived: reveals the named pack's detail, if any.

Parameters
controllerThe pack-list controller reporting the result.
showPackThe pack whose detail to open, or nil to do nothing.
Ghidra address:
0xa5554

Reimplemented from <StorePackListDelegate>.

◆ addOpenDetail:

- (void) addOpenDetail: (NSInteger) genreID

Closes the currently-open pad detail overlay and dismisses the presented controller.

Parameters
genreIDThe genre identifier to refetch after closing.
Ghidra address:
0xa6c44
Ghidra address:
0xa6c44

◆ alertSelect:

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

An alert button was tapped: on Restore, starts the restore and shows the library tab.

Parameters
infoThe alert's result, carrying the tapped button under the button-message key.
Ghidra address:
0xa556c

Reimplemented from <AlertViewManagerDelegate>.

◆ allReleaseDetail

- (void) allReleaseDetail

Adds a freshly-fetched additional pack to the detail stack; the shipped body is empty.

Ghidra address:
0xa1650

◆ clearDetailWindow

- (void) clearDetailWindow

Fades out and dismantles every pad pack-detail overlay, keeping the root entry.

Ghidra address:
0xa1654
Ghidra address:
0xa18ec
Ghidra address:
0xa1a00

◆ dealloc

- (void) dealloc

Clears the pack table's current genre and cancels any editor-ID download in flight.

Ghidra address:
0xa6f64

◆ detailViewCloseNavigation

- (void) detailViewCloseNavigation

Detail-close navigation callback: decrements the open-detail count unless the close was a recommend push.

Ghidra address:
0xa34ac

Reimplemented from <StoreDetailViewControllerV2CloseDelegate>.

◆ detailViewStartExtendDownload:

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

Pack-detail extend-download callback: forwards to the parent store view.

Parameters
packInfoThe pack being extended.
Ghidra address:
0xa0468

Reimplemented from <StoreDetailViewControllerV2Delegate>.

◆ detailViewStartPurchase:

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

Pack-detail purchase callback: records the purchasing view and forwards to the parent.

Parameters
packInfoThe pack being purchased.
Ghidra address:
0xa0220

Reimplemented from <StoreDetailViewControllerV2Delegate>.

◆ detailViewStartRedownload:

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

Pack-detail redownload callback: records the redownloading view and forwards to the parent.

Parameters
packInfoThe pack being redownloaded.
Ghidra address:
0xa0344

Reimplemented from <StoreDetailViewControllerV2Delegate>.

◆ didReceiveMemoryWarning

- (void) didReceiveMemoryWarning

Handles a low-memory warning.

Ghidra address:
0xa6564

◆ errorIDDownload:msgStr:

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

The editor-identity download failed: drops the manager and refetches the current genre.

Parameters
managerThe editor-ID manager reporting the failure.
msgStrThe failure message. The binary ignores it; no alert is shown.
Ghidra address:
0xa7064

Reimplemented from <EditorIDManagerDelegate>.

◆ handleBackButton:

- (void) handleBackButton: (nullable id) sender

Back-button handler: stops the carousel, tells the parent to end the store, and cancels pad detail loading.

Parameters
senderThe bar-button item.
Ghidra address:
0xa3fa8

◆ handleTapCoverView:

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

Dismisses the iPad detail overlay: cancels loading and sample, then clears the stack.

Parameters
recognizerThe tap gesture recogniser on the dimming cover (may be nil ).
Ghidra address:
0xa34d8

◆ handleTapPolicyButton:

- (void) handleTapPolicyButton: (nullable id) sender

Policy-button handler: presents the terms navigation controller.

Parameters
senderThe bar-button item; unused.
Ghidra address:
0xa4080

◆ hideGenreSelect:

- (void) hideGenreSelect: (nullable id) sender

Hides the genre selector by dismissing the presented popover.

Parameters
senderThe sender; unused.
Ghidra address:
0xa3584

◆ initWithParent:

- (instancetype) initWithParent: (nullable id< StoreParentViewController >) parent

Builds the controller for a parent store view.

Builds the terms navigation controller, adjusts the layout flags, caches the device idiom, builds either a tappable title label plus a one-time tutorial balloon (phone) or a plain navigation title (pad), installs the tab-bar item, back button, and policy right button, and creates the pack-list controller.

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

◆ loadInitialPacklist:

- (void) loadInitialPacklist: (NSInteger) packID

Starts the initial pack-list fetch, optionally pre-selecting a pack to reveal.

Parameters
packIDThe pack identifier to reveal after loading, or a non-positive value for none.
Ghidra address:
0xa2f14
Ghidra address:
0xa2f14

◆ loadInitialPacklistWithGenre:

- (void) loadInitialPacklistWithGenre: (NSInteger) genreID

Starts the initial pack-list fetch for a specific genre.

Parameters
genreIDThe genre identifier to open once the list arrives.
Ghidra address:
0xa3068
Ghidra address:
0xa3068

◆ loadView

- (void) loadView

Builds the view: a vertical grey gradient behind a pack table, plus (on pad) a rounded pack-list container, dimming cover, pack-detail overlay, and the loading view.

Ghidra address:
0xa2618

◆ numberOfSectionsInTableView:

- (NSInteger) numberOfSectionsInTableView: (UITableView *) tableView

The number of sections in the genre popover table.

Parameters
tableViewThe table asking.
Returns
Always 1; the genres occupy a single section.
Ghidra address:
0xa5f7c
Ghidra address:
0xa5f7c

◆ packListDownloadError:errorMessage:

- (void) packListDownloadError: (StorePackListController *) controller
errorMessage: (nullable NSString *) errorMessage 

The pack-list download failed: shows the error to the player.

Parameters
controllerThe pack-list controller reporting the failure.
errorMessageThe message to show, or nil to use the default text.
Ghidra address:
0xa5640

Reimplemented from <StorePackListDelegate>.

◆ packListDownloadNothing:

- (void) packListDownloadNothing: (StorePackListController *) controller

The pack-list download returned no packs: ends load-more, or shows the server error when the list is not yet on screen.

Parameters
controllerThe pack-list controller reporting the empty result.
Ghidra address:
0xa58c8
Ghidra address:
0xa58c8

Reimplemented from <StorePackListDelegate>.

◆ packListDownloadSuccess:isInitial:showPack:

- (void) packListDownloadSuccess: (StorePackListController *) controller
isInitial: (BOOL) isInitial
showPack: (nullable StorePackInfo *) showPack 

The pack list finished downloading: reloads the table and reveals a pack when asked.

Parameters
controllerThe pack-list controller reporting the result.
isInitialWhether this is the first page of the list.
showPackThe pack to reveal once the list is shown, or nil to reveal none.
Ghidra address:
0xa40bc

Reimplemented from <StorePackListDelegate>.

◆ packListScrolled

- (void) packListScrolled

Pack-table scroll callback: fades the tutorial balloon back in.

Ghidra address:
0xa72bc
Ghidra address:
0xa7390
Ghidra address:
0xa73dc

◆ popDetailList

- (void) popDetailList

Pops the top pad pack-detail overlay off the stack, sliding the stack back.

Ghidra address:
0xa0f80
Ghidra address:
0xa1364
Ghidra address:
0xa1514

◆ productViewControllerDidFinish:

- (void) productViewControllerDidFinish: (SKStoreProductViewController *) viewController

The StoreKit product page finished: dismisses it.

Parameters
viewControllerThe product view controller that finished.
Ghidra address:
0xa5c8c
Ghidra address:
0xa5c8c
Ghidra address:
0xa5cf4

◆ pushDetailList:

- (void) pushDetailList: (nullable StorePackDetailViewV2 *) detailView

Pushes a pad pack-detail overlay onto the detail-window stack, sliding the neighbours.

Parameters
detailViewThe new overlay to bring to the front.
Ghidra address:
0xa088c

◆ pushOpenDetail:

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

Forwards a recommended-pack open request to the parent store view, discarding the current genre's first pack-list entry.

Parameters
packIDThe pack identifier to open.
Ghidra address:
0xa6e84

◆ refresh

- (void) refresh

Reloads the current genre's rows if it holds any packs.

Ghidra address:
0xa342c

◆ settingsNavViewClose:

- (void) settingsNavViewClose: (nullable id) controller

The settings navigation controller closed: dismisses it.

Parameters
controllerThe settings navigation controller that closed.
Ghidra address:
0xa40a0

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the screen rotates.

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

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

◆ showDetailForPackInfo:

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

Opens a pack's detail: pushes a StoreDetailViewControllerV2 on the phone or fades in the pad overlay.

Parameters
packInfoThe pack to show.
Ghidra address:
0xa3598

◆ storeClose

- (void) storeClose

Closes any open alert and the pad detail overlay, then dismisses this controller.

Ghidra address:
0xa67c0
Ghidra address:
0xa6aa0
Ghidra address:
0xa6b64

◆ StoreGenreSelectViewDelegateGenreSelected:

- (void) StoreGenreSelectViewDelegateGenreSelected: (NSUInteger) index

A genre was chosen in the genre selector: reloads the table for that genre.

Parameters
indexThe index of the chosen genre.
Ghidra address:
0xa5a1c
Ghidra address:
0xa5a1c

Reimplemented from <StoreGenreSelectViewDelegate>.

◆ storePackDetailViewClose

- (void) storePackDetailViewClose

Pack-detail close callback: dismisses the pad overlay.

Ghidra address:
0xa5a9c

◆ storePackDetailViewOpenItunesWithURL:

- (void) storePackDetailViewOpenItunesWithURL: (nullable NSURL *) url

Pack-detail iTunes callback: opens an affiliate product page or the raw URL.

Parameters
urlThe iTunes URL to open.
Ghidra address:
0xa5aac

◆ storePackTableViewLoadMore

- (void) storePackTableViewLoadMore

Pack-table load-more callback: fetches the next page for the current genre.

Ghidra address:
0xa5a28

◆ storePackTableViewShowDetail:

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

Pack-table detail callback: opens a pack's detail.

Parameters
packInfoThe tapped pack.
Ghidra address:
0xa5a88

◆ storePromotionView:genreSelected:

- (void) storePromotionView: (StorePromotionView *) view
genreSelected: (NSUInteger) genreIndex 

A genre was tapped in the promotion carousel: scrolls the table to that genre.

Parameters
viewThe promotion carousel sending the message.
genreIndexThe index of the tapped genre.
Ghidra address:
0xa59d0
Ghidra address:
0xa59d0

Reimplemented from <StorePromotionViewDelegate>.

◆ storePromotionView:packSelected:

- (void) storePromotionView: (StorePromotionView *) view
packSelected: (StorePackInfo *) packInfo 

A pack was tapped in the promotion carousel: opens that pack's detail.

Parameters
viewThe promotion carousel sending the message.
packInfoThe tapped pack.
Ghidra address:
0xa59b8
Ghidra address:
0xa59b8

Reimplemented from <StorePromotionViewDelegate>.

◆ successIDDownload:

- (void) successIDDownload: (nullable id) manager

The editor identity downloaded: drops the manager and refetches the current genre.

Parameters
managerThe editor-ID manager reporting the result.
Ghidra address:
0xa6fec

Reimplemented from <EditorIDManagerDelegate>.

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The orientations the screen supports.

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

◆ switchToGenre:

- (void) switchToGenre: (NSUInteger) genreIndex

Switches the table to another genre, refetching or scrolling as needed and updating the header title.

Parameters
genreIndexThe genre index to switch to.
Ghidra address:
0xa3a70
Ghidra address:
0xa3a70

◆ tableView:cellForRowAtIndexPath:

- (UITableViewCell *) tableView: (UITableView *) tableView
cellForRowAtIndexPath: (NSIndexPath *) indexPath 

The cell for a genre row.

Parameters
tableViewThe table asking.
indexPathThe row's index path.
Returns
The dequeued cell, titled with the genre's name.
Ghidra address:
0xa5d1c
Ghidra address:
0xa5d1c

◆ tableView:didSelectRowAtIndexPath:

- (void) tableView: (UITableView *) tableView
didSelectRowAtIndexPath: (NSIndexPath *) indexPath 

A genre row was tapped: selects that genre and closes the popover.

Parameters
tableViewThe table sending the message.
indexPathThe tapped row's index path.
Ghidra address:
0xa5fac
Ghidra address:
0xa5fac

◆ tableView:heightForRowAtIndexPath:

- (CGFloat) tableView: (UITableView *) tableView
heightForRowAtIndexPath: (NSIndexPath *) indexPath 

The height of a genre row.

Parameters
tableViewThe table asking.
indexPathThe row's index path.
Returns
The fixed genre-popover row height.
Ghidra address:
0xa5fa0
Ghidra address:
0xa5fa0

◆ tableView:numberOfRowsInSection:

- (NSInteger) tableView: (UITableView *) tableView
numberOfRowsInSection: (NSInteger) section 

The number of rows in the genre popover table.

Parameters
tableViewThe table asking.
sectionThe section asked about.
Returns
The genre count held by the pack-list controller.
Ghidra address:
0xa5f84
Ghidra address:
0xa5f84

◆ tableView:willDisplayCell:forRowAtIndexPath:

- (void) tableView: (UITableView *) tableView
willDisplayCell: (UITableViewCell *) cell
forRowAtIndexPath: (NSIndexPath *) indexPath 

A genre row is about to be drawn.

Parameters
tableViewThe table asking.
cellThe cell about to be drawn.
indexPathThe row's index path.
Ghidra address:
0xa5f9c
Ghidra address:
0xa5f9c

◆ tapNavigation

- (void) tapNavigation

Scrolls the pack table back to the top, and dismisses the one-time tutorial balloon on its first use (the navigation-bar title tap target).

Ghidra address:
0xa70dc
Ghidra address:
0xa726c
Ghidra address:
0xa72b8

◆ tapReccommendPack:

- (BOOL) tapReccommendPack: (nullable StorePackInfo *) packInfo

Opens a recommended pack's detail, capped at ten open details, alerting when the cap is reached.

Parameters
packInfoThe recommended pack.
Returns
YES when the detail was opened, NO when the cap alert was shown.
Ghidra address:
0xa050c

◆ updatePurchaseStateForPackID:

- (void) updatePurchaseStateForPackID: (int) packID

Updates the row for a pack whose purchase state changed and refreshes any open detail.

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

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

The view has appeared.

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

◆ viewDidDisappear:

- (void) viewDidDisappear: (BOOL) animated

The view has disappeared.

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

◆ viewDidLoad

- (void) viewDidLoad

Gives every navigation-bar subview exclusive touch so a tap cannot fall through.

Ghidra address:
0xa659c

◆ viewDidUnload

- (void) viewDidUnload

Releases the view's subviews when the view is unloaded.

Ghidra address:
0xa672c

◆ viewWillAppear:

- (void) viewWillAppear: (BOOL) animated

The view is about to appear.

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

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

The view is about to disappear.

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

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