includeTopResults
TypeScriptget includeTopResults(): booleanSwift declarationvar includeTopResults: BoolA Boolean value that indicates whether to request top search results.
struct · iOS 15.0+ · SDK 27.1
struct MusicCatalogSearchRequestA request that your app uses to fetch items from the Apple Music catalog using a search term.
get includeTopResults(): booleanSwift declarationvar includeTopResults: BoolA Boolean value that indicates whether to request top search results.
set includeTopResults(value: boolean)Swift declarationvar includeTopResults: BoolA Boolean value that indicates whether to request top search results.
get term(): stringSwift declarationlet term: StringThe search term for the request.
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<MusicCatalogSearchResponse>Swift declarationfunc response() async throws -> MusicCatalogSearchResponseFetches items of the requested catalog searchable types that match the search term of the request.
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MusicCatalogSearchRequest.init(term:types:)
Passing a Swift type itself is not supported.
MusicCatalogSearchRequest.types
Passing a Swift type itself is not supported.