16#import <UIKit/UIKit.h>
28NS_ASSUME_NONNULL_BEGIN
67@property(nonatomic, weak, nullable)
id delegate;
83- (instancetype)initWithFrame:(CGRect)frame;
91- (nullable UIColor *)getButtonColor:(
int)buttonType;
99- (nullable NSString *)getButtonName:(
int)buttonType;
161- (void)doPurchase:(nullable
id)sender;
168- (void)handleLink:(nullable
id)sender;
175- (void)handleSample:(nullable
id)sender;
182- (void)finishBgm:(nullable NSNotification *)notification;
207- (void)downloaderFinished:(
id)downloader;
214- (void)downloaderError:(
id)downloader;
221- (void)downloaderProceed:(
id)downloader;
228- (void)alertClose:(nonnull NSDictionary *)info;
235- (void)alertSelect:(nonnull NSDictionary *)info;
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
CampaignItemDetailButtonType
Which artwork and title the download button should carry.
Definition CampaignItemDetailView.h:36
@ CampaignItemDetailButtonTypeUpdate
A green "update" button.
Definition CampaignItemDetailView.h:41
@ CampaignItemDetailButtonTypeLocked
A near-white button titled "download".
Definition CampaignItemDetailView.h:39
@ CampaignItemDetailButtonTypeDownloaded
A near-white "downloaded" button, disabled.
Definition CampaignItemDetailView.h:38
@ CampaignItemDetailButtonTypeDownload
A blue "download" button.
Definition CampaignItemDetailView.h:37
@ CampaignItemDetailButtonTypeSerial
A blue "serial input" button.
Definition CampaignItemDetailView.h:40
CampaignItemSampleState
The sample-tune playback state.
Definition CampaignItemDetailView.h:51
@ CampaignItemSampleStateDownloading
The sample tune is downloading.
Definition CampaignItemDetailView.h:53
@ CampaignItemSampleStatePlaying
The sample tune is playing.
Definition CampaignItemDetailView.h:52
@ CampaignItemSampleStateStopped
No sample tune is active.
Definition CampaignItemDetailView.h:54
A campaign item's detail card.
Definition CampaignItemDetailView.h:60
void cancelLoading()
Cancels the in-flight info download, if any.
Definition CampaignItemDetailView.m:434
void sampleDownloading()
Puts the sample button into its downloading artwork and starts the indicator.
Definition CampaignItemDetailView.m:492
StoreCampaignViewController * viewController
The store campaign controller that owns this card.
Definition CampaignItemDetailView.h:74
void samplePlaying()
Puts the sample button into its playing artwork and stops the indicator.
Definition CampaignItemDetailView.m:499
void removeCampaignInfo()
Clears the item and returns every subview to its empty state, and unsubscribes from the BGM finish no...
Definition CampaignItemDetailView.m:413
void sampleStop()
Puts the sample button into its stopped artwork.
Definition CampaignItemDetailView.m:485
BOOL hasItem()
Whether the device already holds the current item's data.
Definition CampaignItemDetailView.m:396
void stopSample()
Stops the sample tune: fades out the BGM, drops the sample downloader, and resets the sample UI and s...
Definition CampaignItemDetailView.m:471
void detailClose()
Closes any presented alert.
Definition CampaignItemDetailView.m:580
void loadInfo()
Populates the labels, icon, and buttons from the current item, and subscribes to the BGM finish notif...
Definition CampaignItemDetailView.m:361
id delegate
The card's delegate.
Definition CampaignItemDetailView.h:67
void dlButtonUpdate()
Refreshes the download button's colour, titles, and enabled state from the item.
Definition CampaignItemDetailView.m:339
A campaign item: an unlockable tune or marker with a rule for earning it.
Definition CampaignItemInfo.h:32
Lists downloadable campaign items and drives their unlock, download, and detail display.
Definition StoreCampaignViewController.h:42
An image view that loads itself from imageURL on demand.
Definition StoreImageView.h:24
A UITextView that refuses first-responder status.
Definition UnselectableTextView.h:27
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Performs a single HTTP request.
Definition Downloader.h:30