MusicKit · IOS API REFERENCE
MusicPersonalRecommendationsRequest
struct · iOS 16.0+ · SDK 27.1
struct MusicPersonalRecommendationsRequest
A request that your app uses to fetch music recommendations
based on the user’s library and listening history.
Members (7)
init · iOS 16.0+init
TypeScriptstatic initRefreshing(recommendations: Array<MusicPersonalRecommendation>): MusicPersonalRecommendationsRequest
Swift declarationinit<S>(refreshing recommendations: S) where S : Sequence, S.Element == MusicPersonalRecommendation
Creates a request to fetch default personal recommendations
for the user.
get · iOS 16.0+limit
TypeScriptget limit(): (number) | null
Swift declarationvar limit: Int?
A limit for the number of recommendations to return
in the personal recommendations response.
set · iOS 16.0+limit
TypeScriptset limit(value: (number) | null)
Swift declarationvar limit: Int?
A limit for the number of recommendations to return
in the personal recommendations response.
get · iOS 16.0+offset
TypeScriptget offset(): (number) | null
Swift declarationvar offset: Int?
An offset for the request.
set · iOS 16.0+offset
TypeScriptset offset(value: (number) | null)
Swift declarationvar offset: Int?
An offset for the request.
method · iOS 16.0+response
TypeScriptresponse(): Promise<MusicPersonalRecommendationsResponse>
Swift declarationfunc response() async throws -> MusicPersonalRecommendationsResponse
Fetches the music recommendations based on the user’s library
and listening history.
init · iOS 16.0+init
TypeScriptstatic init(): MusicPersonalRecommendationsRequest
Swift declarationinit()
Creates a request to fetch default personal recommendations
for the user.
Skipped declarations
No declarations were skipped in this snapshot.
All MusicKit types →