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

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

#include <StoreMainViewControllerV2.h>

Inheritance diagram for StoreMainViewControllerV2:
Collaboration diagram for StoreMainViewControllerV2:

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 (the navigation-bar title tap target).
(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) - 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) - 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) - 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) - productViewControllerDidFinish:
 The StoreKit product page finished: dismisses it and drops the retained controller.
(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 table, pad cover, pad detail overlay, and loading view.
(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 <StoreDetailViewControllerV2Delegate>
(void) - detailViewStartExtendDownload:
 Sent when the extend-download button is tapped.

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:
0x17e7f4

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

◆ 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:
0x17e80c

Reimplemented from <AlertViewManagerDelegate>.

◆ allReleaseDetail

- (void) allReleaseDetail

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

Ghidra address:
0x17af18

◆ clearDetailWindow

- (void) clearDetailWindow

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

Ghidra address:
0x17af1c
Ghidra address:
0x17b1b4
Ghidra address:
0x17b2c8

◆ dealloc

- (void) dealloc

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

Ghidra address:
0x1800d8

◆ detailViewCloseNavigation

- (void) detailViewCloseNavigation

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

Ghidra address:
0x17c8a8

Reimplemented from <StoreDetailViewControllerV2CloseDelegate>.

◆ 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:
0x179b8c

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:
0x179cb0

Reimplemented from <StoreDetailViewControllerV2Delegate>.

◆ didReceiveMemoryWarning

- (void) didReceiveMemoryWarning

Handles a low-memory warning.

Ghidra address:
0x17f7b8

◆ 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:
0x1801d8

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:
0x17d324

◆ 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:
0x17c8d4

◆ hideGenreSelect:

- (void) hideGenreSelect: (nullable id) sender

Hides the genre selector by dismissing the presented popover.

Parameters
senderThe sender; unused.
Ghidra address:
0x17c980

◆ initWithParent:

- (instancetype) initWithParent: (nullable StoreViewControllerV2 *) parent

Builds the controller for a parent store view.

Adjusts the layout flags, caches the device idiom, builds either a tappable title label (phone) or a plain navigation title (pad), installs the tab-bar item and back button, and creates the pack-list controller.

Parameters
parentThe owning StoreViewControllerV2 ; held strongly.
Returns
The initialised controller.
Ghidra address:
0x17b488

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

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

◆ 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:
0x17ba14

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

◆ 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 network-error text.
Ghidra address:
0x17e8e0

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

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:
0x17d3fc

Reimplemented from <StorePackListDelegate>.

◆ popDetailList

- (void) popDetailList

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

Ghidra address:
0x17a848
Ghidra address:
0x17ac2c
Ghidra address:
0x17addc

◆ productViewControllerDidFinish:

- (void) productViewControllerDidFinish: (SKStoreProductViewController *) viewController

The StoreKit product page finished: dismisses it and drops the retained controller.

Parameters
viewControllerThe product view controller that finished.
Ghidra address:
0x17eef0
Ghidra address:
0x17eef0
Ghidra address:
0x17ef58

◆ 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:
0x17a154

◆ refresh

- (void) refresh

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

Ghidra address:
0x17c828

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the screen rotates.

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

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

◆ 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:
0x17c994

◆ storeClose

- (void) storeClose

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

Ghidra address:
0x17fa14
Ghidra address:
0x17fcf4
Ghidra address:
0x17fdb8

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

Reimplemented from <StoreGenreSelectViewDelegate>.

◆ storePackDetailViewClose

- (void) storePackDetailViewClose

Pack-detail close callback: dismisses the pad overlay.

Ghidra address:
0x17ed00

◆ 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:
0x17ed10

◆ storePackTableViewLoadMore

- (void) storePackTableViewLoadMore

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

Ghidra address:
0x17ec8c

◆ storePackTableViewShowDetail:

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

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

Parameters
packInfoThe tapped pack.
Ghidra address:
0x17ecec

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

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

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:
0x180160

Reimplemented from <EditorIDManagerDelegate>.

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The orientations the screen supports.

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

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

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

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

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

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

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

◆ tapNavigation

- (void) tapNavigation

Scrolls the pack table back to the top (the navigation-bar title tap target).

Ghidra address:
0x180250

◆ 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:
0x179dd4

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

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

The view has appeared.

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

◆ viewDidDisappear:

- (void) viewDidDisappear: (BOOL) animated

The view has disappeared.

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

◆ viewDidLoad

- (void) viewDidLoad

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

Ghidra address:
0x17f7f0

◆ viewDidUnload

- (void) viewDidUnload

Releases the table, pad cover, pad detail overlay, and loading view.

Ghidra address:
0x17f980

◆ viewWillAppear:

- (void) viewWillAppear: (BOOL) animated

The view is about to appear.

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

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

The view is about to disappear.

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

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