20#import <StoreKit/StoreKit.h>
21#import <UIKit/UIKit.h>
32NS_ASSUME_NONNULL_BEGIN
39@protocol CubePurchaseViewDelegate <NSObject>
47- (void)showPurchaseDialog:(nonnull NSString *)message;
62 SKProductsRequestDelegate,
72- (instancetype)initWithFrame:(CGRect)frame;
80- (void)closePurchaseMenu:(nullable
id)sender;
87- (void)tapSptl:(nullable
id)sender;
95- (void)tapCubePolicy:(nullable
id)sender;
102- (void)closeMessage:(nullable
id)sender;
114- (BOOL)checkAttainLimitPurchase:(nullable SKProduct *)product;
121- (void)purchaseStart:(nullable SKProduct *)product;
129- (void)selectListCell:(nullable NSIndexPath *)indexPath;
141- (void)downloaderFinished:(nullable
id)downloader;
149- (void)downloaderError:(nullable
id)downloader;
157- (void)alertSelect:(nonnull NSDictionary *)info;
165- (void)purchaseSucceeded:(nullable NSString *)productID;
174- (void)purchaseFailed:(nullable NSString *)productID error:(nullable NSError *)error;
183- (void)productsRequest:(nullable SKProductsRequest *)request
184 didReceiveResponse:(nullable SKProductsResponse *)response;
191- (void)requestDidFinish:(nullable SKRequest *)request;
200- (void)request:(nullable SKRequest *)request didFailWithError:(nullable NSError *)error;
207@property(nonatomic, weak, nullable) id<CubePurchaseViewDelegate>
aDelegate;
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The cube-purchase pack list view.
The message-board modal that downloads and shows a text message with an Agree button.
The StoreKit purchase manager.
A modal view that sells cubes: a scrollable product list backed by StoreKit, an age / spend-limit gat...
Definition CubePurchaseView.h:63
id< CubePurchaseViewDelegate > aDelegate
The delegate told when the purchase menu closes and when the purchase dialog should be shown,...
Definition CubePurchaseView.h:207
A rounded, gradient-filled board that shows a title, a scrollable message body, and an Agree button,...
Definition MessageTextView.h:49
A Downloader whose every request is session-signed and retried on a stale session.
Definition SessionDownloader.h:28
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Told when a purchase row is chosen.
Definition CubePurchaseListView.h:19
void closeCubePurchase()
Dismisses the cube-purchase menu.
void hidePurchaseDialog()
Hides the modal processing dialog.
void refreshStatus()
Refreshes the owner's cube-count and related status.
Performs a single HTTP request.
Definition Downloader.h:30
Told when the message board closes or when its download fails.
Definition MessageTextView.h:29
Drives in-app purchases.
Definition PurchaseManager.h:24