Tells the delegate to reindex all searchable data and clear all local state information.
- iOS 9.0+
- macOS 10.13+
- Core Spotlight
The index in which to reindex the searchable data. The delegate or app extension should pass
Searchable Items(_: completion Handler:)
The handler to call after all client state has been saved. Note that if the app passes client state information in a batch (for example, by calling
end), the acknowledgement handler can be called immediately.
Batch(with Client State: completion Handler:)
The delegate or app extension must call the acknowledgement handler after all client state information has been saved, so that the indexer can call this method again in case of a crash.
Typically, the index tells the delegate to reindex its searchable data and clear local state when the index has been lost. An app extension should not use the index passed in
searchable when a custom data protection class is needed.