Instance Property


The number of items found so far.


var foundItemCount: Int { get }


While the query is operating, it updates this property before each invocation of the block you supply in the foundItemsHandler property. When foundItemsHandler is nil, the value of this property is the total number of found items at the completion of the query.

See Also

Handling Query Results

var completionHandler: ((Error?) -> Void)?

The block to execute when the query completes.

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