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

A store pack's detail screen (version 2). More...

#include <StoreDetailViewControllerV2.h>

Inheritance diagram for StoreDetailViewControllerV2:
Collaboration diagram for StoreDetailViewControllerV2:

Instance Methods

(instancetype) - init
 Sets the navigation title and, where available, opts out of opaque-bar layout.
(void) - loadView
 Builds the gradient-backed root view, the three tables (tune list, recommended-pack list, and spare header carrier), the three relation-strip headers, the loading overlay, the alternating pack-background art, and the artwork-downloader map.
(void) - updatePurchaseState
 Refreshes each header's purchase button title, colour, and enabled state, and shows or hides the extend-download button, from the current purchase and download state.
(void) - showPackInfo
 Installs the headers, refreshes the purchase state, starts the header artwork download, reveals the tables, and fetches the recommended-pack list.
(void) - loadInfo
 Shows the pack's detail: uses the already-loaded track list, or downloads it through a Downloader keyed to the regular or restore endpoint.
(void) - stopSample
 Fades out the sample, drops the sample downloader, clears the playing row, and reloads.
(void) - finishBgm:
 Background-music-finished notification: stops the playing row's sample overlay.
(void) - doPurchase:
 Purchase-button tap: forwards purchase or redownload to the delegate.
(void) - downloadExtendMusic:
 Extend-button tap: hides the button on every header and forwards extend-download to the delegate.
(void) - storeDetailViewOpenItunesWithURL:
 Opens an iTunes URL, preferring an SKStoreProductViewController when the URL carries affiliate parameters and falling back to the system browser otherwise.
(void) - productViewControllerDidFinish:
 SKStoreProductViewController finish: dismisses it and clears the reference once the dismissal completes.
(void) - downloaderFinished:
 Downloader completion: parses the pack detail for the info downloader, loads and plays a preview clip for the sample downloader, or resolves the recommended-pack products for the recommend downloader.
(void) - downloaderError:
 Downloader failure: presents a network-error alert, tagged so the info downloader's alert pops the navigation stack.
(void) - downloaderProceed:
 Downloader progress callback.
(void) - imageDownloader:didLoad:
 ImageDownloader completion: installs the loaded jacket into a music row, or the header artwork on all three headers for the header downloader.
(void) - alertSelect:
 Alert button callback: on the confirm button of the info-error alert, pops the navigation stack once.
(void) - alertClose:
 Alert dismissal callback: pops the navigation stack once.
(void) - stopDownloadArtworks
 Cancels every in-flight artwork downloader, detaches its delegate, and empties the map.
(void) - detailClose
 Sends -detailClose to every cell that answers it so the rows can shut themselves.
(void) - tapRelationButton:
 Relation-tab tap: cross-fades between the tune list and the recommended-pack list, snaps their scroll positions, and recolours the tab strips.
(void) - productsRequest:didReceiveResponse:
 SKProductsRequestDelegate callback: caches the store country, resolves the recommended packs against the returned products, hands them to the recommend table, and re-enables the tab strips.
Instance Methods inherited from <DownloaderDelegate>
(void) - downloaderProceed:
 Sent periodically as data arrives, and once more on completion.
(void) - downloaderFinished:
 Sent when the request completes.
(void) - downloaderError:
 Sent when the request fails.

Properties

StorePackInfo * packInfo
 The pack being displayed.
id< StoreDetailViewControllerV2Delegate > delegate
 The action delegate for purchase, redownload, and extend-download.
id< StoreDetailViewControllerV2CloseDelegate > closeDelegate
 The delegate notified as the page closes its navigation.
BOOL bRestore
 Whether the detail was reached through the restore flow, selecting the restore-pack-info endpoint over the regular one.

Detailed Description

A store pack's detail screen (version 2).

Method Documentation

◆ alertClose:

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

Alert dismissal callback: pops the navigation stack once.

Parameters
infoThe alert result dictionary.
Ghidra address:
0xe1350

Reimplemented from <AlertViewManagerDelegate>.

◆ alertSelect:

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

Alert button callback: on the confirm button of the info-error alert, pops the navigation stack once.

Parameters
infoThe alert result dictionary carrying "btnMessage" and "Tag".
Ghidra address:
0xe11f0

Reimplemented from <AlertViewManagerDelegate>.

◆ detailClose

- (void) detailClose

Sends -detailClose to every cell that answers it so the rows can shut themselves.

Ghidra address:
0xe1c30

◆ doPurchase:

- (void) doPurchase: (nullable id) sender

Purchase-button tap: forwards purchase or redownload to the delegate.

Parameters
senderThe purchase button.
Ghidra address:
0xdeb1c

◆ downloaderError:

- (void) downloaderError: (nullable id) downloader

Downloader failure: presents a network-error alert, tagged so the info downloader's alert pops the navigation stack.

Parameters
downloaderThe failed request.
Ghidra address:
0xdf994

◆ downloaderFinished:

- (void) downloaderFinished: (nullable id) downloader

Downloader completion: parses the pack detail for the info downloader, loads and plays a preview clip for the sample downloader, or resolves the recommended-pack products for the recommend downloader.

Parameters
downloaderThe finished request.
Ghidra address:
0xdf0a0

◆ downloaderProceed:

- (void) downloaderProceed: (nullable id) downloader

Downloader progress callback.

The shipped body is empty.

Parameters
downloaderThe request.
Ghidra address:
0xdfd3c

◆ downloadExtendMusic:

- (void) downloadExtendMusic: (nullable id) sender

Extend-button tap: hides the button on every header and forwards extend-download to the delegate.

Parameters
senderThe extend-download button.
Ghidra address:
0xdec34

◆ finishBgm:

- (void) finishBgm: (nullable NSNotification *) notification

Background-music-finished notification: stops the playing row's sample overlay.

Parameters
notificationThe notification.
Ghidra address:
0xdea10

◆ imageDownloader:didLoad:

- (void) imageDownloader: (nonnull ImageDownloader *) downloader
didLoad: (nullable id) key 

ImageDownloader completion: installs the loaded jacket into a music row, or the header artwork on all three headers for the header downloader.

Parameters
downloaderThe finished image downloader.
keyThe index path the downloader was keyed with.
Ghidra address:
0xe0f9c

Reimplemented from <ImageDownloaderDelegate>.

◆ init

- (instancetype) init

Sets the navigation title and, where available, opts out of opaque-bar layout.

Returns
The initialised controller.
Ghidra address:
0xdc94c
Ghidra address:
0xdc94c

◆ loadInfo

- (void) loadInfo

Shows the pack's detail: uses the already-loaded track list, or downloads it through a Downloader keyed to the regular or restore endpoint.

Ghidra address:
0xde7d4

◆ loadView

- (void) loadView

Builds the gradient-backed root view, the three tables (tune list, recommended-pack list, and spare header carrier), the three relation-strip headers, the loading overlay, the alternating pack-background art, and the artwork-downloader map.

Ghidra address:
0xdca08

◆ productsRequest:didReceiveResponse:

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

SKProductsRequestDelegate callback: caches the store country, resolves the recommended packs against the returned products, hands them to the recommend table, and re-enables the tab strips.

Parameters
requestThe finished products request.
responseThe returned products.
Ghidra address:
0xe24b4

◆ productViewControllerDidFinish:

- (void) productViewControllerDidFinish: (nonnull SKStoreProductViewController *) viewController

SKStoreProductViewController finish: dismisses it and clears the reference once the dismissal completes.

Parameters
viewControllerThe finished product view controller.
Ghidra address:
0xdf010

◆ showPackInfo

- (void) showPackInfo

Installs the headers, refreshes the purchase state, starts the header artwork download, reveals the tables, and fetches the recommended-pack list.

Ghidra address:
0xde248

◆ stopDownloadArtworks

- (void) stopDownloadArtworks

Cancels every in-flight artwork downloader, detaches its delegate, and empties the map.

Ghidra address:
0xe13dc

◆ stopSample

- (void) stopSample

Fades out the sample, drops the sample downloader, clears the playing row, and reloads.

Ghidra address:
0xde980

◆ storeDetailViewOpenItunesWithURL:

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

Opens an iTunes URL, preferring an SKStoreProductViewController when the URL carries affiliate parameters and falling back to the system browser otherwise.

Parameters
urlThe iTunes URL.
Ghidra address:
0xdee30

◆ tapRelationButton:

- (void) tapRelationButton: (nullable id) sender

Relation-tab tap: cross-fades between the tune list and the recommended-pack list, snaps their scroll positions, and recolours the tab strips.

Parameters
senderThe tapped relation-tab button, whose tag names the list to show.
Ghidra address:
0xe1d48

◆ updatePurchaseState

- (void) updatePurchaseState

Refreshes each header's purchase button title, colour, and enabled state, and shows or hides the extend-download button, from the current purchase and download state.

Ghidra address:
0xdd47c

Property Documentation

◆ bRestore

- (BOOL) bRestore
readwritenonatomicassign

Whether the detail was reached through the restore flow, selecting the restore-pack-info endpoint over the regular one.

Ghidra address:
0xe2c00 (getter)
Ghidra address:
0xe2c10 (setter)

◆ closeDelegate

- (id<StoreDetailViewControllerV2CloseDelegate>) closeDelegate
readwritenonatomicweak

The delegate notified as the page closes its navigation.

Held weakly.

Ghidra address:
0xe2bcc (getter)
Ghidra address:
0xe2bec (setter)

◆ delegate

- (id<StoreDetailViewControllerV2Delegate>) delegate
readwritenonatomicweak

The action delegate for purchase, redownload, and extend-download.

Held weakly.

Ghidra address:
0xe2b98 (getter)
Ghidra address:
0xe2bb8 (setter)

◆ packInfo

- (StorePackInfo*) packInfo
readwritenonatomicstrong

The pack being displayed.

Ghidra address:
0xe2b74 (getter)
Ghidra address:
0xe2b84 (setter)

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