Skip to content

ShazamKit watchOS xcode16.0 b1

Rolf Bjarne Kvinge edited this page Jun 20, 2024 · 2 revisions

#ShazamKit.framework

Rolf

diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h	2024-04-13 14:27:29
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h	2024-05-30 06:03:06
@@ -20,6 +20,9 @@
 SH_EXPORT API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 @interface SHCustomCatalog : SHCatalog
 
+/// The data representation of this file, it can be written to disk
+@property (NS_NONATOMIC_IOSONLY, strong, readonly) NSData *dataRepresentation API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0), visionos(2.0));
+ 
 /// Add a reference @c SHSignature and its associated @c SHMediaItem for matching
 /// @param signature The reference to match against
 /// @param mediaItems The metadata associated with the @c SHSignature
@@ -39,10 +42,15 @@
 /// @param destinationURL The location to write to
 /// @param error populated on error, otherwise nil
 /// @return YES on success, NO on failure with a populated error parameter
-- (BOOL)writeToURL:(NSURL *)destinationURL error:(NSError **)error;
+- (BOOL)writeToURL:(NSURL *)destinationURL error:(NSError **)error API_DEPRECATED("Use dataRepresentation", macos(12.0, 15.0), ios(15.0, 18.0), tvos(15.0, 18.0), watchos(8.0, 11.0));
 
 + (instancetype)new API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0)) NS_SWIFT_UNAVAILABLE("Use init in Swift");
 - (instancetype)init API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0));
+
+/// Load a @c SHCustomCatalog from data
+/// @param dataRepresentation The data representation of the @c SHCustomCatalog
+/// @param error Error populated if not a valid data representation
+- (nullable instancetype)initWithDataRepresentation:(NSData *)dataRepresentation error:(NSError **)error API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0), visionos(2.0));
 
 @end
 
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h	2024-04-13 14:27:30
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h	2024-05-30 06:03:06
@@ -13,7 +13,7 @@
 
 /// @brief @c SHMediaLibrary represents the user's synced Shazam library.
 /// @discussion You can add new @c SHMediaItem instances to the user's library.
-SH_EXPORT API_DEPRECATED("Use SHLibrary instead", macos(12.0, API_TO_BE_DEPRECATED), ios(15.0, API_TO_BE_DEPRECATED), tvos(15.0, API_TO_BE_DEPRECATED), watchos(8.0, API_TO_BE_DEPRECATED))
+SH_EXPORT API_DEPRECATED("Use SHLibrary instead", macos(12.0, 15.0), ios(15.0, 18.0), tvos(15.0, 18.0), watchos(8.0, 11.0))
 @interface SHMediaLibrary : NSObject
 
 /// @brief Returns an instance of the default Shazam library.
Clone this wiki locally