|
JubeatPlus 3.9.11
|
The store's genre-grouped pack browser with a promotion carousel and pack detail. More...
#include <StoreMainViewControllerV2.h>


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. | |
The store's genre-grouped pack browser with a promotion carousel and pack detail.
| - (void) additionPackInfoDownloadSuccess: | (StorePackListController *) | controller | |
| showPack: | (nullable StorePackInfo *) | showPack |
A further page of pack information arrived: reveals the named pack's detail, if any.
| controller | The pack-list controller reporting the result. |
| showPack | The pack whose detail to open, or nil to do nothing. |
Reimplemented from <StorePackListDelegate>.
| - (void) addOpenDetail: | (NSInteger) | genreID |
Closes the currently-open pad detail overlay and dismisses the presented controller.
| genreID | The genre identifier to refetch after closing. |
| - (void) alertSelect: | (nonnull NSDictionary *) | info |
An alert button was tapped: on Restore, starts the restore and shows the library tab.
| info | The alert's result, carrying the tapped button under the button-message key. |
Reimplemented from <AlertViewManagerDelegate>.
| - (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) dealloc |
Clears the pack table's current genre and cancels any editor-ID download in flight.
| - (void) detailViewCloseNavigation |
Detail-close navigation callback: decrements the open-detail count unless the close was a recommend push.
Reimplemented from <StoreDetailViewControllerV2CloseDelegate>.
| - (void) detailViewStartPurchase: | (nullable StoreDetailViewControllerV2 *) | packInfo |
Pack-detail purchase callback: records the purchasing view and forwards to the parent.
| packInfo | The pack being purchased. |
Reimplemented from <StoreDetailViewControllerV2Delegate>.
| - (void) detailViewStartRedownload: | (nullable StoreDetailViewControllerV2 *) | packInfo |
Pack-detail redownload callback: records the redownloading view and forwards to the parent.
| packInfo | The pack being redownloaded. |
Reimplemented from <StoreDetailViewControllerV2Delegate>.
| - (void) didReceiveMemoryWarning |
Handles a low-memory warning.
| - (void) errorIDDownload: | (nullable id) | manager | |
| msgStr: | (nullable NSString *) | msgStr |
The editor-identity download failed: drops the manager and refetches the current genre.
| manager | The editor-ID manager reporting the failure. |
| msgStr | The failure message. The binary ignores it; no alert is shown. |
Reimplemented from <EditorIDManagerDelegate>.
| - (void) handleBackButton: | (nullable id) | sender |
Back-button handler: stops the carousel, tells the parent to end the store, and cancels pad detail loading.
| sender | The bar-button item. |
| - (void) handleTapCoverView: | (nullable UITapGestureRecognizer *) | recognizer |
Dismisses the iPad detail overlay: cancels loading and sample, then clears the stack.
| recognizer | The tap gesture recogniser on the dimming cover (may be nil ). |
| - (void) hideGenreSelect: | (nullable id) | sender |
Hides the genre selector by dismissing the presented popover.
| sender | The sender; unused. |
| - (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.
| parent | The owning StoreViewControllerV2 ; held strongly. |
| - (void) loadInitialPacklist: | (NSInteger) | packID |
Starts the initial pack-list fetch, optionally pre-selecting a pack to reveal.
| packID | The pack identifier to reveal after loading, or a non-positive value for none. |
| - (void) loadInitialPacklistWithGenre: | (NSInteger) | genreID |
Starts the initial pack-list fetch for a specific genre.
| genreID | The genre identifier to open once the list arrives. |
| - (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.
| - (NSInteger) numberOfSectionsInTableView: | (UITableView *) | tableView |
The number of sections in the genre popover table.
| tableView | The table asking. |
| - (void) packListDownloadError: | (StorePackListController *) | controller | |
| errorMessage: | (nullable NSString *) | errorMessage |
The pack-list download failed: shows the error to the player.
| controller | The pack-list controller reporting the failure. |
| errorMessage | The message to show, or nil to use the default network-error text. |
Reimplemented from <StorePackListDelegate>.
| - (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.
| controller | The pack-list controller reporting the empty result. |
Reimplemented from <StorePackListDelegate>.
| - (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.
| controller | The pack-list controller reporting the result. |
| isInitial | Whether this is the first page of the list. |
| showPack | The pack to reveal once the list is shown, or nil to reveal none. |
Reimplemented from <StorePackListDelegate>.
| - (void) popDetailList |
Pops the top pad pack-detail overlay off the stack, sliding the stack back.
| - (void) productViewControllerDidFinish: | (SKStoreProductViewController *) | viewController |
The StoreKit product page finished: dismisses it and drops the retained controller.
| viewController | The product view controller that finished. |
| - (void) pushDetailList: | (nullable StorePackDetailViewV2 *) | detailView |
Pushes a pad pack-detail overlay onto the detail-window stack, sliding the neighbours.
| detailView | The new overlay to bring to the front. |
| - (void) refresh |
Reloads the current genre's rows if it holds any packs.
| - (BOOL) shouldAutorotate |
Whether the screen rotates.
| - (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation |
Whether the screen may rotate to an orientation.
| interfaceOrientation | The orientation asked about. |
| - (void) showDetailForPackInfo: | (nullable StorePackInfo *) | packInfo |
Opens a pack's detail: pushes a StoreDetailViewControllerV2 on the phone or fades in the pad overlay.
| packInfo | The pack to show. |
| - (void) storeClose |
Closes any open alert and the pad detail overlay, then dismisses this controller.
| - (void) StoreGenreSelectViewDelegateGenreSelected: | (NSUInteger) | index |
A genre was chosen in the genre selector: reloads the table for that genre.
| index | The index of the chosen genre. |
Reimplemented from <StoreGenreSelectViewDelegate>.
| - (void) storePackDetailViewClose |
Pack-detail close callback: dismisses the pad overlay.
| - (void) storePackDetailViewOpenItunesWithURL: | (nullable NSURL *) | url |
Pack-detail iTunes callback: opens an affiliate product page or the raw URL.
| url | The iTunes URL to open. |
| - (void) storePackTableViewLoadMore |
Pack-table load-more callback: fetches the next page for the current genre.
| - (void) storePackTableViewShowDetail: | (nullable StorePackInfo *) | packInfo |
Pack-table detail callback: opens a pack's detail.
| packInfo | The tapped pack. |
| - (void) storePromotionView: | (StorePromotionView *) | view | |
| genreSelected: | (NSUInteger) | genreIndex |
A genre was tapped in the promotion carousel: scrolls the table to that genre.
| view | The promotion carousel sending the message. |
| genreIndex | The index of the tapped genre. |
Reimplemented from <StorePromotionViewDelegate>.
| - (void) storePromotionView: | (StorePromotionView *) | view | |
| packSelected: | (StorePackInfo *) | packInfo |
A pack was tapped in the promotion carousel: opens that pack's detail.
| view | The promotion carousel sending the message. |
| packInfo | The tapped pack. |
Reimplemented from <StorePromotionViewDelegate>.
| - (void) successIDDownload: | (nullable id) | manager |
The editor identity downloaded: drops the manager and refetches the current genre.
| manager | The editor-ID manager reporting the result. |
Reimplemented from <EditorIDManagerDelegate>.
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
The orientations the screen supports.
| - (void) switchToGenre: | (NSUInteger) | genreIndex |
Switches the table to another genre, refetching or scrolling as needed and updating the header title.
| genreIndex | The genre index to switch to. |
| - (UITableViewCell *) tableView: | (UITableView *) | tableView | |
| cellForRowAtIndexPath: | (NSIndexPath *) | indexPath |
The cell for a genre row.
| tableView | The table asking. |
| indexPath | The row's index path. |
| - (void) tableView: | (UITableView *) | tableView | |
| didSelectRowAtIndexPath: | (NSIndexPath *) | indexPath |
A genre row was tapped: selects that genre and closes the popover.
| tableView | The table sending the message. |
| indexPath | The tapped row's index path. |
| - (CGFloat) tableView: | (UITableView *) | tableView | |
| heightForRowAtIndexPath: | (NSIndexPath *) | indexPath |
The height of a genre row.
| tableView | The table asking. |
| indexPath | The row's index path. |
| - (NSInteger) tableView: | (UITableView *) | tableView | |
| numberOfRowsInSection: | (NSInteger) | section |
The number of rows in the genre popover table.
| tableView | The table asking. |
| section | The section asked about. |
| - (void) tableView: | (UITableView *) | tableView | |
| willDisplayCell: | (UITableViewCell *) | cell | |
| forRowAtIndexPath: | (NSIndexPath *) | indexPath |
A genre row is about to be drawn.
| tableView | The table asking. |
| cell | The cell about to be drawn. |
| indexPath | The row's index path. |
| - (void) tapNavigation |
Scrolls the pack table back to the top (the navigation-bar title tap target).
| - (BOOL) tapReccommendPack: | (nullable StorePackInfo *) | packInfo |
Opens a recommended pack's detail, capped at ten open details, alerting when the cap is reached.
| packInfo | The recommended pack. |
YES when the detail was opened, NO when the cap alert was shown. | - (void) updatePurchaseStateForPackID: | (int) | packID |
Updates the row for a pack whose purchase state changed and refreshes any open detail.
| 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) 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.
| - (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. |