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

A campaign item's detail header: artwork with its reflection, name, comment, a download button, a link button, and a tappable BGM sample control. More...

#include <CampaignDetailHeaderView.h>

Inheritance diagram for CampaignDetailHeaderView:
Collaboration diagram for CampaignDetailHeaderView:

Instance Methods

(instancetype) - initWithFrame:
 Builds the header's subviews.
(void) - setCampaignInfo:
 Lays the header out for a campaign item: sizes the name and comment to their text, repositions the download and link buttons below the content, grows the header to fit, refreshes the download button, and enables the sample control if the item has a sample.
(void) - setArtwork:
 Sets the artwork and rebuilds its reflection.
(void) - updateCampaignState:
 Replaces the campaign item and refreshes the download button.
(void) - handleSample:
 Toggles BGM sample playback: starts a sample download and spins the indicator, or stops the current playback.
(void) - stopSample
 Fades out any BGM sample, tears the sample download down, and resets the control.
(void) - finishBgm:
 Handles the audio player finishing the BGM sample: clears the playing state and hides the playing marker.
Instance Methods inherited from <DownloaderDelegate>
(void) - downloaderProceed:
 Sent periodically as data arrives, and once more on completion.
(void) - downloaderFinished:
 Sent when the request completes.
(void) - downloaderError:
 Sent when the request fails.

Properties

id< CampaignDetailHeaderViewDelegate > delegate
 The object that carries out the download and link button taps.

Detailed Description

A campaign item's detail header: artwork with its reflection, name, comment, a download button, a link button, and a tappable BGM sample control.

Method Documentation

◆ finishBgm:

- (void) finishBgm: (nullable NSNotification *) notification

Handles the audio player finishing the BGM sample: clears the playing state and hides the playing marker.

Parameters
notificationThe finish notification.
Ghidra address:
0x1232ec

◆ handleSample:

- (void) handleSample: (nullable id) sender

Toggles BGM sample playback: starts a sample download and spins the indicator, or stops the current playback.

Parameters
senderThe sample button.
Ghidra address:
0x1230ec

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the header's subviews.

Parameters
frameThe header's frame.
Returns
The initialised header.
Ghidra address:
0x121ef4
Ghidra address:
0x121ef4

◆ setArtwork:

- (void) setArtwork: (nullable UIImage *) artwork

Sets the artwork and rebuilds its reflection.

Parameters
artworkThe artwork image.
Ghidra address:
0x122e70

◆ setCampaignInfo:

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

Lays the header out for a campaign item: sizes the name and comment to their text, repositions the download and link buttons below the content, grows the header to fit, refreshes the download button, and enables the sample control if the item has a sample.

Parameters
itemInfoThe campaign item to display.
Ghidra address:
0x122a90

◆ stopSample

- (void) stopSample

Fades out any BGM sample, tears the sample download down, and resets the control.

Ghidra address:
0x123240

◆ updateCampaignState:

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

Replaces the campaign item and refreshes the download button.

Parameters
itemInfoThe new campaign item.
Ghidra address:
0x123098

Property Documentation

◆ delegate

- (id<CampaignDetailHeaderViewDelegate>) delegate
readwritenonatomicweak

The object that carries out the download and link button taps.

Held weakly.

Ghidra address:
0x123610 (getter)
Ghidra address:
0x123630 (setter)

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