JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SettingsTwDegreeSelectView.h
Go to the documentation of this file.
1
19
20#import <UIKit/UIKit.h>
21
22#import "AlertViewManager.h"
23
24NS_ASSUME_NONNULL_BEGIN
25
33@protocol SettingsTwDegreeSelectViewDelegate <NSObject>
34@optional
39- (void)degreeSelected:(nullable NSString *)display;
44- (void)degreeChange:(nullable NSString *)display;
49@end
50
54@interface SettingsTwDegreeSelectView : UIView <UITableViewDataSource,
55 UITableViewDelegate,
56 UIAlertViewDelegate,
58
67- (instancetype)initWithFrame:(CGRect)frame
68 delegate:(nullable id<SettingsTwDegreeSelectViewDelegate>)delegate
69 dataSource:(nullable NSMutableArray *)dataSource;
70
77- (NSInteger)numberOfSectionsInTableView:(nonnull UITableView *)tableView;
78
86- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
87
95- (CGFloat)tableView:(nonnull UITableView *)tableView
96 heightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
97
105- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView
106 cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
107
115- (void)tableView:(nonnull UITableView *)tableView
116 willDisplayCell:(nonnull UITableViewCell *)cell
117 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
118
126- (void)tableView:(nonnull UITableView *)tableView
127 didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
128
135- (void)alertSelect:(nonnull NSDictionary *)info;
136
141- (void)unlockItem;
142
147- (void)unlockSuccess;
148
153- (void)unlockFailed;
154
161- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
162
168- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
169
175- (BOOL)shouldAutorotate;
176
177@end
178
179NS_ASSUME_NONNULL_END
180
181// code: language=Objective-C
182// kate: hl Objective-C;
183// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
A modal degree-select table backed by a caller-supplied array of item rows.
Definition SettingsTwDegreeSelectView.h:57
void unlockFailed()
Records a failed unlock: clears the pending item.
Definition SettingsTwDegreeSelectView.m:187
UIInterfaceOrientationMask supportedInterfaceOrientations()
The supported interface orientations (portrait mask).
Definition SettingsTwDegreeSelectView.m:200
BOOL shouldAutorotate()
Whether the view should autorotate.
Definition SettingsTwDegreeSelectView.m:205
void unlockSuccess()
Records a successful unlock: zeroes the item's cost, tells the owner, and refreshes.
Definition SettingsTwDegreeSelectView.m:173
void unlockItem()
Performs the unlock of the pending item.
Definition SettingsTwDegreeSelectView.m:168
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
void refreshDegree()
Sent when a locked row's purchase alert is cancelled, so the owner can refresh its state.