|
JubeatPlus 3.9.11
|
A store pack's detail screen (version 2). More...
#include <StoreDetailViewControllerV2.h>


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. | |
A store pack's detail screen (version 2).
| - (void) alertClose: | (nonnull NSDictionary *) | info |
Alert dismissal callback: pops the navigation stack once.
| info | The alert result dictionary. |
Reimplemented from <AlertViewManagerDelegate>.
| - (void) alertSelect: | (nonnull NSDictionary *) | info |
Alert button callback: on the confirm button of the info-error alert, pops the navigation stack once.
| info | The alert result dictionary carrying "btnMessage" and "Tag". |
Reimplemented from <AlertViewManagerDelegate>.
| - (void) detailClose |
Sends -detailClose to every cell that answers it so the rows can shut themselves.
| - (void) doPurchase: | (nullable id) | sender |
Purchase-button tap: forwards purchase or redownload to the delegate.
| sender | The purchase button. |
| - (void) downloaderError: | (nullable id) | downloader |
Downloader failure: presents a network-error alert, tagged so the info downloader's alert pops the navigation stack.
| downloader | The failed request. |
| - (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.
| downloader | The finished request. |
| - (void) downloaderProceed: | (nullable id) | downloader |
Downloader progress callback.
The shipped body is empty.
| downloader | The request. |
| - (void) downloadExtendMusic: | (nullable id) | sender |
Extend-button tap: hides the button on every header and forwards extend-download to the delegate.
| sender | The extend-download button. |
| - (void) finishBgm: | (nullable NSNotification *) | notification |
Background-music-finished notification: stops the playing row's sample overlay.
| notification | The notification. |
| - (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.
| downloader | The finished image downloader. |
| key | The index path the downloader was keyed with. |
Reimplemented from <ImageDownloaderDelegate>.
| - (instancetype) init |
Sets the navigation title and, where available, opts out of opaque-bar layout.
| - (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) 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) 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.
| request | The finished products request. |
| response | The returned products. |
| - (void) productViewControllerDidFinish: | (nonnull SKStoreProductViewController *) | viewController |
SKStoreProductViewController finish: dismisses it and clears the reference once the dismissal completes.
| viewController | The finished product view controller. |
| - (void) showPackInfo |
Installs the headers, refreshes the purchase state, starts the header artwork download, reveals the tables, and fetches the recommended-pack list.
| - (void) stopDownloadArtworks |
Cancels every in-flight artwork downloader, detaches its delegate, and empties the map.
| - (void) stopSample |
Fades out the sample, drops the sample downloader, clears the playing row, and reloads.
| - (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.
| url | The iTunes URL. |
| - (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.
| sender | The tapped relation-tab button, whose tag names the list to show. |
| - (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.
|
readwritenonatomicassign |
Whether the detail was reached through the restore flow, selecting the restore-pack-info endpoint over the regular one.
|
readwritenonatomicweak |
The delegate notified as the page closes its navigation.
Held weakly.
|
readwritenonatomicweak |
The action delegate for purchase, redownload, and extend-download.
Held weakly.
|
readwritenonatomicstrong |
The pack being displayed.