Instance Property


The block to execute when the query completes.


var completionHandler: ((Error?) -> Void)? { get set }


The block returns no value and takes the following parameter:


An error object that contains information about a problem, or nil if the query completed successfully.

See Also

Handling Query Results

var foundItemCount: Int

The number of items found so far.

var foundItemsHandler: (([CSSearchableItem]) -> Void)?

The block to execute when the query finds a new batch of matching items.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software