Instance Property

indexDelegate

The delegate object that can handle index-management tasks.

Declaration

weak var indexDelegate: CSSearchableIndexDelegate? { get set }

Discussion

The delegate should conform to the CSSearchableIndexDelegate protocol. Set this property to handle communication with the index and perform index-management tasks for your app. In particular, long-running apps should set a delegate so that the index can be updated while the app is in the background. Alternatively, you can create an extension with a request handler that conforms to the CSSearchableIndexDelegate protocol and let the extension perform index updates when your app isn’t running.

See Also

Setting the Delegate

protocol CSSearchableIndexDelegate

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