Instance Property


The block that is executed after all requested notifications are fetched.


var fetchNotificationChangesCompletionBlock: ((CKServerChangeToken?, Error?) -> Void)? { get set }


The block returns no value and takes the following parameters:


An opaque object that you can use during subsequent fetch operations to retrieve the next batch of notifications.


An error object containing information about a problem, or nil if the results are retrieved successfully.

The operation object executes this block only once, which represents your last chance to process the operation results. This block is executed after all individual progress blocks but before the operation’s completion block. The block 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.

In your block, check the value of the moreComing property to determine if there are more results waiting on the server. If the value of that property is true, use the value in the serverChangeToken parameter to configure a new CKFetchNotificationChangesOperation object to fetch the next batch of results.

See Also

Processing the Operation Results

var moreComing: Bool

A Boolean value indicating that more notifications are waiting to be delivered.

var notificationChangedBlock: ((CKNotification) -> Void)?

The block that processes a single push notification.