genre
TypeScriptget genre(): (Genre) | nullSwift declarationvar genre: Genre? { get }The genre for the request.
struct · iOS 16.0+ · SDK 27.1
struct MusicCatalogChartsRequestA request that your app uses to fetch the most popular items in the Apple Music catalog.
get genre(): (Genre) | nullSwift declarationvar genre: Genre? { get }The genre for the request.
get kinds(): Array<MusicCatalogChartKind>Swift declarationvar kinds: [MusicCatalogChartKind] { get }The kinds of requested catalog charts.
get limit(): (number) | nullSwift declarationvar limit: Int?A limit for the number of items to return in the catalog search response.
set limit(value: (number) | null)Swift declarationvar limit: Int?A limit for the number of items to return in the catalog search response.
get offset(): (number) | nullSwift declarationvar offset: Int?An offset for the request.
set offset(value: (number) | null)Swift declarationvar offset: Int?An offset for the request.
response(): Promise<MusicCatalogChartsResponse>Swift declarationfunc response() async throws -> MusicCatalogChartsResponseFetches the most popular items of the requested types that match the genre and kinds for the request.
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MusicCatalogChartsRequest.init(genre:kinds:types:)
Passing a Swift type itself is not supported.
MusicCatalogChartsRequest.types
Passing a Swift type itself is not supported.