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>
|
| (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.
|
| (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.
|
A campaign item's detail header: artwork with its reflection, name, comment, a download button, a link button, and a tappable BGM sample control.
◆ finishBgm:
| - (void) finishBgm: |
|
(nullable NSNotification *) | notification |
|
Handles the audio player finishing the BGM sample: clears the playing state and hides the playing marker.
- Parameters
-
| notification | The 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
-
- Ghidra address:
- 0x1230ec
◆ initWithFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
|
Builds the header's subviews.
- Parameters
-
- Returns
- The initialised header.
- Ghidra address:
- 0x121ef4
- Ghidra address:
- 0x121ef4
◆ setArtwork:
| - (void) setArtwork: |
|
(nullable UIImage *) | artwork |
|
Sets the artwork and rebuilds its reflection.
- Parameters
-
| artwork | The artwork image. |
- Ghidra address:
- 0x122e70
◆ 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.
- Parameters
-
| itemInfo | The campaign item to display. |
- Ghidra address:
- 0x122a90
◆ stopSample
Fades out any BGM sample, tears the sample download down, and resets the control.
- Ghidra address:
- 0x123240
◆ updateCampaignState:
Replaces the campaign item and refreshes the download button.
- Parameters
-
| itemInfo | The new campaign item. |
- Ghidra address:
- 0x123098
◆ delegate
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: