final func removeItems(_ items: [SHMediaItem]) async throws
Removes an array of media items from the user's Shazam library.
Apps can only remove media items that it added to the library with ``SHLibrary/addItems(_:)``.
This throws ``SHError/Code/mediaLibrarySyncFailed`` if the system can't remove at least one ``SHMediaItem`` or if an error occurred during the removal. In that case, the system doesn't remove any items from the library.
- Parameters:
- items: An array containing the ``SHMediaItem`` objects to remove from the library.
final func addItems(_ items: [SHMediaItem]) async throws
Adds an array of media items to the user's Shazam library.
The library only accepts media items with a ``SHMediaItem/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.
- Parameters:
- items: An array containing the ``SHMediaItem`` objects to add to the library.