JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StorePurchasedViewController.h
Go to the documentation of this file.
1
21
22#import <StoreKit/StoreKit.h>
23#import <UIKit/UIKit.h>
24
25#import "Downloader.h"
27
29@class StorePackInfo;
32@class StoreButton;
33@class StoreLoadingView;
35
36NS_ASSUME_NONNULL_BEGIN
37
41// clang-format off
42// One protocol per line: a continuation line that begins with ": Base <" is read by Doxygen as
43// undocumented ivars named after the trailing protocols.
44@interface StorePurchasedViewController : UIViewController <DownloaderDelegate,
45 SKProductsRequestDelegate>
46// clang-format on
47
57- (instancetype)initWithParent:(nullable id<StoreParentViewController>)parent;
58
63- (void)resetPurchasedList;
64
71
77
83- (void)loadView;
84
90- (void)updatePurchaseStateForPackID:(int)packID;
91
98- (void)handleTapCoverView:(nullable UITapGestureRecognizer *)recognizer;
99
104- (void)startFetch;
105
110- (void)cancelFetching;
111
117- (void)showError:(nullable NSString *)message;
118
124
131- (void)storePackTableViewShowDetail:(nullable StorePackInfo *)packInfo;
132
138
144- (void)downloaderFinished:(id)downloader;
145
151- (void)downloaderError:(id)downloader;
152
158- (void)downloaderProceed:(id)downloader;
159
166- (void)productsRequest:(SKProductsRequest *)request
167 didReceiveResponse:(SKProductsResponse *)response;
168
174- (void)requestDidFinish:(SKRequest *)request;
175
182- (void)request:(SKRequest *)request didFailWithError:(NSError *)error;
183
188- (void)viewDidUnload;
189
195- (void)viewWillAppear:(BOOL)animated;
196
202- (void)viewDidAppear:(BOOL)animated;
203
209- (void)viewWillDisappear:(BOOL)animated;
210
216- (void)viewDidDisappear:(BOOL)animated;
217
222- (void)storeClose;
223
230- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
231
237- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
238
244- (BOOL)shouldAutorotate;
245
251- (void)dealloc;
252
253@end
254
255NS_ASSUME_NONNULL_END
256
257// code: language=Objective-C
258// kate: hl Objective-C;
259// vim: set ft=objc :
The HTTP client.
The store-parent interface shared by the two store tab controllers.
A button that fills itself with a solid colour and rounds its own corners.
Definition StoreButton.h:23
A spinner with a caption, swapped for a message when something fails.
Definition StoreLoadingView.h:23
A downloaded pack's detail card.
Definition StorePackDetailView.h:32
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
A store model for a single pack-list genre.
Definition StorePackListGenre.h:25
A table of one genre's store packs with lazily-downloaded artwork and an infinite-scroll "load more" ...
Definition StorePackTableView.h:41
Lists the user's purchased packs with a restore-purchases action and a pack detail view.
Definition StorePurchasedViewController.h:45
void cancelFetching()
Cancels the in-flight catalogue downloader and product request.
Definition StorePurchasedViewController.m:344
void storeClose()
Closes any open alert.
Definition StorePurchasedViewController.m:607
void startLoadPurchasedList()
Gathers the owned and pending pack identifiers, then either shows the empty-list message or starts th...
Definition StorePurchasedViewController.m:134
BOOL shouldAutorotate()
Whether the screen rotates.
Definition StorePurchasedViewController.m:625
void viewDidUnload()
Chains to super; the override adds nothing of its own.
Definition StorePurchasedViewController.m:557
void startFetch()
Fetches the next page of purchased-pack catalogue entries.
Definition StorePurchasedViewController.m:328
void loadView()
Builds the view: a vertical grey gradient behind the pack table, plus the iPad detail overlay and the...
Definition StorePurchasedViewController.m:182
void reloadPurchasedList()
Resets and reloads the purchased-pack list from scratch.
Definition StorePurchasedViewController.m:174
void dealloc()
Cancels nothing and removes no observers; the ivars are torn down by the generated destructor.
Definition StorePurchasedViewController.m:116
void resetPurchasedList()
Clears the resolved and unresolved pack lists and the table's current genre.
Definition StorePurchasedViewController.m:126
void storePackDetailViewClose()
StorePackDetailView close callback: dismisses the iPad overlay.
Definition StorePurchasedViewController.m:427
void storePackTableViewLoadMore()
StorePackTableView load-more callback: fetches the next page.
Definition StorePurchasedViewController.m:382
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen supports.
Definition StorePurchasedViewController.m:620
The store's root tab container and shared purchase, download, and agreement coordinator.
Definition StoreViewController.h:52
Performs a single HTTP request.
Definition Downloader.h:30