addItems(_:)
Adds an array of media items to the user’s Shazam library.
Declaration
final func addItems(_ items: [SHMediaItem]) async throwsParameters
- items:
An array containing the Shmediaitem objects to add to the library.
Discussion
The library only accepts media items with a shazamID. The shazamID must be a numeric only string.
This throws SHError.Code.mediaLibrarySyncFailed if the system can’t add at least one SHMediaItem or if an error occurred during the addition. In that case, the system doesn’t add any items to the library.