JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SettingsTwAccSelectView.h
Go to the documentation of this file.
1
17
18#import <UIKit/UIKit.h>
19
20#import "AlertViewManager.h"
21
22NS_ASSUME_NONNULL_BEGIN
23
31@protocol SettingsTwAccSelectViewDelegate <NSObject>
32@optional
37- (void)accessorySelected:(nullable NSString *)identifier;
42- (void)accessoryChange:(nullable NSString *)identifier;
47@end
48
52@interface SettingsTwAccSelectView : UIView <UITableViewDataSource,
53 UITableViewDelegate,
54 UIAlertViewDelegate,
56
65- (instancetype)initWithFrame:(CGRect)frame
66 delegate:(nullable id<SettingsTwAccSelectViewDelegate>)delegate
67 dataSource:(nullable NSMutableArray *)dataSource;
68
75- (NSInteger)numberOfSectionsInTableView:(nonnull UITableView *)tableView;
76
84- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
85
93- (CGFloat)tableView:(nonnull UITableView *)tableView
94 heightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
95
103- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView
104 cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
105
113- (void)tableView:(nonnull UITableView *)tableView
114 willDisplayCell:(nonnull UITableViewCell *)cell
115 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
116
124- (void)tableView:(nonnull UITableView *)tableView
125 didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
126
133- (void)alertSelect:(nonnull NSDictionary *)info;
134
139- (void)unlockItem;
140
145- (void)unlockSuccess;
146
151- (void)unlockFailed;
152
159- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
160
166- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
167
173- (BOOL)shouldAutorotate;
174
175@end
176
177NS_ASSUME_NONNULL_END
178
179// code: language=Objective-C
180// kate: hl Objective-C;
181// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
A modal accessory-select table backed by a caller-supplied array of item rows.
Definition SettingsTwAccSelectView.h:55
void unlockSuccess()
Records a successful unlock: zeroes the item's cost, tells the owner, and refreshes.
Definition SettingsTwAccSelectView.m:171
UIInterfaceOrientationMask supportedInterfaceOrientations()
The supported interface orientations (portrait mask).
Definition SettingsTwAccSelectView.m:196
void unlockItem()
Performs the unlock of the pending item.
Definition SettingsTwAccSelectView.m:166
void unlockFailed()
Records a failed unlock: clears the pending item.
Definition SettingsTwAccSelectView.m:183
BOOL shouldAutorotate()
Whether the view should autorotate.
Definition SettingsTwAccSelectView.m:201
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
void refreshAccessory()
Sent when a locked row's purchase alert is cancelled, so the owner can refresh its state.