includeTopResults
TypeScriptget includeTopResults(): booleanSwift declarationvar includeTopResults: BoolA Boolean value that indicates whether to request top search results.
struct · iOS 16.0+ · SDK 27.1
struct MusicLibrarySearchRequestA request that your app uses to fetch items from user’s library 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(): numberSwift declarationvar limit: IntA limit for the number of items to return in the library search response. The default value for this limit is 50. If the application sets the limit to 0, the framework returns all matching items in the user’s music library.
set limit(value: number)Swift declarationvar limit: IntA limit for the number of items to return in the library search response. The default value for this limit is 50. If the application sets the limit to 0, the framework returns all matching items in the user’s music library.
response(): Promise<MusicLibrarySearchResponse>Swift declarationfunc response() async throws -> MusicLibrarySearchResponseFetches items of the requested library 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.
MusicLibrarySearchRequest.init(term:types:)
Passing a Swift type itself is not supported.
MusicLibrarySearchRequest.types
Passing a Swift type itself is not supported.