Instance Method


Cancels a query operation.


func cancel()


When you cancel a query, and the query hasn’t already completed, completionHandler is called with the CSSearchQueryError.Code.cancelled error code.

See Also

Starting and Canceling a Query

func start()

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

var isCancelled: Bool

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