contains
Check if the LibraryType with id id is already saved in the current Spotify user’s ‘Your Music’ library.
Requires the SpotifyScope.USER_LIBRARY_READ scope
Parameters
type
The type of object (album or track)
id
The id or uri of the object
Throws
if id is not found
suspend fun contains(type: LibraryType, vararg ids: String): List<Boolean>
Content copied to clipboard
Check if one or more of LibraryType is already saved in the current Spotify user’s ‘Your Music’ library.
Requires the SpotifyScope.USER_LIBRARY_READ scope
Parameters
type
The type of objects (album or track)
ids
The ids or uris of the objects. Maximum 50 ids.
Throws
if any of the provided ids is invalid