Initializer

init(query:)

Initializes and returns an operation object configured to search for records in the specified zone.

Declaration

convenience init(query: CKQuery)

Parameters

query

The query to use during the search. This parameter must not be nil.

Return Value

An initialized operation object.

Discussion

You can use the returned CKQueryOperation object only once to perform a search, but the object you specify in the query parameter can be reused as needed. When executed, this query object performs a new search and returns the first batch of results. If there are more results available, you must create a separate query object using the provided cursor object.

See Also

Initializing the Operation Object

init(cursor: CKQueryOperation.Cursor)

Initializes and returns an operation object that returns more results from a previous search.

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