JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MissionRewardDownloadView Class Reference

A challenge-mission reward-item download overlay. More...

#include <MissionRewardDownloadView.h>

Inheritance diagram for MissionRewardDownloadView:
Collaboration diagram for MissionRewardDownloadView:

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.

Detailed Description

A challenge-mission reward-item download overlay.

Method Documentation

◆ alertSelect:

- (void) alertSelect: (nullable NSDictionary *) info

Alert-button callback; closes the challenge-mode session on the server-error alert.

Parameters
infoThe alert's echoed-back info dictionary.
Ghidra address:
0x1796bc

◆ checkItemDownload

- (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.

Returns
YES when the item is considered already downloaded.
Ghidra address:
0x176534
Ghidra address:
0x176534

◆ downloaderError:

- (void) downloaderError: (nullable Downloader *) downloader

Downloader failure callback; stops spinners, dismisses the dialog, and shows an error alert for the item-download stage.

Parameters
downloaderThe failed request.
Ghidra address:
0x178f60

◆ downloaderFinished:

- (void) downloaderFinished: (nullable Downloader *) downloader

Downloader completion callback; dispatches on the request's tag.

Parameters
downloaderThe finished request.
Ghidra address:
0x177cf8

◆ downloaderProceed:

- (void) downloaderProceed: (nullable Downloader *) downloader

Downloader progress callback; drives the dialog's progress bar during the item download.

Parameters
downloaderThe request making progress.
Ghidra address:
0x1790a4

◆ downloadManagerCompleted:

- (void) downloadManagerCompleted: (nullable StoreDownloadManager *) manager

Store download-manager completion callback; records the reward, dismisses the dialog, and marks the button downloaded.

Parameters
managerThe download manager.
Ghidra address:
0x179780

◆ downloadManagerFailed:

- (void) downloadManagerFailed: (nullable StoreDownloadManager *) manager

Store download-manager failure callback; shows an error alert and dismisses the dialog.

Parameters
managerThe download manager.
Ghidra address:
0x17987c

◆ downloadManagerProceed:

- (void) downloadManagerProceed: (nullable StoreDownloadManager *) manager

Store download-manager progress callback; drives the dialog's progress bar.

Parameters
managerThe download manager.
Ghidra address:
0x17995c

◆ downloadManagerStartTask:

- (void) downloadManagerStartTask: (nullable StoreDownloadManager *) manager

Store download-manager task-start callback.

Empty in this view.

Parameters
managerThe download manager.
Ghidra address:
0x17977c

◆ hideDialog

- (void) hideDialog

Plays a sound effect and fades the progress dialog out.

Ghidra address:
0x179458
Ghidra address:
0x179608
Ghidra address:
0x179654

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the plate, icon, labels, buttons, progress dialog, and sample controls for the current idiom.

Parameters
frameThe view's frame.
Returns
The initialised view.
Ghidra address:
0x1767d0
Ghidra address:
0x1767d0

◆ sampleWait

- (void) sampleWait

Timer callback that starts sample playback once the loading delay elapses.

Ghidra address:
0x177a38

◆ setMissionInfo:enableDownload:

- (void) setMissionInfo: (nullable ChallengeMissionReward *) reward
enableDownload: (BOOL) enableDownload 

Populates the icon, labels, and download button from a reward and kicks off the image fetch.

Parameters
rewardThe reward to display.
enableDownloadWhether the download button should be offered.
Ghidra address:
0x177378

◆ showDialog

- (void) showDialog

Fades the progress dialog in.

Ghidra address:
0x1791e0
Ghidra address:
0x1793a0
Ghidra address:
0x1793ec

◆ storeDialogCancel:

- (void) storeDialogCancel: (nullable StoreDialogView *) dialogView

The progress dialog's abort callback: cancels the item download and hides the dialog.

Parameters
dialogViewThe dialog whose abort button was pressed.
Ghidra address:
0x179130

◆ tapCloseBtn:

- (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.

Parameters
senderThe close button.
Ghidra address:
0x177648

◆ tapDownload

- (void) tapDownload

The download button's action: posts the reward id and begins the metadata fetch.

Ghidra address:
0x177b4c

◆ tapSample

- (void) tapSample

The sample button's action: downloads the sample-tune metadata, or toggles playback of an already-loaded sample.

Ghidra address:
0x1777fc

Property Documentation

◆ aDelegate

- (id) aDelegate
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.

Ghidra address:
0x1799c8 (getter), 0x1799e8 (setter)

The documentation for this class was generated from the following files: