The block that is executed after all requested notifications are fetched.
- iOS 8.0–11.0Deprecated
- macOS 10.10–10.13Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–11.0Deprecated
- watchOS 3.0–4.0Deprecated
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
nilif 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
more property to determine if there are more results waiting on the server. If the value of that property is
YES, use the value in the
server parameter to configure a new
CKFetch object to fetch the next batch of results.