JubeatPlus 3.9.11
Loading...
Searching...
No Matches
<ScratchViewDelegate> Protocol Reference

The delegate a scratch card reports its progress to. More...

#include <ScratchView.h>

Inheritance diagram for <ScratchViewDelegate>:
Collaboration diagram for <ScratchViewDelegate>:

Instance Methods

(BOOL) - isScratchEnable
 Whether the card may currently be scratched.
(void) - scratchEnable:
 Enables or disables scratching across the host.
(nullable StoreDialogView *) - modalDialog
 The host's modal download dialog, or nil before it has been built.
(void) - showModalDialog:
 Shows the modal download dialog over the given sender.
(void) - hideModalDialog
 Hides the modal download dialog.
(void) - selectScratch:
 Sent when this card is chosen.
(void) - scratchStart:
 Sent once the scratch gesture crosses its start threshold.
(void) - scratchEnd:
 Sent once the card is fully scratched open.

Detailed Description

The delegate a scratch card reports its progress to.

The card sends -isScratchEnable and -scratchEnable: directly, reaches its host dialog through -modalDialog / -showModalDialog: / -hideModalDialog , and forwards the four scratch-lifecycle notifications through -performSelector:withObject: after a -respondsToSelector: guard, so those four are optional.

Method Documentation

◆ hideModalDialog

- (void) hideModalDialog
optionalrequired

Hides the modal download dialog.

Reimplemented in ChallengeModeRootView.

◆ isScratchEnable

- (BOOL) isScratchEnable
required

Whether the card may currently be scratched.

Returns
YES while scratching is enabled, NO otherwise.

Reimplemented in ChallengeModeRootView.

◆ modalDialog

- (nullable StoreDialogView *) modalDialog
optionalrequired

The host's modal download dialog, or nil before it has been built.

Returns
The modal download dialog, or nil when it has not been built.

◆ scratchEnable:

- (void) scratchEnable: (BOOL) enable
optionalrequired

Enables or disables scratching across the host.

Parameters
enableYES to enable scratching, NO to disable it.

Reimplemented in ChallengeModeRootView.

◆ scratchEnd:

- (void) scratchEnd: (id) sender
optionalrequired

Sent once the card is fully scratched open.

Parameters
senderThe card that was scratched open.

Reimplemented in ChallengeModeRootView.

◆ scratchStart:

- (void) scratchStart: (id) sender
optionalrequired

Sent once the scratch gesture crosses its start threshold.

Parameters
senderThe card being scratched.

Reimplemented in ChallengeModeRootView.

◆ selectScratch:

- (void) selectScratch: (id) sender
optional

Sent when this card is chosen.

Parameters
senderThe card that was chosen.

Reimplemented in ChallengeModeRootView.

◆ showModalDialog:

- (void) showModalDialog: (id) sender
optionalrequired

Shows the modal download dialog over the given sender.

Parameters
senderThe view the dialog is shown over.

The documentation for this protocol was generated from the following file: