fetchRecordZoneChanges
Fetch changes to the specified record zones in the database.
Declaration
Promise< CloudKit.RecordZoneChangesResponse, CloudKit.CKError > fetchRecordZoneChanges(
CloudKit.RecordZoneChangesOptions|CloudKit.RecordZoneChangesOptions[] options
);Parameters
- options:
Specifies the zones and what data to fetch from each. If you want to fetch from multiple zones, pass an array containing a Cloudkit.recordzonechangesoptions dictionary for each zone.
Return Value
A Promise object that resolves to a CloudKit.RecordZoneChangesResponse object, or rejects to a CKError object.
Discussion
Use the fetchDatabaseChanges method to get the zones that contain changed records.