JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StoreMainViewController.h
Go to the documentation of this file.
1
26
27#import <StoreKit/StoreKit.h>
28#import <UIKit/UIKit.h>
29
30#import "AlertViewManager.h"
31#import "EditorIDManager.h"
38
39@class BalloonView;
44@class StoreLeafletView;
45@class StoreLoadingView;
47@class StorePackInfo;
51
52NS_ASSUME_NONNULL_BEGIN
53
57@interface StoreMainViewController : UIViewController <UITableViewDataSource,
58 UITableViewDelegate,
59 UIScrollViewDelegate,
60 UIPopoverPresentationControllerDelegate,
69 SKStoreProductViewControllerDelegate>
70
82- (instancetype)initWithParent:(nullable id<StoreParentViewController>)parent;
83
89- (void)loadView;
90
96- (void)loadInitialPacklist:(NSInteger)packID;
97
103- (void)loadInitialPacklistWithGenre:(NSInteger)genreID;
104
109- (void)refresh;
110
116- (void)tapNavigation;
117
122- (void)packListScrolled;
123
129- (void)updatePurchaseStateForPackID:(int)packID;
130
137- (void)showDetailForPackInfo:(nullable StorePackInfo *)packInfo;
138
145- (void)switchToGenre:(NSUInteger)genreIndex;
146
154- (BOOL)tapReccommendPack:(nullable StorePackInfo *)packInfo;
155
161- (void)pushDetailList:(nullable StorePackDetailViewV2 *)detailView;
162
167- (void)popDetailList;
168
173- (void)allReleaseDetail;
174
179- (void)clearDetailWindow;
180
186- (void)addOpenDetail:(NSInteger)genreID;
187
194- (void)pushOpenDetail:(nullable NSNumber *)packID;
195
201- (void)handleTapCoverView:(nullable UITapGestureRecognizer *)recognizer;
202
208- (void)hideGenreSelect:(nullable id)sender;
209
216- (void)handleBackButton:(nullable id)sender;
217
223- (void)handleTapPolicyButton:(nullable id)sender;
224
229- (void)storeClose;
230
231#pragma mark - StorePackListDelegate
232
240- (void)packListDownloadSuccess:(StorePackListController *)controller
241 isInitial:(BOOL)isInitial
242 showPack:(nullable StorePackInfo *)showPack;
243
250- (void)additionPackInfoDownloadSuccess:(StorePackListController *)controller
251 showPack:(nullable StorePackInfo *)showPack;
252
259- (void)packListDownloadError:(StorePackListController *)controller
260 errorMessage:(nullable NSString *)errorMessage;
261
268- (void)packListDownloadNothing:(StorePackListController *)controller;
269
270#pragma mark - StorePromotionViewDelegate
271
278- (void)storePromotionView:(StorePromotionView *)view packSelected:(StorePackInfo *)packInfo;
279
286- (void)storePromotionView:(StorePromotionView *)view genreSelected:(NSUInteger)genreIndex;
287
288#pragma mark - StoreGenreSelectViewDelegate
289
295- (void)StoreGenreSelectViewDelegateGenreSelected:(NSUInteger)index;
296
297#pragma mark - Pack table / pack detail callbacks
298
304
310- (void)storePackTableViewShowDetail:(nullable StorePackInfo *)packInfo;
311
317
323- (void)storePackDetailViewOpenItunesWithURL:(nullable NSURL *)url;
324
325#pragma mark - Detail-close / recommend tracking
326
333
339- (void)detailViewStartPurchase:(nullable StoreDetailViewControllerV2 *)packInfo;
340
347- (void)detailViewStartRedownload:(nullable StoreDetailViewControllerV2 *)packInfo;
348
354- (void)detailViewStartExtendDownload:(nullable StorePackInfo *)packInfo;
355
356#pragma mark - EditorIDManagerDelegate
357
363- (void)successIDDownload:(nullable id)manager;
364
371- (void)errorIDDownload:(nullable id)manager msgStr:(nullable NSString *)msgStr;
372
373#pragma mark - AlertViewManagerDelegate
374
380- (void)alertSelect:(nonnull NSDictionary *)info;
381
382#pragma mark - SettingsNavControllerDelegate
383
389- (void)settingsNavViewClose:(nullable id)controller;
390
391#pragma mark - SKStoreProductViewControllerDelegate
392
398- (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController;
399
400#pragma mark - UITableViewDataSource / UITableViewDelegate
401
408- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
409
417- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
418
426- (UITableViewCell *)tableView:(UITableView *)tableView
427 cellForRowAtIndexPath:(NSIndexPath *)indexPath;
428
436- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
437
445- (void)tableView:(UITableView *)tableView
446 willDisplayCell:(UITableViewCell *)cell
447 forRowAtIndexPath:(NSIndexPath *)indexPath;
448
455- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
456
457#pragma mark - View lifecycle
458
464- (void)viewWillAppear:(BOOL)animated;
465
471- (void)viewDidAppear:(BOOL)animated;
472
478- (void)viewWillDisappear:(BOOL)animated;
479
485- (void)viewDidDisappear:(BOOL)animated;
486
492
497- (void)viewDidLoad;
498
503- (void)viewDidUnload;
504
511- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
512
518- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
519
525- (BOOL)shouldAutorotate;
526
531- (void)dealloc;
532
533@end
534
535NS_ASSUME_NONNULL_END
536
537// code: language=Objective-C
538// kate: hl Objective-C;
539// 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 navigation wrapper around the in-app settings screen, with a close button.
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-parent interface shared by the two store tab controllers.
The store's promotion-banner carousel.
A speech balloon: a rounded rectangle with one triangular arrow.
Definition BalloonView.h:34
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 rounded plate that carries one StoreLeafletCell and forwards its open request on to an owner.
Definition StoreLeafletView.h:34
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 StoreMainViewController.h:69
void viewDidUnload()
Releases the view's subviews when the view is unloaded.
Definition StoreMainViewController.m:455
BOOL shouldAutorotate()
Whether the screen rotates.
Definition StoreMainViewController.m:474
void dealloc()
Clears the pack table's current genre and cancels any editor-ID download in flight.
Definition StoreMainViewController.m:479
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen supports.
Definition StoreMainViewController.m:469
void allReleaseDetail()
Adds a freshly-fetched additional pack to the detail stack; the shipped body is empty.
Definition StoreMainViewController.m:832
void storePackTableViewLoadMore()
Pack-table load-more callback: fetches the next page for the current genre.
Definition StoreMainViewController.m:1260
void clearDetailWindow()
Fades out and dismantles every pad pack-detail overlay, keeping the root entry.
Definition StoreMainViewController.m:837
void loadView()
Builds the view: a vertical grey gradient behind a pack table, plus (on pad) a rounded pack-list cont...
Definition StoreMainViewController.m:305
void storePackDetailViewClose()
Pack-detail close callback: dismisses the pad overlay.
Definition StoreMainViewController.m:1272
void refresh()
Reloads the current genre's rows if it holds any packs.
Definition StoreMainViewController.m:515
void popDetailList()
Pops the top pad pack-detail overlay off the stack, sliding the stack back.
Definition StoreMainViewController.m:786
void detailViewCloseNavigation()
Detail-close navigation callback: decrements the open-detail count unless the close was a recommend p...
Definition StoreMainViewController.m:1300
void viewDidLoad()
Gives every navigation-bar subview exclusive touch so a tap cannot fall through.
Definition StoreMainViewController.m:379
void didReceiveMemoryWarning()
Handles a low-memory warning.
Definition StoreMainViewController.m:450
void packListScrolled()
Pack-table scroll callback: fades the tutorial balloon back in.
Definition StoreMainViewController.m:544
void tapNavigation()
Scrolls the pack table back to the top, and dismisses the one-time tutorial balloon on its first use ...
Definition StoreMainViewController.m:522
void storeClose()
Closes any open alert and the pad detail overlay, then dismisses this controller.
Definition StoreMainViewController.m:946
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 root tab container and shared purchase, download, and agreement coordinator.
Definition StoreViewController.h:52
Presents the terms-of-service screen inside a navigation controller with a close button.
Definition TermsNavController.h:28
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Told how the editor-identifier provisioning download finished.
Definition EditorIDManager.h:22
What a SettingsNavController tells its owner.
Definition SettingsNavController.h:26
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