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

Fetches, groups, and vends the store's genre and pack lists. More...

#include <StorePackListController.h>

Inheritance diagram for StorePackListController:
Collaboration diagram for StorePackListController:

Instance Methods

(instancetype) - init
 Builds an empty controller seeded with a single "all" genre.
(NSUInteger) - numGenres
 The number of genres currently held.
(NSArray< NSString * > *) - genreNames
 The display names of the held genres, in order.
(NSArray< StorePackListGenre * > *) - genreInfos
 A copy of the held genre models, in order.
(void) - addGenres:
 Appends genres from a two-element [ids, names] pair, zipping them into genre models.
(void) - addGenres:extendList:
 Appends genres from a two-element [ids, names] pair and attaches extend info by ID.
(void) - addPromotions:validProducts:
 Builds the promotion list from promotion entries and the valid StoreKit products.
(nullable NSArray< StorePromotion * > *) - promotions
 The most recently built promotion list.
(int) - genreIndexForgenreID:
 The list position of the genre with the given identifier.
(nullable StorePackListGenre *) - packListForGenreID:
 The genre model with the given identifier.
(nullable StorePackListGenre *) - packListForGenreIndex:
 The genre model at the given list position.
(void) - startFetchForGenreID:
 Starts a fresh fetch of the first catalogue page for the given genre identifier.
(void) - startFetchForGenreIndex:
 Starts fetching the next catalogue page for the genre at the given list position.
(void) - startFetchGenre:
 Starts fetching the next page for the given genre model, found by identity.
(void) - startFetchAdditionalPack:
 Starts a StoreKit request to resolve a single additional pack by identifier.
(void) - cancelFetching
 Cancels any in-flight download or product request and clears the pending additional pack.
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.

Class Methods

(nullable NSString *) + storeCountry
 The App Store country recorded from the most recent product's price locale.

Properties

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.

Detailed Description

Fetches, groups, and vends the store's genre and pack lists.

Method Documentation

◆ addGenres:

- (void) addGenres: (nullable NSArray *) genreList

Appends genres from a two-element [ids, names] pair, zipping them into genre models.

Parameters
genreListA 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
genreListA two-element array of parallel ID and name arrays.
extendListA 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
promotionListThe promotion entries, each a dictionary with an ID and ImageURL.
validProductsThe valid SKProduct objects to match pack promotions against.
Ghidra address:
0xcc3e8

◆ cancelFetching

- (void) 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
genreIDThe genre identifier to find.
Returns
The genre's index, or 0 when no genre matches.
Ghidra address:
0xccbb4
Ghidra address:
0xccbb4

◆ genreInfos

- (NSArray< StorePackListGenre * > *) 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

- (instancetype) init

Builds an empty controller seeded with a single "all" genre.

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

◆ numGenres

- (NSUInteger) numGenres

The number of genres currently held.

Returns
The genre count.
Ghidra address:
0xcb9d8
Ghidra address:
0xcb9d8

◆ packListForGenreID:

- (StorePackListGenre *) packListForGenreID: (NSInteger) genreID

The genre model with the given identifier.

Parameters
genreIDThe genre identifier to find; a negative value yields nil.
Returns
The matching genre, or nil.
Ghidra address:
0xccc80
Ghidra address:
0xccc80

◆ packListForGenreIndex:

- (StorePackListGenre *) packListForGenreIndex: (NSUInteger) genreIndex

The genre model at the given list position.

Parameters
genreIndexThe genre index.
Returns
The genre at that position, or nil when out of range.
Ghidra address:
0xccd44
Ghidra address:
0xccd44

◆ promotions

- (NSArray< StorePromotion * > *) 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
packIDThe 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
genreIDThe 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
genreIndexThe genre index; out-of-range indices are ignored.
Ghidra address:
0xcce9c
Ghidra address:
0xcce9c

◆ startFetchGenre:

- (void) startFetchGenre: (nullable StorePackListGenre *) genre

Starts fetching the next page for the given genre model, found by identity.

Parameters
genreThe 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

Property Documentation

◆ additionalPackID

- (NSNumber*) additionalPackID
readwritenonatomicstrong

The pending additional-pack identifier, held for the duration of its StoreKit request.

Ghidra address:
0xceb84 (getter), 0xceb94 (setter)

◆ delegate

- (id<StorePackListDelegate>) delegate
readwritenonatomicweak

The download-outcome delegate.

Ghidra address:
0xceba8 (getter), 0xcebc8 (setter)

◆ initiallyLoaded

- (BOOL) initiallyLoaded
readnonatomicassign

Whether the genre and promotion lists have been loaded at least once.

Ghidra address:
0xcebdc

◆ isFetching

- (BOOL) isFetching
readnonatomicassign

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: