Fetches one record asynchronously, with a low priority, from the current database.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The ID of the record you want to fetch. This method throws an exception if this parameter is
The block to execute with the results. Your block must be capable of running on any thread of the app and must take the following parameters:
The requested record object. If no such record is found, this parameter is
An error object, or
nilif the record was fetched successfully. Use the information in the error object to determine whether a problem has a workaround.
Use this method to fetch records that are not urgent to your app’s execution. This method fetches the record with a low priority, which may cause the fetch to execute after higher-priority tasks. To fetch records more urgently, create a
CKFetch object with the desired priority. You can also use that operation object to fetch multiple records simultaneously.