Instance Property

recordFetchedBlock

The block to execute for each record returned by the query.

Declaration

var recordFetchedBlock: ((CKRecord) -> Void)? { get set }

Discussion

The block returns no value and takes the following parameter:

record

A CKRecord object matching the search criteria.

After identifying and sorting the records, the operation object executes this block once for each record in the sorted results. The block is executed serially with respect to all progress blocks of the operation object, so you can expect only one block at a time to be executing for this operation object.

If you intend to use this block to process results, set it before executing the operation or submitting the operation object to a queue.

See Also

Processing the Operation Results

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