10#import <UIKit/UIKit.h>
17NS_ASSUME_NONNULL_BEGIN
40@protocol ScratchViewDelegate <NSObject>
51- (void)scratchEnable:(BOOL)enable;
61- (void)showModalDialog:(
id)sender;
69- (void)selectScratch:(
id)sender;
74- (void)scratchStart:(
id)sender;
79- (void)scratchEnd:(
id)sender;
92@property(nonatomic, weak, nullable) id<ScratchViewDelegate>
aDelegate;
100- (instancetype)initWithFrame:(CGRect)frame;
107- (void)refreshScratchImage:(nullable
ScratchInfo *)info;
114- (void)updateView:(BOOL)animated;
121- (void)tapScratchView:(nullable id)sender;
128- (void)touchEndScratch:(nullable id)sender;
135- (void)touchBeganScratch:(nullable id)sender;
148- (void)moveScratchView:(nullable id)sender;
155- (void)scratchEffect:(BOOL)show;
175- (void)scratchOpen:(BOOL)animated;
195- (void)downloaderFinished:(nullable
Downloader *)downloader;
202- (void)downloaderError:(nullable
Downloader *)downloader;
209- (void)downloaderProceed:(nullable
Downloader *)downloader;
222- (void)setButtonEnable:(BOOL)enable;
One scratch track's identity and the player's per-difficulty results.
ScratchViewState
The three discrete states -getState reports.
Definition ScratchView.h:25
@ ScratchViewStateScratching
The card is mid-scratch (step in the open animation range).
Definition ScratchView.h:28
@ ScratchViewStateOpen
The card has been fully revealed.
Definition ScratchView.h:27
@ ScratchViewStateClosed
The card is closed and unscratched.
Definition ScratchView.h:26
A one-shot HTTP request that reports its result to a delegate.
Definition Downloader.h:52
A scratch track resolved from the challenge line-up, with the player's score, rank,...
Definition ScratchInfo.h:18
One scratch card: a jacket image under five stacked cover layers, with a rub gesture,...
Definition ScratchView.h:86
void imageSet()
A placeholder image-installation hook (empty in the binary).
Definition ScratchView.m:226
BOOL scratchContinue()
Continues a paused scratch: opens the card early, or resumes and refreshes.
Definition ScratchView.m:354
id< ScratchViewDelegate > aDelegate
The scratch delegate.
Definition ScratchView.h:92
ScratchViewState getState()
The current scratch state.
Definition ScratchView.m:411
void startIndicator()
Starts the download indicator spinner.
Definition ScratchView.m:275
void scratchCancel()
Cancels a paused scratch, restoring the covers and stopping the spinner.
Definition ScratchView.m:371
void timerUpdate()
A per-frame timer hook (empty in the binary).
Definition ScratchView.m:419
A rounded panel with a spinner, a one-line message, a progress bar and an abort button.
Definition StoreDialogView.h:37
Performs a single HTTP request.
Definition Downloader.h:30
nullable StoreDialogView * modalDialog()
The host's modal download dialog, or nil before it has been built.
BOOL isScratchEnable()
Whether the card may currently be scratched.
void hideModalDialog()
Hides the modal download dialog.