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

A store pack's detail screen. More...

#include <StoreDetailViewController.h>

Inheritance diagram for StoreDetailViewController:
Collaboration diagram for StoreDetailViewController:

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 detail table, the header, the loading overlay, the alternating pack-background art, and the artwork-downloader map.
(void) - updatePurchaseState
 Refreshes the purchase button's title, colour, and enabled state, and shows or hides the extend-download button, from the current purchase and download state.
(void) - showPackInfo
 Installs the header, refreshes the purchase state, starts the header artwork download, and reveals the table.
(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 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, or loads and plays a preview clip for the sample 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 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.
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< StoreDetailViewControllerDelegate > delegate
 The action delegate for purchase, redownload, and extend-download.
id< StoreDetailViewControllerCloseDelegate > 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.

Method Documentation

◆ alertClose:

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

Alert dismissal callback: pops the navigation stack once.

Parameters
infoThe alert result dictionary.
Ghidra address:
0xf040c

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

Reimplemented from <AlertViewManagerDelegate>.

◆ detailClose

- (void) detailClose

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

Ghidra address:
0xf0b84

◆ doPurchase:

- (void) doPurchase: (nullable id) sender

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

Parameters
senderThe purchase button.
Ghidra address:
0xee2ac

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

◆ downloaderFinished:

- (void) downloaderFinished: (nullable id) downloader

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

Parameters
downloaderThe finished request.
Ghidra address:
0xee7a0

◆ downloaderProceed:

- (void) downloaderProceed: (nullable id) downloader

Downloader progress callback.

The shipped body is empty.

Parameters
downloaderThe request.
Ghidra address:
0xeef00

◆ downloadExtendMusic:

- (void) downloadExtendMusic: (nullable id) sender

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

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

◆ finishBgm:

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

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

Parameters
notificationThe notification.
Ghidra address:
0xee1a0

◆ 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 for the header downloader.

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

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

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

◆ loadView

- (void) loadView

Builds the gradient-backed root view, the detail table, the header, the loading overlay, the alternating pack-background art, and the artwork-downloader map.

Ghidra address:
0xecee8

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

◆ showPackInfo

- (void) showPackInfo

Installs the header, refreshes the purchase state, starts the header artwork download, and reveals the table.

Ghidra address:
0xedd68

◆ stopDownloadArtworks

- (void) stopDownloadArtworks

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

Ghidra address:
0xf0498

◆ stopSample

- (void) stopSample

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

Ghidra address:
0xee110

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

◆ updatePurchaseState

- (void) updatePurchaseState

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

Ghidra address:
0xed604

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:
0xf0d28 (getter)
Ghidra address:
0xf0d38 (setter)

◆ closeDelegate

- (id<StoreDetailViewControllerCloseDelegate>) closeDelegate
readwritenonatomicweak

The delegate notified as the page closes its navigation.

Held weakly.

Ghidra address:
0xf0cf4 (getter)
Ghidra address:
0xf0d14 (setter)

◆ delegate

- (id<StoreDetailViewControllerDelegate>) delegate
readwritenonatomicweak

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

Held weakly.

Ghidra address:
0xf0cc0 (getter)
Ghidra address:
0xf0ce0 (setter)

◆ packInfo

- (StorePackInfo*) packInfo
readwritenonatomicstrong

The pack being displayed.

Ghidra address:
0xf0c9c (getter)
Ghidra address:
0xf0cac (setter)

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