|
JubeatPlus 3.9.11
|
A store pack's detail screen. More...
#include <StoreDetailViewController.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 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. | |
A store pack's detail screen.
| - (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, or loads and plays a preview clip for the sample 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 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 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 detail table, the header, the loading overlay, the alternating pack-background art, and the artwork-downloader map.
| - (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 header, refreshes the purchase state, starts the header artwork download, and reveals the table.
| - (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) 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.
|
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.