A pack's identity, name, price, store flags, and track list.
More...
#include <StorePackInfo.h>
|
| (instancetype) | - initWithDictionary:product: |
| | Builds a pack from a store dictionary and its StoreKit product.
|
| (nullable NSString *) | - getArtworkURL: |
| | The best artwork URL for the current device from a pack dictionary.
|
| (void) | - setPackInfo: |
| | Fills the pack from a store list dictionary.
|
| (BOOL) | - setPackDetailInfo: |
| | Fills the pack's detail-only fields from a detail dictionary, keeping any already set.
|
| (BOOL) | - setMusicInfo: |
| | Builds the track list from an array of track dictionaries, unless it is already set.
|
|
| int | packID |
| | The pack's identifier.
|
| BOOL | isNew |
| | Whether to show the "new" marker.
|
| BOOL | hasExtend |
| | Whether to show the "extend" marker.
|
| NSString * | artworkURL |
| | The pack artwork's address.
|
| NSString * | packName |
| | The pack's display name.
|
| NSString * | comment |
| | The pack's long description.
|
| NSString * | shortComment |
| | The pack's one-line comment.
|
| NSString * | copyright |
| | The pack's copyright line.
|
| NSString * | linkURL |
| | The related-site link URL string.
|
| NSString * | linkTitle |
| | The related-site link title.
|
| NSArray * | musicInfos |
| | The pack's tracks, each a StoreMusicInfo.
|
| SKProduct * | product |
| | The StoreKit product backing the pack.
|
| NSDecimalNumber * | regularPriceJPY |
| | The regular (pre-discount) yen price.
|
| NSString * | priceString |
| | The formatted price string, or nil when there is no product.
|
| NSAttributedString * | attributedPriceString |
| | The price styled for display; a struck-through regular price precedes a discounted price.
|
A pack's identity, name, price, store flags, and track list.
◆ getArtworkURL:
| - (nullable NSString *) getArtworkURL: |
|
(nullable NSDictionary *) | dictionary |
|
The best artwork URL for the current device from a pack dictionary.
On a Retina pad the HD address is preferred when valid; otherwise the standard address is used, and either way an invalid address yields nil.
- Parameters
-
| dictionary | The pack dictionary. |
- Returns
- The artwork URL string, or nil.
- Ghidra address:
- 0xbdb4c
◆ initWithDictionary:product:
| - (instancetype) initWithDictionary: |
|
(nullable NSDictionary *) | dictionary |
| product: |
|
(nullable SKProduct *) | product |
Builds a pack from a store dictionary and its StoreKit product.
- Parameters
-
| dictionary | The store's pack dictionary, or nil to seed only from the product. |
| product | The StoreKit product, or nil. |
- Returns
- The initialised pack.
- Ghidra address:
- 0xbd4a0
◆ setMusicInfo:
| - (BOOL) setMusicInfo: |
|
(nullable NSArray *) | musicList |
|
Builds the track list from an array of track dictionaries, unless it is already set.
- Parameters
-
| musicList | The array of track dictionaries. |
- Returns
- Whether the track list ended up populated.
- Ghidra address:
- 0xbe18c
◆ setPackDetailInfo:
| - (BOOL) setPackDetailInfo: |
|
(nullable NSDictionary *) | dictionary |
|
Fills the pack's detail-only fields from a detail dictionary, keeping any already set.
- Parameters
-
| dictionary | The detail dictionary. |
- Returns
- Whether the track list was populated.
- Ghidra address:
- 0xbdf84
◆ setPackInfo:
| - (void) setPackInfo: |
|
(nullable NSDictionary *) | dictionary |
|
Fills the pack from a store list dictionary.
- Parameters
-
| dictionary | The pack dictionary. |
- Ghidra address:
- 0xbdca0
◆ artworkURL
The pack artwork's address.
- Ghidra address:
- 0xbe400 (getter)
◆ attributedPriceString
| - (NSAttributedString *) attributedPriceString |
|
readnonatomicassign |
The price styled for display; a struck-through regular price precedes a discounted price.
- Ghidra address:
- 0xbd6b4 (getter)
- Ghidra address:
- 0xbd6b4
◆ comment
The pack's long description.
- Ghidra address:
- 0xbe420 (getter)
◆ copyright
The pack's copyright line.
- Ghidra address:
- 0xbe440 (getter)
◆ hasExtend
Whether to show the "extend" marker.
- Ghidra address:
- 0xbe3f0 (getter)
◆ isNew
Whether to show the "new" marker.
- Ghidra address:
- 0xbe3e0 (getter)
◆ linkTitle
The related-site link title.
- Ghidra address:
- 0xbe460 (getter)
◆ linkURL
The related-site link URL string.
- Ghidra address:
- 0xbe450 (getter)
◆ musicInfos
The pack's tracks, each a StoreMusicInfo.
- Ghidra address:
- 0xbe470 (getter)
◆ packID
The pack's identifier.
Four bytes in the metadata, so int.
- Ghidra address:
- 0xbe3d0 (getter)
◆ packName
The pack's display name.
- Ghidra address:
- 0xbe410 (getter)
◆ priceString
| - (NSString *) priceString |
|
readnonatomicassign |
The formatted price string, or nil when there is no product.
- Ghidra address:
- 0xbd5ac (getter)
- Ghidra address:
- 0xbd5ac
◆ product
The StoreKit product backing the pack.
- Ghidra address:
- 0xbe480 (getter)
◆ regularPriceJPY
| - (NSDecimalNumber*) regularPriceJPY |
|
readnonatomicassign |
The regular (pre-discount) yen price.
- Ghidra address:
- 0xbe490 (getter)
◆ shortComment
| - (NSString*) shortComment |
|
readnonatomicassign |
The pack's one-line comment.
- Ghidra address:
- 0xbe430 (getter)
The documentation for this class was generated from the following files: