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

A downloaded pack's detail card (version 2). More...

#include <StorePackDetailViewV2.h>

Inheritance diagram for StorePackDetailViewV2:
Collaboration diagram for StorePackDetailViewV2:

Instance Methods

(instancetype) - initWithFrame:
 Builds the card: the pack background and artwork, the name and comment labels, the copyright text view, the relation-tab strip with its two tabs, the link button, the purchase and extend-download buttons, the tune scroll view with its four seed tune views, the recommended-pack table with its backing scroll view, the loading overlay, and the right-half back button.
(void) - removePackInfo
 Clears the pack and returns every subview to its empty state, resets the relation strip, disables the relation buttons, and unsubscribes from the BGM finish notification.
(void) - tapRelationButton:
 Relation-tab tap: switches the visible list to the tapped tab and cross-fades the backing scroll views.
(void) - setRelationColor:selectable:
 Recolours the relation strip for the given list index and shows or hides the backing scroll views outright (no animation).
(void) - setRelationColor:animate:
 Recolours the relation strip for the given list index and, when animating, cross-fades the two backing scroll views over two legs.
(void) - cancelLoading
 Cancels the in-flight info download, if any.
(void) - stopSample
 Stops the sample tune: fades out the BGM, drops the sample downloader, resets every tune view, and clears the playing-row marker.
(void) - updatePurchaseState
 Refreshes the purchase button's colour, title, and enabled state, shows or hides the extend-download button from the pack's purchase state, and reloads the recommended-pack table.
(void) - showPackInfo
 Populates the card from the loaded pack: sizes the tune list, fills the labels and artwork, lays out the link button, starts the artwork downloads, kicks off the recommended-pack fetch, and subscribes to the BGM finish notification.
(void) - loadInfo
 Loads the pack detail: shows it directly when the track list is already present, otherwise starts the info download for the pack.
(void) - loadRestoreInfo
 Loads the pack detail for a restore: like -loadInfo but fetches the restore endpoint.
(void) - doPurchase:
 Purchase-button tap: stops the sample, then asks the delegate to start a redownload or a purchase depending on the pack's ownership.
(void) - downloadExtendMusic:
 Extend-download-button tap: stops the sample, hides the button, and asks the delegate to start the extend download.
(void) - handleLink:
 Link-button tap: builds the jump URL and raises a confirmation alert.
(void) - handleSample:
 Sample-button tap: toggles the tapped tune's preview.
(void) - finishBgm:
 BGM-finish notification handler: resets every tune view and clears the playing-row marker.
(void) - downloaderFinished:
 Downloader completion: parses the pack detail on the info download, loads and plays the preview on the sample download, or resolves the recommended-pack products on the recommend download.
(void) - downloaderError:
 Downloader failure: raises a network-error alert for the info or sample download.
(void) - downloaderProceed:
 Downloader progress.
(void) - alertSelect:
 Alert-button delegate: on the server-error alert closes the card; on the link alert opens iTunes with the jump URL when the confirm button was tapped.
(void) - alertClose:
 Alert-dismiss delegate: on the server-error alert tells the owning controller to close.
(void) - detailClose
 Closes any presented alert.
(void) - setInactive
 Marks the card inactive by re-adding the right-half back button over it.
(void) - setActive
 Marks the card active by removing the right-half back button.
(void) - popOutDetailView
 Back-button tap: asks the delegate to pop the detail list.
(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 strip.

Properties

StorePackInfo * packInfo
 The pack being shown.
id delegate
 The card's delegate, told when to start a purchase, redownload, or extend download, and asked to pop the detail list.
UIViewController * viewController
 The controller that owns this card, messaged to close the card and to open iTunes.

Detailed Description

A downloaded pack's detail card (version 2).

Method Documentation

◆ alertClose:

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

Alert-dismiss delegate: on the server-error alert tells the owning controller to close.

Parameters
infoThe alert result dictionary.
Ghidra address:
0x1e1df8

Reimplemented from <AlertViewManagerDelegate>.

◆ alertSelect:

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

Alert-button delegate: on the server-error alert closes the card; on the link alert opens iTunes with the jump URL when the confirm button was tapped.

Parameters
infoThe alert result dictionary.
Ghidra address:
0x1e1c0c

Reimplemented from <AlertViewManagerDelegate>.

◆ cancelLoading

- (void) cancelLoading

Cancels the in-flight info download, if any.

Ghidra address:
0x1de7fc

◆ detailClose

- (void) detailClose

Closes any presented alert.

Ghidra address:
0x1e1ef4

◆ doPurchase:

- (void) doPurchase: (nullable id) sender

Purchase-button tap: stops the sample, then asks the delegate to start a redownload or a purchase depending on the pack's ownership.

The card forwards itself to the delegate.

Parameters
senderThe purchase button.
Ghidra address:
0x1e0330

◆ downloaderError:

- (void) downloaderError: (id) downloader

Downloader failure: raises a network-error alert for the info or sample download.

Parameters
downloaderThe failed request.
Ghidra address:
0x1e1828
Ghidra address:
0x1e1828

Reimplemented from <DownloaderDelegate>.

◆ downloaderFinished:

- (void) downloaderFinished: (id) downloader

Downloader completion: parses the pack detail on the info download, loads and plays the preview on the sample download, or resolves the recommended-pack products on the recommend download.

Parameters
downloaderThe finished request.
Ghidra address:
0x1e1114
Ghidra address:
0x1e1114

Reimplemented from <DownloaderDelegate>.

◆ downloaderProceed:

- (void) downloaderProceed: (id) downloader

Downloader progress.

The shipped body is empty.

Parameters
downloaderThe request.
Ghidra address:
0x1e1c08
Ghidra address:
0x1e1c08

Reimplemented from <DownloaderDelegate>.

◆ downloadExtendMusic:

- (void) downloadExtendMusic: (nullable id) sender

Extend-download-button tap: stops the sample, hides the button, and asks the delegate to start the extend download.

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

◆ finishBgm:

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

BGM-finish notification handler: resets every tune view and clears the playing-row marker.

Parameters
notificationThe notification.
Ghidra address:
0x1e0fdc

◆ handleLink:

- (void) handleLink: (nullable id) sender

Link-button tap: builds the jump URL and raises a confirmation alert.

The pack-level link button confirms opening the related site in Safari; a tune's link button confirms opening the iTunes Store.

Parameters
senderThe tapped link button.
Ghidra address:
0x1e0550

◆ handleSample:

- (void) handleSample: (nullable id) sender

Sample-button tap: toggles the tapped tune's preview.

Stops it if already playing, otherwise stops any other playing tune and starts downloading the tapped tune's preview.

Parameters
senderThe tapped sample button.
Ghidra address:
0x1e0b8c

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the card: the pack background and artwork, the name and comment labels, the copyright text view, the relation-tab strip with its two tabs, the link button, the purchase and extend-download buttons, the tune scroll view with its four seed tune views, the recommended-pack table with its backing scroll view, the loading overlay, and the right-half back button.

Parameters
frameThe card's frame.
Returns
The initialised card.
Ghidra address:
0x1dbf70
Ghidra address:
0x1dbf70

◆ loadInfo

- (void) loadInfo

Loads the pack detail: shows it directly when the track list is already present, otherwise starts the info download for the pack.

Ghidra address:
0x1dfef8

◆ loadRestoreInfo

- (void) loadRestoreInfo

Loads the pack detail for a restore: like -loadInfo but fetches the restore endpoint.

Ghidra address:
0x1e0114

◆ popOutDetailView

- (void) popOutDetailView

Back-button tap: asks the delegate to pop the detail list.

Ghidra address:
0x1e1f6c

◆ 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 strip.

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

◆ removePackInfo

- (void) removePackInfo

Clears the pack and returns every subview to its empty state, resets the relation strip, disables the relation buttons, and unsubscribes from the BGM finish notification.

Ghidra address:
0x1dd9bc

◆ setActive

- (void) setActive

Marks the card active by removing the right-half back button.

Ghidra address:
0x1e1f54

◆ setInactive

- (void) setInactive

Marks the card inactive by re-adding the right-half back button over it.

Ghidra address:
0x1e1f3c

◆ setRelationColor:animate:

- (void) setRelationColor: (int) color
animate: (BOOL) animate 

Recolours the relation strip for the given list index and, when animating, cross-fades the two backing scroll views over two legs.

Parameters
colorThe list index to select.
animateWhether to cross-fade the backing scroll views.
Ghidra address:
0x1de130
Ghidra address:
0x1de130
Ghidra address:
0x1de56c
Ghidra address:
0x1de5b8
Ghidra address:
0x1de70c
Ghidra address:
0x1de758

◆ setRelationColor:selectable:

- (void) setRelationColor: (int) color
selectable: (BOOL) selectable 

Recolours the relation strip for the given list index and shows or hides the backing scroll views outright (no animation).

Parameters
colorThe list index to select.
selectableWhether the non-selected tab is offered as selectable.
Ghidra address:
0x1dde3c
Ghidra address:
0x1dde3c

◆ showPackInfo

- (void) showPackInfo

Populates the card from the loaded pack: sizes the tune list, fills the labels and artwork, lays out the link button, starts the artwork downloads, kicks off the recommended-pack fetch, and subscribes to the BGM finish notification.

Runs once, guarded by the loaded flag.

Ghidra address:
0x1df04c
Ghidra address:
0x1df04c
Ghidra address:
0x1dfcac
Ghidra address:
0x1dfcf4
Ghidra address:
0x1dfd8c
Ghidra address:
0x1dfeb0

◆ stopSample

- (void) stopSample

Stops the sample tune: fades out the BGM, drops the sample downloader, resets every tune view, and clears the playing-row marker.

Ghidra address:
0x1de848

◆ tapRelationButton:

- (void) tapRelationButton: (nullable id) sender

Relation-tab tap: switches the visible list to the tapped tab and cross-fades the backing scroll views.

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

◆ updatePurchaseState

- (void) updatePurchaseState

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

Ghidra address:
0x1de9d0

Property Documentation

◆ delegate

- (id) delegate
readwritenonatomicweak

The card's delegate, told when to start a purchase, redownload, or extend download, and asked to pop the detail list.

Held weakly and dispatched dynamically, so the binary types it as a bare id .

Ghidra address:
0x1e2738 (getter)
Ghidra address:
0x1e2758 (setter)

◆ packInfo

- (StorePackInfo*) packInfo
readwritenonatomicstrong

The pack being shown.

Ghidra address:
0x1e2714 (getter)
Ghidra address:
0x1e2724 (setter)

◆ viewController

- (UIViewController*) viewController
readwritenonatomicweak

The controller that owns this card, messaged to close the card and to open iTunes.

Held weakly.

Ghidra address:
0x1e276c (getter)
Ghidra address:
0x1e278c (setter)

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