endIndexBatch(expectedClientState:newClientState:completionHandler:)
Ends a batch of index updates and stores the specified state information.
Declaration
func endIndexBatch(expectedClientState: Data?, newClientState: Data, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)func endIndexBatch(expectedClientState: Data?, newClientState: Data) async throwsParameters
- expectedClientState:
The client state data from the previous batch.
- newClientState:
Up to 250 bytes of app-specific data that can help you recover from a crash and resume indexing.
- completionHandler:
The block to call with the results. The block receives the following parameter:
- error
If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is
nil.