Protocol

CSSearchableIndexDelegate

A protocol defining methods a delegate object or app extension uses to handle communication from the on-device index.

Declaration

@protocol CSSearchableIndexDelegate

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:

Tells the delegate to reindex all searchable data and clear all local state information.

Required.

- searchableIndex:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:

Tells the delegate to reindex the searchable items associated with the specified identifiers.

Required.

Getting Information About Indexing

- searchableIndexDidThrottle:

Tells the delegate that indexing is being throttled.

- searchableIndexDidFinishThrottle:

Tells the delegate that the index throttling has finished.

Relationships

Inherits From

See Also

Setting the Delegate

indexDelegate

The delegate object that can handle index-management tasks.