Skip to content

CoreSpotlight tvOS xcode15.0 b3

Manuel de la Pena edited this page Sep 3, 2023 · 3 revisions

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

diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h	2023-06-10 01:53:45
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h	2023-06-24 03:31:59
@@ -80,6 +80,8 @@
 //End a batch passing in client state information to be persisted in the index.  The completion handler will be called once the client state has been persisted.
 - (void)endIndexBatchWithClientState:(NSData *)clientState completionHandler:(void (^ __nullable)(NSError * __nullable error))completionHandler;
 
+
+
 // Async fetches the app's last stored client state information.
 - (void)fetchLastClientStateWithCompletionHandler:(void (^)(NSData * __nullable clientState,NSError * __nullable error))completionHandler;
 
@@ -95,6 +97,14 @@
 
 
 @end
+
+CS_AVAILABLE(14_0, 17_0)
+CS_TVOS_UNAVAILABLE
+@interface CSSearchableIndex (CSOptionalBatchingWithExpectedState)
+//End a batch passing in client state information to be persisted in the index. The completion handler will be called with an error, and the new state will not be persisted, if the expectedClientState does not match the client state currently stored in the index. Otherwise, the completion handler will be called once the client state has been persisted.
+
+@end
+
 
 //An application that is long running should provide a CSSearchableIndexDelegate conforming object to handle communication from the index.
 //Alternatively, an app can provide an extension whose request handler conforms to this protocol and the extension will be called if the app isn't running.
Clone this wiki locally