- Notifications
You must be signed in to change notification settings - Fork548
CoreSpotlight iOS xcode16.3 b1
Rolf Bjarne Kvinge edited this pageMar 7, 2025 ·2 revisions
#CoreSpotlight.frameworkhttps://github.com/dotnet/macios/pull/22330
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h2024-11-10 10:47:06+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h2025-02-13 05:38:25@@ -144,5 +144,11 @@ // The developer may provide a NSURL to file representation representation if type was specified from providerDataTypeIdentifiers or providerInPlaceFileTypeIdentifiers property. - (nullable NSURL *)fileURLForSearchableIndex:(CSSearchableIndex *)searchableIndex itemIdentifier:(NSString *)itemIdentifier typeIdentifier:(NSString *)typeIdentifier inPlace:(BOOL)inPlace error:(out NSError ** __nullable)outError CS_AVAILABLE(10_13, 11_0) CS_TVOS_UNAVAILABLE;+// The index requests that the delegate provide searchable items for the provided identifiers+- (void)searchableItemsForIdentifiers:(NSArray <NSString *> *)identifiers searchableItemsHandler:(void (^)(NSArray<CSSearchableItem *> *items))searchableItemsHandler NS_AVAILABLE(15_4, 18_4);++// The developer may want to be notified when an item has been updated with specific attributes (see: CSSearchableItemUpdateListenerOptions for Apple Intelligence attributes)+- (void)searchableItemsDidUpdate:(NSArray<CSSearchableItem *> *)items NS_AVAILABLE(15_4, 18_4);+ @end NS_ASSUME_NONNULL_ENDdiff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h2024-11-10 10:47:07+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h2025-02-13 05:38:26@@ -33,6 +33,11 @@ CORESPOTLIGHT_EXPORT NSString * const CSQueryContinuationActionType CS_AVAILABLE(10_13, 10_0) CS_TVOS_UNAVAILABLE; CORESPOTLIGHT_EXPORT NSString * const CSSearchQueryString CS_AVAILABLE(10_13, 10_0) CS_TVOS_UNAVAILABLE;+typedef NS_OPTIONS(NSUInteger, CSSearchableItemUpdateListenerOptions) {+ CSSearchableItemUpdateListenerOptionDefault = 0,+ CSSearchableItemUpdateListenerOptionSummarization = 1 << 1, // textContentSummary+ CSSearchableItemUpdateListenerOptionPriority = 1 << 2, // isPriority+} NS_SWIFT_NAME(CSSearchableItem.UpdateListenerOptions) API_AVAILABLE(macos(15_4), ios(18_4)); CS_CLASS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE@@ -70,6 +75,11 @@ // If an item is marked as an update, but does not already exist in the index, it will be dropped during the attempted indexing. // In update mode, attributes can be marked as deleted by setting their value to nil. @property (assign) BOOL isUpdate API_AVAILABLE(macos(10.11), ios(9.0)) CS_TVOS_UNAVAILABLE;++// An option flag to specify whether to listen for specific attribute updates that Spotlight can provide.+// A developer may be notified by a call of searchableItemsDidUpdate to its delegate, where specific properties will be available on the item.+@property (assign) CSSearchableItemUpdateListenerOptions updateListenerOptions NS_AVAILABLE(15_4, 18_4);+ @end NS_ASSUME_NONNULL_ENDdiff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h2024-11-14 13:21:57+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h2025-02-13 05:24:37@@ -10,6 +10,10 @@ CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE @interface CSSearchableItemAttributeSet (CSDocuments)+// Move the internals from a source object to this object,+// sourceAttributeSet param should NOT be used after calling this method.+-(void)moveFrom:(CSSearchableItemAttributeSet * _Nonnull)sourceAttributeSet;+ ///Subject of the this item. @property(nullable, copy) NSString *subject;diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h2024-11-13 05:53:23+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h2025-02-07 18:52:50@@ -86,7 +86,14 @@ @property(nullable, copy) NSArray<NSString*> *instantMessageAddresses; //This attribute indicates if the document is likely to be considered junk. Should be 1 if true, 0 otherwise-@property (nonatomic, strong, getter=isLikelyJunk) NSNumber *likelyJunk;+@property(nonatomic, strong, getter=isLikelyJunk) NSNumber *likelyJunk;++@property(nonatomic, nullable, strong, readonly) NSNumber *isPriority NS_AVAILABLE(15_4, 18_4);++@property(nonatomic, nullable, copy, readonly) NSString *textContentSummary NS_AVAILABLE(15_4, 18_4);++// Write-only accessor for transcribed textContent. This property can be queried as textContent.+@property(nonatomic, nullable, strong) NSString *transcribedTextContent NS_AVAILABLE(15_4, 18_4); @end