Instance Property

completionHandler

The block to execute when the query completes.

Declaration

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

Discussion

The block returns no value and takes the following parameter:

error

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