|
JubeatPlus 3.9.11
|
A downloaded pack's detail card (version 2). More...
#include <StorePackDetailViewV2.h>


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. | |
A downloaded pack's detail card (version 2).
| - (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.
The card forwards itself to the delegate.
| 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, loads and plays the preview on the sample download, or resolves the recommended-pack products on the recommend 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 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.
| 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) popOutDetailView |
Back-button tap: asks the delegate to pop the detail list.
| - (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.
| request | The finished products request. |
| response | The returned products. |
| - (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) setActive |
Marks the card active by removing the right-half back button.
| - (void) setInactive |
Marks the card inactive by re-adding the right-half back button over it.
| - (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.
| color | The list index to select. |
| animate | Whether to cross-fade the backing scroll views. |
| - (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).
| color | The list index to select. |
| selectable | Whether the non-selected tab is offered as selectable. |
| - (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.
| - (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) tapRelationButton: | (nullable id) | sender |
Relation-tab tap: switches the visible list to the tapped tab and cross-fades the backing scroll views.
| sender | The tapped relation-tab button, whose tag names the list to show. |
| - (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.
|
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 .
|
readwritenonatomicstrong |
The pack being shown.
|
readwritenonatomicweak |
The controller that owns this card, messaged to close the card and to open iTunes.
Held weakly.