|
JubeatPlus 3.9.11
|
A challenge-mission reward-item download overlay. More...
#include <MissionRewardDownloadView.h>


Instance Methods | |
| (instancetype) | - initWithFrame: |
| Builds the plate, icon, labels, buttons, progress dialog, and sample controls for the current idiom. | |
| (BOOL) | - checkItemDownload |
| Reports whether the reward item is already present on disk. | |
| (void) | - setMissionInfo:enableDownload: |
| Populates the icon, labels, and download button from a reward and kicks off the image fetch. | |
| (void) | - tapCloseBtn: |
| The close button's action: stops any sample playback, cancels downloads, and tells the delegate to close the reward window. | |
| (void) | - tapSample |
| The sample button's action: downloads the sample-tune metadata, or toggles playback of an already-loaded sample. | |
| (void) | - sampleWait |
| Timer callback that starts sample playback once the loading delay elapses. | |
| (void) | - tapDownload |
| The download button's action: posts the reward id and begins the metadata fetch. | |
| (void) | - downloaderFinished: |
| Downloader completion callback; dispatches on the request's tag. | |
| (void) | - downloaderError: |
| Downloader failure callback; stops spinners, dismisses the dialog, and shows an error alert for the item-download stage. | |
| (void) | - downloaderProceed: |
| Downloader progress callback; drives the dialog's progress bar during the item download. | |
| (void) | - storeDialogCancel: |
| The progress dialog's abort callback: cancels the item download and hides the dialog. | |
| (void) | - showDialog |
| Fades the progress dialog in. | |
| (void) | - hideDialog |
| Plays a sound effect and fades the progress dialog out. | |
| (void) | - alertSelect: |
| Alert-button callback; closes the challenge-mode session on the server-error alert. | |
| (void) | - downloadManagerStartTask: |
| Store download-manager task-start callback. | |
| (void) | - downloadManagerCompleted: |
| Store download-manager completion callback; records the reward, dismisses the dialog, and marks the button downloaded. | |
| (void) | - downloadManagerFailed: |
| Store download-manager failure callback; shows an error alert and dismisses the dialog. | |
| (void) | - downloadManagerProceed: |
| Store download-manager progress callback; drives the dialog's progress bar. | |
| Instance Methods inherited from <AlertViewManagerDelegate> | |
| (void) | - alertSelect: |
Sent when the user taps a button in an alert built with makeAlert:. | |
| (void) | - alertClose: |
Sent when a UIAlertController -based alert finishes dismissing. | |
| 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. | |
| Instance Methods inherited from <StoreDownloadManagerDelegate> | |
| (void) | - downloadManagerStartTask: |
| A task has started. | |
| (void) | - downloadManagerProceed: |
| The current task made progress. | |
| (void) | - downloadManagerCompleted: |
| All tasks completed. | |
| (void) | - downloadManagerFailed: |
| A task failed. | |
Properties | |
| id | aDelegate |
| The overlay's owner, told when the window is closed. | |
A challenge-mission reward-item download overlay.
| - (void) alertSelect: | (nullable NSDictionary *) | info |
Alert-button callback; closes the challenge-mode session on the server-error alert.
| info | The alert's echoed-back info dictionary. |
| - (BOOL) checkItemDownload |
Reports whether the reward item is already present on disk.
For a sticker the answer is whether the shared app-group container is available; for a music item and a marker it resolves the item's on-disk path (also caching it in itemPath) and asks NSFileManager whether that file exists.
YES when the item is considered already downloaded. | - (void) downloaderError: | (nullable Downloader *) | downloader |
Downloader failure callback; stops spinners, dismisses the dialog, and shows an error alert for the item-download stage.
| downloader | The failed request. |
| - (void) downloaderFinished: | (nullable Downloader *) | downloader |
Downloader completion callback; dispatches on the request's tag.
| downloader | The finished request. |
| - (void) downloaderProceed: | (nullable Downloader *) | downloader |
Downloader progress callback; drives the dialog's progress bar during the item download.
| downloader | The request making progress. |
| - (void) downloadManagerCompleted: | (nullable StoreDownloadManager *) | manager |
Store download-manager completion callback; records the reward, dismisses the dialog, and marks the button downloaded.
| manager | The download manager. |
| - (void) downloadManagerFailed: | (nullable StoreDownloadManager *) | manager |
Store download-manager failure callback; shows an error alert and dismisses the dialog.
| manager | The download manager. |
| - (void) downloadManagerProceed: | (nullable StoreDownloadManager *) | manager |
Store download-manager progress callback; drives the dialog's progress bar.
| manager | The download manager. |
| - (void) downloadManagerStartTask: | (nullable StoreDownloadManager *) | manager |
Store download-manager task-start callback.
Empty in this view.
| manager | The download manager. |
| - (void) hideDialog |
Plays a sound effect and fades the progress dialog out.
| - (instancetype) initWithFrame: | (CGRect) | frame |
Builds the plate, icon, labels, buttons, progress dialog, and sample controls for the current idiom.
| frame | The view's frame. |
| - (void) sampleWait |
Timer callback that starts sample playback once the loading delay elapses.
| - (void) setMissionInfo: | (nullable ChallengeMissionReward *) | reward | |
| enableDownload: | (BOOL) | enableDownload |
Populates the icon, labels, and download button from a reward and kicks off the image fetch.
| reward | The reward to display. |
| enableDownload | Whether the download button should be offered. |
| - (void) showDialog |
Fades the progress dialog in.
| - (void) storeDialogCancel: | (nullable StoreDialogView *) | dialogView |
The progress dialog's abort callback: cancels the item download and hides the dialog.
| dialogView | The dialog whose abort button was pressed. |
| - (void) tapCloseBtn: | (nullable id) | sender |
The close button's action: stops any sample playback, cancels downloads, and tells the delegate to close the reward window.
| sender | The close button. |
| - (void) tapDownload |
The download button's action: posts the reward id and begins the metadata fetch.
| - (void) tapSample |
The sample button's action: downloads the sample-tune metadata, or toggles playback of an already-loaded sample.
|
readwritenonatomicweak |
The overlay's owner, told when the window is closed.
Weak, per the W attribute and bare @ encoding in the metadata. The close handler messages it through -respondsToSelector: / -performSelector:withObject: rather than a fixed protocol, so it is left untyped.