JubeatPlus 3.9.11
Loading...
Searching...
No Matches
CubePurchaseView.h
Go to the documentation of this file.
1
19
20#import <StoreKit/StoreKit.h>
21#import <UIKit/UIKit.h>
22
23#import "AlertViewManager.h"
25#import "Downloader.h"
26#import "MessageTextView.h"
27#import "PurchaseManager.h"
28
29@class MessageTextView;
31
32NS_ASSUME_NONNULL_BEGIN
33
39@protocol CubePurchaseViewDelegate <NSObject>
40@optional
47- (void)showPurchaseDialog:(nonnull NSString *)message;
52@end
53
62 SKProductsRequestDelegate,
64
72- (instancetype)initWithFrame:(CGRect)frame;
73
80- (void)closePurchaseMenu:(nullable id)sender;
81
87- (void)tapSptl:(nullable id)sender;
88
95- (void)tapCubePolicy:(nullable id)sender;
96
102- (void)closeMessage:(nullable id)sender;
103
114- (BOOL)checkAttainLimitPurchase:(nullable SKProduct *)product;
115
121- (void)purchaseStart:(nullable SKProduct *)product;
122
129- (void)selectListCell:(nullable NSIndexPath *)indexPath;
130
141- (void)downloaderFinished:(nullable id)downloader;
142
149- (void)downloaderError:(nullable id)downloader;
150
157- (void)alertSelect:(nonnull NSDictionary *)info;
158
165- (void)purchaseSucceeded:(nullable NSString *)productID;
166
174- (void)purchaseFailed:(nullable NSString *)productID error:(nullable NSError *)error;
175
183- (void)productsRequest:(nullable SKProductsRequest *)request
184 didReceiveResponse:(nullable SKProductsResponse *)response;
185
191- (void)requestDidFinish:(nullable SKRequest *)request;
192
200- (void)request:(nullable SKRequest *)request didFailWithError:(nullable NSError *)error;
201
207@property(nonatomic, weak, nullable) id<CubePurchaseViewDelegate> aDelegate;
208
209@end
210
211NS_ASSUME_NONNULL_END
212
213// code: language=Objective-C
214// kate: hl Objective-C;
215// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The cube-purchase pack list view.
The HTTP client.
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