Instance Method

start()

Asynchronously queries the index for items that match the query object’s specifications.

Declaration

func start()

Discussion

Call this method to start a query. Query results are delivered in serial invocations of foundItemsHandler. When the query is finished, completionHandler is called.

Calling this method more than once on the same query object raises an exception.

See Also

Starting and Canceling a Query

func cancel()

Cancels a query operation.

var isCancelled: Bool

A Boolean value that indicates if the query has been cancelled.

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