27#import <StoreKit/StoreKit.h>
28#import <UIKit/UIKit.h>
52NS_ASSUME_NONNULL_BEGIN
60 UIPopoverPresentationControllerDelegate,
69 SKStoreProductViewControllerDelegate>
82- (instancetype)initWithParent:(nullable
id<StoreParentViewController>)parent;
96- (void)loadInitialPacklist:(NSInteger)packID;
103- (void)loadInitialPacklistWithGenre:(NSInteger)genreID;
129- (void)updatePurchaseStateForPackID:(
int)packID;
137- (void)showDetailForPackInfo:(nullable
StorePackInfo *)packInfo;
145- (void)switchToGenre:(NSUInteger)genreIndex;
186- (void)addOpenDetail:(NSInteger)genreID;
194- (void)pushOpenDetail:(nullable NSNumber *)packID;
201- (void)handleTapCoverView:(nullable UITapGestureRecognizer *)recognizer;
208- (void)hideGenreSelect:(nullable
id)sender;
216- (void)handleBackButton:(nullable
id)sender;
223- (void)handleTapPolicyButton:(nullable
id)sender;
231#pragma mark - StorePackListDelegate
241 isInitial:(BOOL)isInitial
260 errorMessage:(nullable NSString *)errorMessage;
270#pragma mark - StorePromotionViewDelegate
286- (void)storePromotionView:(
StorePromotionView *)view genreSelected:(NSUInteger)genreIndex;
288#pragma mark - StoreGenreSelectViewDelegate
295- (void)StoreGenreSelectViewDelegateGenreSelected:(NSUInteger)index;
297#pragma mark - Pack table / pack detail callbacks
310- (void)storePackTableViewShowDetail:(nullable
StorePackInfo *)packInfo;
323- (void)storePackDetailViewOpenItunesWithURL:(nullable NSURL *)url;
325#pragma mark - Detail-close / recommend tracking
354- (void)detailViewStartExtendDownload:(nullable
StorePackInfo *)packInfo;
356#pragma mark - EditorIDManagerDelegate
363- (void)successIDDownload:(nullable
id)manager;
371- (void)errorIDDownload:(nullable
id)manager msgStr:(nullable NSString *)msgStr;
373#pragma mark - AlertViewManagerDelegate
380- (void)alertSelect:(nonnull NSDictionary *)info;
382#pragma mark - SettingsNavControllerDelegate
389- (void)settingsNavViewClose:(nullable
id)controller;
391#pragma mark - SKStoreProductViewControllerDelegate
398- (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController;
400#pragma mark - UITableViewDataSource / UITableViewDelegate
408- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
417- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
426- (UITableViewCell *)tableView:(UITableView *)tableView
427 cellForRowAtIndexPath:(NSIndexPath *)indexPath;
436- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
445- (void)tableView:(UITableView *)tableView
446 willDisplayCell:(UITableViewCell *)cell
447 forRowAtIndexPath:(NSIndexPath *)indexPath;
455- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
457#pragma mark - View lifecycle
464- (void)viewWillAppear:(BOOL)animated;
471- (void)viewDidAppear:(BOOL)animated;
478- (void)viewWillDisappear:(BOOL)animated;
485- (void)viewDidDisappear:(BOOL)animated;
511- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
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.
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
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