Skip to content

CoreSpotlight iOS xcode14.0 beta4

Manuel de la Pena edited this page Aug 2, 2022 · 3 revisions

#CoreSpotlight.framework https://github.com/xamarin/xamarin-macios/pull/15605

diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h	2022-06-30 22:10:19.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h	2022-07-25 15:36:26.000000000 -0400
@@ -18,17 +18,17 @@
     CSSearchQueryErrorCodeCancelled = -2003,
 } API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE;
 
-
-typedef NS_ENUM(NSInteger, CSSearchQuerySourceOptions) {
+typedef NS_OPTIONS(NSUInteger, CSSearchQuerySourceOptions) {
     CSSearchQuerySourceOptionDefault = 0,
     CSSearchQuerySourceOptionAllowMail = 1 << 0,  // com.apple.corespotlight.search.allow.mail entitlement
-} API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE;
+} NS_SWIFT_NAME(CSSearchQueryContext.SourceOptions) API_AVAILABLE(macos(13));
 
 @class CSSearchableItem;
 
 API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE
 @interface CSSearchQueryContext : NSObject<NSSecureCoding, NSCopying>
 
+
 #ifdef USE_SUGGESTIONS_API
 @property (nonatomic, strong) NSArray<NSFileProtectionType> *protectionClasses;
 @property (nonatomic, strong) NSArray<NSString *> *fetchAttributes;
@@ -41,7 +41,7 @@
 
 @property (nullable, nonatomic, strong) NSString *keyboardLanguage;
 
-@property (nonatomic, assign) CSSearchQuerySourceOptions sourceOptions;
+@property (nonatomic, assign) CSSearchQuerySourceOptions sourceOptions API_AVAILABLE(macos(13));
 @end
 
 API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h	2022-06-30 09:31:22.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h	2022-07-22 10:06:15.000000000 -0400
@@ -85,14 +85,13 @@
 
 @end
 
-CS_AVAILABLE(13_0, 16_0)
-CS_TVOS_UNAVAILABLE
+API_AVAILABLE(macos(13))
 @interface CSSearchableIndex (CSExternalProvider)
 
-- (void)provideDataForBundle:(NSString *)bundle
-                  identifier:(NSString *)identifier
-                        type:(NSString *)type
-           completionHandler:(void (^)(NSData * _Nullable, NSError * _Nullable))completionHandler;
+- (void)fetchDataForBundleIdentifier:(NSString *)bundleIdentifier
+                      itemIdentifier:(NSString *)itemIdentifier
+                         contentType:(UTType *)contentType
+                   completionHandler:(void (^)(NSData * _Nullable, NSError * _Nullable))completionHandler;
 
 
 @end
Clone this wiki locally