Fetches, groups, and vends the store's genre and pack lists.
More...
#include <StorePackListController.h>
|
| (nullable NSString *) | + storeCountry |
| | The App Store country recorded from the most recent product's price locale.
|
|
| BOOL | isFetching |
| | Whether a download or product request is currently in flight.
|
| BOOL | initiallyLoaded |
| | Whether the genre and promotion lists have been loaded at least once.
|
| NSNumber * | additionalPackID |
| | The pending additional-pack identifier, held for the duration of its StoreKit request.
|
| id< StorePackListDelegate > | delegate |
| | The download-outcome delegate.
|
Fetches, groups, and vends the store's genre and pack lists.
◆ addGenres:
| - (void) addGenres: |
|
(nullable NSArray *) | genreList |
|
Appends genres from a two-element [ids, names] pair, zipping them into genre models.
- Parameters
-
| genreList | A two-element array: an NSArray of genre-ID numbers and an NSArray of name strings. |
- Ghidra address:
- 0xcbb48
◆ addGenres:extendList:
| - (void) addGenres: |
|
(nullable NSArray *) | genreList |
| extendList: |
|
(nullable NSDictionary *) | extendList |
Appends genres from a two-element [ids, names] pair and attaches extend info by ID.
- Parameters
-
| genreList | A two-element array of parallel ID and name arrays. |
| extendList | A dictionary keyed by the decimal-string form of each genre ID, holding extend info to apply to the built genres. |
- Ghidra address:
- 0xcbe80
◆ addPromotions:validProducts:
| - (void) addPromotions: |
|
(nullable NSArray *) | promotionList |
| validProducts: |
|
(nullable NSArray< SKProduct * > *) | validProducts |
Builds the promotion list from promotion entries and the valid StoreKit products.
- Parameters
-
| promotionList | The promotion entries, each a dictionary with an ID and ImageURL. |
| validProducts | The valid SKProduct objects to match pack promotions against. |
- Ghidra address:
- 0xcc3e8
◆ cancelFetching
Cancels any in-flight download or product request and clears the pending additional pack.
- Ghidra address:
- 0xcd16c
◆ genreIndexForgenreID:
| - (int) genreIndexForgenreID: |
|
(NSInteger) | genreID |
|
The list position of the genre with the given identifier.
The binary spells this selector with a lowercase "genreID"; it is kept verbatim.
- Parameters
-
| genreID | The genre identifier to find. |
- Returns
- The genre's index, or 0 when no genre matches.
- Ghidra address:
- 0xccbb4
- Ghidra address:
- 0xccbb4
◆ genreInfos
A copy of the held genre models, in order.
- Returns
- The genre models.
- Ghidra address:
- 0xcbb20
- Ghidra address:
- 0xcbb20
◆ genreNames
| - (NSArray< NSString * > *) genreNames |
|
|
|
The display names of the held genres, in order.
- Returns
- The genre names.
- Ghidra address:
- 0xcb9f0
- Ghidra address:
- 0xcb9f0
- Ghidra address:
- 0xcbabc
◆ init
Builds an empty controller seeded with a single "all" genre.
- Returns
- The initialised controller.
- Ghidra address:
- 0xcb8ac
- Ghidra address:
- 0xcb8ac
◆ numGenres
The number of genres currently held.
- Returns
- The genre count.
- Ghidra address:
- 0xcb9d8
- Ghidra address:
- 0xcb9d8
◆ packListForGenreID:
The genre model with the given identifier.
- Parameters
-
| genreID | The genre identifier to find; a negative value yields nil. |
- Returns
- The matching genre, or nil.
- Ghidra address:
- 0xccc80
- Ghidra address:
- 0xccc80
◆ packListForGenreIndex:
The genre model at the given list position.
- Parameters
-
| genreIndex | The genre index. |
- Returns
- The genre at that position, or nil when out of range.
- Ghidra address:
- 0xccd44
- Ghidra address:
- 0xccd44
◆ promotions
The most recently built promotion list.
- Returns
- The promotions, or nil.
- Ghidra address:
- 0xccba4
- Ghidra address:
- 0xccba4
◆ startFetchAdditionalPack:
| - (void) startFetchAdditionalPack: |
|
(nullable NSNumber *) | packID |
|
Starts a StoreKit request to resolve a single additional pack by identifier.
- Parameters
-
| packID | The boxed pack identifier to resolve; a nil value is ignored. |
- Ghidra address:
- 0xcd030
◆ startFetchForGenreID:
| - (void) startFetchForGenreID: |
|
(NSUInteger) | genreID |
|
Starts a fresh fetch of the first catalogue page for the given genre identifier.
- Parameters
-
| genreID | The genre identifier to fetch. |
- Ghidra address:
- 0xccdb0
- Ghidra address:
- 0xccdb0
◆ startFetchForGenreIndex:
| - (void) startFetchForGenreIndex: |
|
(NSUInteger) | genreIndex |
|
Starts fetching the next catalogue page for the genre at the given list position.
- Parameters
-
| genreIndex | The genre index; out-of-range indices are ignored. |
- Ghidra address:
- 0xcce9c
- Ghidra address:
- 0xcce9c
◆ startFetchGenre:
Starts fetching the next page for the given genre model, found by identity.
- Parameters
-
| genre | The genre model to fetch; ignored when not held. |
- Ghidra address:
- 0xccfd0
◆ storeCountry
| + (NSString *) storeCountry |
|
|
|
The App Store country recorded from the most recent product's price locale.
- Returns
- The two-letter country code, or nil before any product has been received.
- Ghidra address:
- 0xcb86c
- Ghidra address:
- 0xcb86c
◆ additionalPackID
| - (NSNumber*) additionalPackID |
|
readwritenonatomicstrong |
The pending additional-pack identifier, held for the duration of its StoreKit request.
- Ghidra address:
- 0xceb84 (getter), 0xceb94 (setter)
◆ delegate
The download-outcome delegate.
- Ghidra address:
- 0xceba8 (getter), 0xcebc8 (setter)
◆ initiallyLoaded
Whether the genre and promotion lists have been loaded at least once.
- Ghidra address:
- 0xcebdc
◆ isFetching
Whether a download or product request is currently in flight.
A computed getter over packlistDownloader and productsRequest ; the property has no ivar.
- Ghidra address:
- 0xcd1e8
- Ghidra address:
- 0xcd1e8
The documentation for this class was generated from the following files: