@@ -126,6 +126,8 @@ interface CSSearchableIndex {
126
126
/// <summary>Completion handler used in <see cref="M:CoreSpotlight.CSSearchableIndex_CSOptionalBatchingExtension.FetchLastClientState(CoreSpotlight.CSSearchableIndex,CoreSpotlight.CSSearchableIndexFetchHandler)" />.</summary>
127
127
delegate void CSSearchableIndexFetchHandler ( NSData clientState , NSError error ) ;
128
128
129
+ delegate void CSSearchableIndexEndIndexHandler ( [ NullAllowed ] NSError error ) ;
130
+
129
131
/// <summary>Extension methods for <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:CoreServices.CSSearchableIndex&scope=Xamarin" title="T:CoreServices.CSSearchableIndex">T:CoreServices.CSSearchableIndex</a></format>.</summary>
130
132
[ NoTV ] // CS_TVOS_UNAVAILABLE
131
133
[ MacCatalyst ( 13 , 1 ) ]
@@ -141,6 +143,10 @@ interface CSSearchableIndex_CSOptionalBatchingExtension {
141
143
142
144
[ Export ( "fetchLastClientStateWithCompletionHandler:" ) ]
143
145
void FetchLastClientState ( CSSearchableIndexFetchHandler completionHandler ) ;
146
+
147
+ [ NoTV , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
148
+ [ Export ( "endIndexBatchWithExpectedClientState:newClientState:completionHandler:" ) ]
149
+ void EndIndexBatch ( [ NullAllowed ] NSData expectedClientState , NSData newClientState , [ NullAllowed ] CSSearchableIndexEndIndexHandler completionHandler ) ;
144
150
}
145
151
146
152
/// <summary>Interface representing the required methods (if any) of the protocol <see cref="T:CoreSpotlight.CSSearchableIndexDelegate" />.</summary>
@@ -229,6 +235,10 @@ interface CSSearchableItem : NSSecureCoding, NSCopying {
229
235
[ NoTV , iOS ( 16 , 0 ) , MacCatalyst ( 16 , 0 ) , Mac ( 13 , 0 ) , NoWatch ]
230
236
[ Export ( "compareByRank:" ) ]
231
237
NSComparisonResult CompareByRank ( CSSearchableItem other ) ;
238
+
239
+ [ NoTV , NoWatch ]
240
+ [ Export ( "isUpdate" , ArgumentSemantic . Assign ) ]
241
+ bool IsUpdate { get ; set ; }
232
242
}
233
243
234
244
/// <summary>Represents a string-like object that returns a locale-specific version of a string.</summary>
@@ -1133,6 +1143,9 @@ interface CSSearchableItemAttributeSet : NSCopying, NSSecureCoding {
1133
1143
[ BaseType ( typeof ( NSObject ) ) ]
1134
1144
[ DisableDefaultCtor ]
1135
1145
interface CSSearchQuery {
1146
+ [ Deprecated ( PlatformName . iOS , 16 , 0 , message : "Use the constructor that takes a 'CSSearchQueryContext' parameter instead." ) ]
1147
+ [ Deprecated ( PlatformName . MacCatalyst , 18 , 0 , message : "Use the constructor that takes a 'CSSearchQueryContext' parameter instead." ) ]
1148
+ [ Deprecated ( PlatformName . MacOSX , 13 , 0 , message : "Use the constructor that takes a 'CSSearchQueryContext' parameter instead." ) ]
1136
1149
[ Export ( "initWithQueryString:attributes:" ) ]
1137
1150
NativeHandle Constructor ( string queryString , [ NullAllowed ] string [ ] attributes ) ;
1138
1151
@@ -1190,6 +1203,29 @@ interface CSUserQuery {
1190
1203
1191
1204
[ Export ( "cancel" ) ]
1192
1205
void Cancel ( ) ;
1206
+
1207
+ [ Static ]
1208
+ [ Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
1209
+ [ Export ( "prepare" ) ]
1210
+ void Prepare ( ) ;
1211
+
1212
+ [ Static ]
1213
+ [ Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
1214
+ [ Export ( "prepareProtectionClasses:" ) ]
1215
+ void Prepare ( NSString [ ] protectionClasses ) ;
1216
+
1217
+ [ Static ]
1218
+ [ Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
1219
+ [ Wrap ( "Prepare (protectionClasses.ToConstantArray ()!)" ) ]
1220
+ void Prepare ( NSFileProtectionType [ ] protectionClasses ) ;
1221
+
1222
+ [ Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
1223
+ [ Export ( "userEngagedWithItem:visibleItems:userInteractionType:" ) ]
1224
+ void UserEngaged ( CSSearchableItem item , CSSearchableItem [ ] visibleItems , CSUserInteraction userInteractionType ) ;
1225
+
1226
+ [ Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
1227
+ [ Export ( "userEngagedWithSuggestion:visibleSuggestions:userInteractionType:" ) ]
1228
+ void UserEngaged ( CSSuggestion suggestion , CSSuggestion [ ] visibleSuggestions , CSUserInteraction userInteractionType ) ;
1193
1229
}
1194
1230
1195
1231
[ NoTV , Mac ( 13 , 0 ) , iOS ( 16 , 0 ) , MacCatalyst ( 16 , 0 ) ]
@@ -1212,6 +1248,14 @@ interface CSUserQueryContext {
1212
1248
1213
1249
[ Export ( "maxResultCount" ) ]
1214
1250
nint MaxResultCount { get ; set ; }
1251
+
1252
+ [ Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
1253
+ [ Export ( "disableSemanticSearch" ) ]
1254
+ bool DisableSemanticSearch { get ; set ; }
1255
+
1256
+ [ Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
1257
+ [ Export ( "maxRankedResultCount" ) ]
1258
+ nint MaxRankedResultCount { get ; set ; }
1215
1259
}
1216
1260
1217
1261
0 commit comments