-
Notifications
You must be signed in to change notification settings - Fork 507
ShazamKit macOS xcode16.0 b1
Rolf Bjarne Kvinge edited this page Aug 15, 2024
·
3 revisions
#ShazamKit.framework https://github.com/xamarin/xamarin-macios/pull/21051
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h 2024-04-13 21:37:15
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h 2024-05-30 04:32:29
@@ -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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h 2024-04-13 21:37:15
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h 2024-05-30 04:32:29
@@ -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.
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status