JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StoreMainViewControllerV2.h
Go to the documentation of this file.
1
24
25#import <StoreKit/StoreKit.h>
26#import <UIKit/UIKit.h>
27
28#import "AlertViewManager.h"
29#import "EditorIDManager.h"
34
35@class EditorIDManager;
40@class StoreLoadingView;
42@class StorePackInfo;
45
46NS_ASSUME_NONNULL_BEGIN
47
51@interface StoreMainViewControllerV2 : UIViewController <UITableViewDataSource,
52 UITableViewDelegate,
58 SKStoreProductViewControllerDelegate,
61
72- (instancetype)initWithParent:(nullable StoreViewControllerV2 *)parent;
73
79- (void)loadView;
80
86- (void)loadInitialPacklist:(NSInteger)packID;
87
93- (void)loadInitialPacklistWithGenre:(NSInteger)genreID;
94
99- (void)refresh;
100
105- (void)tapNavigation;
106
112- (void)updatePurchaseStateForPackID:(int)packID;
113
120- (void)showDetailForPackInfo:(nullable StorePackInfo *)packInfo;
121
128- (void)switchToGenre:(NSUInteger)genreIndex;
129
137- (BOOL)tapReccommendPack:(nullable StorePackInfo *)packInfo;
138
144- (void)pushDetailList:(nullable StorePackDetailViewV2 *)detailView;
145
150- (void)popDetailList;
151
156- (void)allReleaseDetail;
157
162- (void)clearDetailWindow;
163
169- (void)addOpenDetail:(NSInteger)genreID;
170
176- (void)handleTapCoverView:(nullable UITapGestureRecognizer *)recognizer;
177
183- (void)hideGenreSelect:(nullable id)sender;
184
191- (void)handleBackButton:(nullable id)sender;
192
197- (void)storeClose;
198
199#pragma mark - StorePackListDelegate
200
208- (void)packListDownloadSuccess:(StorePackListController *)controller
209 isInitial:(BOOL)isInitial
210 showPack:(nullable StorePackInfo *)showPack;
211
218- (void)additionPackInfoDownloadSuccess:(StorePackListController *)controller
219 showPack:(nullable StorePackInfo *)showPack;
220
227- (void)packListDownloadError:(StorePackListController *)controller
228 errorMessage:(nullable NSString *)errorMessage;
229
236- (void)packListDownloadNothing:(StorePackListController *)controller;
237
238#pragma mark - StorePromotionViewDelegate
239
246- (void)storePromotionView:(StorePromotionView *)view packSelected:(StorePackInfo *)packInfo;
247
254- (void)storePromotionView:(StorePromotionView *)view genreSelected:(NSUInteger)genreIndex;
255
256#pragma mark - StoreGenreSelectViewDelegate
257
263- (void)StoreGenreSelectViewDelegateGenreSelected:(NSUInteger)index;
264
265#pragma mark - Pack table / pack detail callbacks
266
272
278- (void)storePackTableViewShowDetail:(nullable StorePackInfo *)packInfo;
279
285
291- (void)storePackDetailViewOpenItunesWithURL:(nullable NSURL *)url;
292
293#pragma mark - Detail-close / recommend tracking
294
301
307- (void)detailViewStartPurchase:(nullable StoreDetailViewControllerV2 *)packInfo;
308
315- (void)detailViewStartRedownload:(nullable StoreDetailViewControllerV2 *)packInfo;
316
317#pragma mark - EditorIDManagerDelegate
318
324- (void)successIDDownload:(nullable id)manager;
325
332- (void)errorIDDownload:(nullable id)manager msgStr:(nullable NSString *)msgStr;
333
334#pragma mark - AlertViewManagerDelegate
335
341- (void)alertSelect:(nonnull NSDictionary *)info;
342
343#pragma mark - SKStoreProductViewControllerDelegate
344
350- (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController;
351
352#pragma mark - UITableViewDataSource / UITableViewDelegate
353
360- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
361
369- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
370
378- (UITableViewCell *)tableView:(UITableView *)tableView
379 cellForRowAtIndexPath:(NSIndexPath *)indexPath;
380
388- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
389
397- (void)tableView:(UITableView *)tableView
398 willDisplayCell:(UITableViewCell *)cell
399 forRowAtIndexPath:(NSIndexPath *)indexPath;
400
407- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
408
409#pragma mark - View lifecycle
410
416- (void)viewWillAppear:(BOOL)animated;
417
423- (void)viewDidAppear:(BOOL)animated;
424
430- (void)viewWillDisappear:(BOOL)animated;
431
437- (void)viewDidDisappear:(BOOL)animated;
438
444
449- (void)viewDidLoad;
450
455- (void)viewDidUnload;
456
463- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
464
470- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
471
477- (BOOL)shouldAutorotate;
478
483- (void)dealloc;
484
485@end
486
487NS_ASSUME_NONNULL_END
488
489// code: language=Objective-C
490// kate: hl Objective-C;
491// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The editor identifier store, backed by the keychain.
The store pack-detail page, the V2 (recommend-aware, relation-tab) variant.
A horizontally-scrolling store genre picker: a row of tappable genre banners inside a paging scroll v...
The store's pack-list data-model controller.
The store's promotion-banner carousel.
Holds the editor identifier and its passphrase as keychain items.
Definition EditorIDManager.h:41
Forwards every rotation decision to topViewController.
Definition RotatableNavigationController.h:26
A store pack's detail screen (version 2).
Definition StoreDetailViewControllerV2.h:89
A genre table that rotates only between the two portrait orientations.
Definition StoreGenreTableViewController.h:23
A genre heading with a title, a description, and an optional downloaded banner.
Definition StoreGenreTitleView.h:35
A spinner with a caption, swapped for a message when something fails.
Definition StoreLoadingView.h:23
The store's genre-grouped pack browser with a promotion carousel and pack detail.
Definition StoreMainViewControllerV2.h:60
BOOL shouldAutorotate()
Whether the screen rotates.
Definition StoreMainViewControllerV2.m:397
void storePackTableViewLoadMore()
Pack-table load-more callback: fetches the next page for the current genre.
Definition StoreMainViewControllerV2.m:1128
void viewDidLoad()
Gives every navigation-bar subview exclusive touch so a tap cannot fall through.
Definition StoreMainViewControllerV2.m:303
void tapNavigation()
Scrolls the pack table back to the top (the navigation-bar title tap target).
Definition StoreMainViewControllerV2.m:445
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen supports.
Definition StoreMainViewControllerV2.m:392
void didReceiveMemoryWarning()
Handles a low-memory warning.
Definition StoreMainViewControllerV2.m:373
void dealloc()
Clears the pack table's current genre and cancels any editor-ID download in flight.
Definition StoreMainViewControllerV2.m:402
void refresh()
Reloads the current genre's rows if it holds any packs.
Definition StoreMainViewControllerV2.m:438
void allReleaseDetail()
Adds a freshly-fetched additional pack to the detail stack; the shipped body is empty.
Definition StoreMainViewControllerV2.m:719
void loadView()
Builds the view: a vertical grey gradient behind a pack table, plus (on pad) a rounded pack-list cont...
Definition StoreMainViewControllerV2.m:229
void storePackDetailViewClose()
Pack-detail close callback: dismisses the pad overlay.
Definition StoreMainViewControllerV2.m:1140
void detailViewCloseNavigation()
Detail-close navigation callback: decrements the open-detail count unless the close was a recommend p...
Definition StoreMainViewControllerV2.m:1168
void storeClose()
Closes any open alert and the pad detail overlay, then dismisses this controller.
Definition StoreMainViewControllerV2.m:822
void viewDidUnload()
Releases the table, pad cover, pad detail overlay, and loading view.
Definition StoreMainViewControllerV2.m:378
void clearDetailWindow()
Fades out and dismantles every pad pack-detail overlay, keeping the root entry.
Definition StoreMainViewControllerV2.m:724
void popDetailList()
Pops the top pad pack-detail overlay off the stack, sliding the stack back.
Definition StoreMainViewControllerV2.m:673
A downloaded pack's detail card (version 2).
Definition StorePackDetailViewV2.h:45
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
Fetches, groups, and vends the store's genre and pack lists.
Definition StorePackListController.h:71
A table of one genre's store packs with lazily-downloaded artwork and an infinite-scroll "load more" ...
Definition StorePackTableView.h:41
A paging carousel of promotion banners with auto-advance and per-banner sample playback.
Definition StorePromotionView.h:60
The store's four-tab container and shared purchase/restore/download coordinator.
Definition StoreViewControllerV2.h:45
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Told how the editor-identifier provisioning download finished.
Definition EditorIDManager.h:22
Receives the pack-detail page's navigation-close notification.
Definition StoreDetailViewControllerV2.h:72
Receives the pack-detail page's purchase, redownload, and extend-download actions.
Definition StoreDetailViewControllerV2.h:47
What a StoreGenreSelectView tells its owner when the selection changes.
Definition StoreGenreSelectView.h:20
Receives the pack-list controller's download outcomes.
Definition StorePackListController.h:36
Receives the carousel's banner-tap selections.
Definition StorePromotionView.h:37