Instance Property

perRecordCompletionBlock

The block to execute when the save results of a single record are known.

Declaration

@property(nonatomic, copy, nonnull) void (^perRecordCompletionBlock)(CKRecord *record, NSError *error);

Discussion

The block returns no value and takes the following parameters:

record

A CKRecord object that you attempted to save.

error

An error object containing information about a problem, or nil if the record was saved successfully.

This block is executed once for each record in the recordsToSave property. Each time the block is executed, it is executed serially with respect to the other progress blocks of the operation.

If you intend to use this block to process results, set it before executing the operation or submitting the operation object to a queue. Use this block to take any actions after the status of saving the record is known.

See Also

Processing the Operation Results

perRecordProgressBlock

The block to execute with progress information for an individual record.

modifyRecordsCompletionBlock

The block to execute after the status of all changes is known.

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