JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeMenuView.h
Go to the documentation of this file.
1
11
12#import <UIKit/UIKit.h>
13
14#import "AlertViewManager.h"
15#import "PurchaseManager.h"
16
17NS_ASSUME_NONNULL_BEGIN
18
25@protocol ChallengeMenuViewDelegate <NSObject>
32- (void)selectMenu:(nullable NSNumber *)menu;
33@end
34
43@interface ChallengeMenuView : UIView <UITableViewDataSource,
44 UITableViewDelegate,
47
52@property(nonatomic, weak, nullable) id<ChallengeMenuViewDelegate> aDelegate;
53
60- (instancetype)initWithFrame:(CGRect)frame;
61
67- (void)closeSettingMenu:(nullable id)sender;
68
79- (void)tapMenu:(nullable id)sender;
80
87- (void)alertSelect:(nullable NSDictionary *)info;
88
94- (void)showVerifyDialog:(nullable NSString *)message;
95
100- (void)hideVerifyDialog;
101
107- (void)restoreFailed:(nullable NSError *)error;
108
113- (void)restoreNothing;
114
121- (void)restoreSucceeded;
122
128- (void)purchaseSucceeded:(nullable NSString *)productID;
129
136- (void)purchaseFailed:(nullable NSString *)productID error:(nullable NSError *)error;
137
142- (void)refreshView;
143
149- (void)setPresentNum:(int)num;
150
155- (void)setPresentMark;
156
157@end
158
159NS_ASSUME_NONNULL_END
160
161// code: language=Objective-C
162// kate: hl Objective-C;
163// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The StoreKit purchase manager.
The challenge-mode landing menu.
Definition ChallengeMenuView.h:46
void restoreNothing()
Restore finished with nothing to restore: hides the dialog and shows the completion alert.
Definition ChallengeMenuView.m:281
void setPresentMark()
Reads the unread-present count and pushes it onto the first row's cell.
Definition ChallengeMenuView.m:384
id< ChallengeMenuViewDelegate > aDelegate
The object told about close and row-selection events.
Definition ChallengeMenuView.h:52
void hideVerifyDialog()
Removes the progress dialog and re-enables interaction.
Definition ChallengeMenuView.m:266
void refreshView()
Refreshes the present badge on the first row.
Definition ChallengeMenuView.m:355
void restoreSucceeded()
Restore succeeded: hides the dialog and shows the completion alert.
Definition ChallengeMenuView.m:299
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
void closeRootMenu()
The close button was tapped.
Drives in-app purchases.
Definition PurchaseManager.h:24