18#import <UIKit/UIKit.h>
22NS_ASSUME_NONNULL_BEGIN
31@protocol SettingsTwAccSelectViewDelegate <NSObject>
37- (void)accessorySelected:(nullable NSString *)identifier;
42- (void)accessoryChange:(nullable NSString *)identifier;
65- (instancetype)initWithFrame:(CGRect)frame
66 delegate:(nullable
id<SettingsTwAccSelectViewDelegate>)delegate
67 dataSource:(nullable NSMutableArray *)dataSource;
75- (NSInteger)numberOfSectionsInTableView:(nonnull UITableView *)tableView;
84- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
93- (CGFloat)tableView:(nonnull UITableView *)tableView
94 heightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
103- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView
104 cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
113- (void)tableView:(nonnull UITableView *)tableView
114 willDisplayCell:(nonnull UITableViewCell *)cell
115 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
124- (void)tableView:(nonnull UITableView *)tableView
125 didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
133- (void)alertSelect:(nonnull NSDictionary *)info;
159- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
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.