|
JubeatPlus 3.9.11
|
A downloaded pack's detail card. More...
#include <StorePackDetailView.h>


Instance Methods | |
| (instancetype) | - initWithFrame: |
| Builds the card: the pack background, the pack artwork, the name and comment labels, the copyright text view, the link button, the purchase button, the extend-download button, the scrolling tune list with its four seed tune views, the loading label, and the activity indicator. | |
| (void) | - removePackInfo |
| Clears the pack and returns every subview to its empty state, and unsubscribes from the BGM finish notification. | |
| (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, and shows or hides the extend-download button, from the pack's purchase state. | |
| (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, 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, or loads and plays the preview on the sample 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. | |
Properties | |
| StorePackInfo * | packInfo |
| The pack being shown. | |
| id< StoreDetailViewControllerDelegate > | delegate |
| The card's delegate, told when to start a purchase, redownload, or extend download. | |
| UIViewController * | viewController |
| The controller that owns this card, messaged to close the card and to open iTunes. | |
A downloaded pack's detail card.
| - (void) alertClose: | (nonnull NSDictionary *) | info |
Alert-dismiss delegate: on the server-error alert tells the owning controller to close.
| info | The alert result dictionary. |
Reimplemented from <AlertViewManagerDelegate>.
| - (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.
| info | The alert result dictionary. |
Reimplemented from <AlertViewManagerDelegate>.
| - (void) cancelLoading |
Cancels the in-flight info download, if any.
| - (void) detailClose |
Closes any presented alert.
| - (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.
| sender | The purchase button. |
| - (void) downloaderError: | (id) | downloader |
Downloader failure: raises a network-error alert for the info or sample download.
| downloader | The failed request. |
Reimplemented from <DownloaderDelegate>.
| - (void) downloaderFinished: | (id) | downloader |
Downloader completion: parses the pack detail on the info download, or loads and plays the preview on the sample download.
| downloader | The finished request. |
Reimplemented from <DownloaderDelegate>.
| - (void) downloaderProceed: | (id) | downloader |
Downloader progress.
The shipped body is empty.
| downloader | The request. |
Reimplemented from <DownloaderDelegate>.
| - (void) downloadExtendMusic: | (nullable id) | sender |
Extend-download-button tap: stops the sample, hides the button, and asks the delegate to start the extend download.
| sender | The extend-download button. |
| - (void) finishBgm: | (nullable NSNotification *) | notification |
BGM-finish notification handler: resets every tune view and clears the playing-row marker.
| notification | The notification. |
| - (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.
| sender | The tapped link button. |
| - (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.
| sender | The tapped sample button. |
| - (instancetype) initWithFrame: | (CGRect) | frame |
Builds the card: the pack background, the pack artwork, the name and comment labels, the copyright text view, the link button, the purchase button, the extend-download button, the scrolling tune list with its four seed tune views, the loading label, and the activity indicator.
| frame | The card's frame. |
| - (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) removePackInfo |
Clears the pack and returns every subview to its empty state, and unsubscribes from the BGM finish notification.
| - (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, and subscribes to the BGM finish notification.
Runs once, guarded by the loaded flag.
| - (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, and shows or hides the extend-download button, from the pack's purchase state.
|
readwritenonatomicweak |
The card's delegate, told when to start a purchase, redownload, or extend download.
Held weakly.
|
readwritenonatomicstrong |
The pack being shown.
|
readwritenonatomicweak |
The controller that owns this card, messaged to close the card and to open iTunes.
Held weakly.