Instance Property


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


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


The block returns no value and takes the following parameter:


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