JubeatPlus 3.9.11
Loading...
Searching...
No Matches
CampaignDetailViewController Class Reference

A campaign item's detail page. More...

#include <CampaignDetailViewController.h>

Inheritance diagram for CampaignDetailViewController:
Collaboration diagram for CampaignDetailViewController:

Instance Methods

(instancetype) - init
 Sets the navigation title and, where available, opts out of opaque-bar layout.
(void) - loadView
 Builds the gradient-backed root view, the pack-background art, the detail table, the campaign header, the loading overlay, and the terms and copyright labels.
(void) - setCampaignInfo:
 Stores the campaign item to display.
(void) - removeCampaignInfo
 Clears the stored campaign item.
(void) - updateCampaignState:
 Replaces the campaign item and forwards it to the header.
(void) - refreshCampaignItem:
 Swaps in a fresh campaign item: cancels the artwork download, stops the sample, reloads the info, and reloads the table.
(void) - showPackInfo
 Navigates to the pack info.
(void) - loadInfo
 Populates the header and table from the current item, downloads the artwork, and sizes the terms and licence labels to their text.
(void) - doPurchase:
 Header download-button tap: forwards to the owning controller's item download.
(void) - handleLink:
 Header link-button tap: forwards to the owning controller's external link.
(void) - productViewControllerDidFinish:
 SKStoreProductViewController finish: dismisses it, then clears the reference once the dismissal animation completes.
(void) - downloaderProceed:
 Downloader progress callback.
(void) - stopDownloadArtworks
 Cancels the artwork download and detaches its delegate.
(void) - removeItem
 Tears down the view references and cancels the artwork download.
(void) - detailClose
 Sends -detailClose to every cell that answers it, so the table can shut its rows.
Instance Methods inherited from <ImageDownloaderDelegate>
(void) - imageDownloader:didLoad:
 Sent when the image has loaded.

Properties

id< CampaignDetailViewControllerDelegate > delegate
 The page's delegate.
StoreCampaignViewController * viewController
 The store campaign controller that owns this page.

Detailed Description

A campaign item's detail page.

Method Documentation

◆ detailClose

- (void) detailClose

Sends -detailClose to every cell that answers it, so the table can shut its rows.

Ghidra address:
0x1ea294

◆ doPurchase:

- (void) doPurchase: (nullable id) sender

Header download-button tap: forwards to the owning controller's item download.

Parameters
senderThe download button.
Ghidra address:
0x1e9800

Reimplemented from <CampaignDetailHeaderViewDelegate>.

◆ downloaderProceed:

- (void) downloaderProceed: (nullable id) downloader

Downloader progress callback.

The shipped body is empty.

Parameters
downloaderThe request.
Ghidra address:
0x1e9910

◆ handleLink:

- (void) handleLink: (nullable id) sender

Header link-button tap: forwards to the owning controller's external link.

Parameters
senderThe link button.
Ghidra address:
0x1e9840

Reimplemented from <CampaignDetailHeaderViewDelegate>.

◆ init

- (instancetype) init

Sets the navigation title and, where available, opts out of opaque-bar layout.

Returns
The initialised controller.
Ghidra address:
0x1e8b40
Ghidra address:
0x1e8b40

◆ loadInfo

- (void) loadInfo

Populates the header and table from the current item, downloads the artwork, and sizes the terms and licence labels to their text.

Ghidra address:
0x1e9568

◆ loadView

- (void) loadView

Builds the gradient-backed root view, the pack-background art, the detail table, the campaign header, the loading overlay, and the terms and copyright labels.

Ghidra address:
0x1e8bfc

◆ productViewControllerDidFinish:

- (void) productViewControllerDidFinish: (nonnull SKStoreProductViewController *) viewController

SKStoreProductViewController finish: dismisses it, then clears the reference once the dismissal animation completes.

Parameters
viewControllerThe finished product view controller.
Ghidra address:
0x1e9880

◆ refreshCampaignItem:

- (void) refreshCampaignItem: (nullable CampaignItemInfo *) campaignInfo

Swaps in a fresh campaign item: cancels the artwork download, stops the sample, reloads the info, and reloads the table.

Parameters
campaignInfoThe new campaign item.
Ghidra address:
0x1e94bc

◆ removeCampaignInfo

- (void) removeCampaignInfo

Clears the stored campaign item.

Ghidra address:
0x1e9444

◆ removeItem

- (void) removeItem

Tears down the view references and cancels the artwork download.

Ghidra address:
0x1e9d30

◆ setCampaignInfo:

- (void) setCampaignInfo: (nullable CampaignItemInfo *) campaignInfo

Stores the campaign item to display.

Parameters
campaignInfoThe campaign item.
Ghidra address:
0x1e9430

◆ showPackInfo

- (void) showPackInfo

Navigates to the pack info.

The shipped body is empty.

Ghidra address:
0x1e9564
Ghidra address:
0x1e9564

◆ stopDownloadArtworks

- (void) stopDownloadArtworks

Cancels the artwork download and detaches its delegate.

Ghidra address:
0x1e9dbc

◆ updateCampaignState:

- (void) updateCampaignState: (nullable CampaignItemInfo *) campaignInfo

Replaces the campaign item and forwards it to the header.

Parameters
campaignInfoThe new campaign item.
Ghidra address:
0x1e945c

Property Documentation

◆ delegate

- (id<CampaignDetailViewControllerDelegate>) delegate
readwritenonatomicweak

The page's delegate.

Held weakly.

Ghidra address:
0x1ea3ac (getter)
Ghidra address:
0x1ea3cc (setter)

◆ viewController

- (StoreCampaignViewController*) viewController
readwritenonatomicweak

The store campaign controller that owns this page.

Held weakly.

Ghidra address:
0x1ea3e0 (getter)
Ghidra address:
0x1ea400 (setter)

The documentation for this class was generated from the following files: