CSSearchableIndexDelegate
A protocol that defines methods a delegate object or app extension uses to handle communication from the on-device index.
Declaration
protocol CSSearchableIndexDelegate : NSObjectProtocolMentioned in
Overview
The CSSearchableIndexDelegate protocol defines methods that a delegate object or an app extension can use to handle communication from the on-device index. Apps that are long-running or that perform batch updates to the index should implement the required methods of this protocol in either a delegate object or an app extension.
The index delegate methods are called when there is an issue with the index and more information is needed from an app. For example, the methods can be called when the entire index is lost or there was a failure to process data for some identifiers.
Topics
Updating the index
searchableIndex(_:reindexAllSearchableItemsWithAcknowledgementHandler:)searchableIndex(_:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:)searchableItemsDidUpdate(_:)
Providing data for an item
searchableItems(forIdentifiers:searchableItemsHandler:)data(for:itemIdentifier:typeIdentifier:)fileURL(for:itemIdentifier:typeIdentifier:inPlace:)