CSIndexExtensionRequestHandler
An interface that implements an index-maintenance app extension.
Declaration
class CSIndexExtensionRequestHandlerMentioned in
Overview
The CSIndexExtensionRequestHandler class provides the main entry point for an index-maintenance app extension. If any issues arise with your app’s indexes and your app isn’t running, the system loads your app extension and looks for an implementation of this class. It instantiates the class it finds and uses it to perform any index-related maintenance.
Define a custom subclass of CSIndexExtensionRequestHandler in your app extension and implement methods of the CSSearchableIndexDelegate protocol in it. Use those methods to perform any required updates to your app’s index files. For example, use the searchableIndex(_:reindexAllSearchableItemsWithAcknowledgementHandler:) method to reindex all items in your app.