Skip to content

ShazamKit iOS xcode14.0 beta2

tj_devel709 edited this page Jul 18, 2022 · 3 revisions

#ShazamKit.framework https://github.com/xamarin/xamarin-macios/pull/15539

diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h	2022-05-31 15:03:03.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h	2022-06-17 15:30:06.000000000 -0400
@@ -65,6 +65,9 @@
 /// The time ranges in the represented media that are described by this @c SHMediaItem
 SH_EXPORT SHMediaItemProperty const SHMediaItemTimeRanges API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_REFINED_FOR_SWIFT;
 
+/// The frequency skew ranges that are described by this @c SHMediaItem
+SH_EXPORT SHMediaItemProperty const SHMediaItemFrequencySkewRanges API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_REFINED_FOR_SWIFT;
+
 /// @brief @c SHMediaItem represents metadata associated with a @c SHSignature
 /// @discussion A @c SHMediaItem is used in two distinct ways
 ///     1. As the base class of a @c SHMatchedMediaItem, and therefore as the result of a match
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h	2022-05-31 14:53:12.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h	2022-06-17 15:30:06.000000000 -0400
@@ -17,7 +17,7 @@
 
 /// Create a `SHSignature` from an @c AVAsset.
 /// @param asset An AVAsset that contains audio you would like to convert to a Signature
-/// @discussion The asset can be any type of media that has a audio tracks. If the asset has multiple tracks, they
+/// @discussion The asset can be any type of media that has audio tracks. If the asset has multiple tracks, they
 /// will be mixed into one @c SHSignature
 /// @param completionHandler A block called with the created @c SHSignature or nil and a populated error parameter if a signature could not be created.
 + (void)generateSignatureFromAsset:(AVAsset *)asset completionHandler:(void (^)(SHSignature * __nullable signature, NSError * __nullable error))completionHandler API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_SWIFT_ASYNC_NAME(signature(from:));
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h	2022-05-25 22:36:57.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h	2022-06-13 02:18:40.000000000 -0400
@@ -23,3 +23,4 @@
 #import <ShazamKit/SHSession.h>
 #import <ShazamKit/SHSignature.h>
 #import <ShazamKit/SHSignatureGenerator.h>
+#import <ShazamKit/UTType+SHShazamAdditions.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/UTType+SHShazamAdditions.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/UTType+SHShazamAdditions.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/UTType+SHShazamAdditions.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/UTType+SHShazamAdditions.h	2022-06-17 15:30:06.000000000 -0400
@@ -0,0 +1,25 @@
+//
+//  UTType+SHShazamAdditions.h
+//  ShazamKit
+//
+//  Copyright © 2022 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <ShazamKit/SHDefines.h>
+#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability)
+
+SH_EXPORT API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0))
+@interface UTType (SHShazamAdditions)
+
+/// A type representing the @c SHSignature file format with the .shazamsignature extension
+@property (NS_NONATOMIC_IOSONLY, strong, readonly, class) UTType *SHSignatureContentType  NS_REFINED_FOR_SWIFT;
+
+/// A type representing the @c SHCustomCatalog file format with the .shazamcatalog extension
+@property (NS_NONATOMIC_IOSONLY, strong, readonly, class) UTType *SHCustomCatalogContentType NS_REFINED_FOR_SWIFT;
+
+@end
+
+NS_HEADER_AUDIT_END(nullability)
Clone this wiki locally