Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKFetchRecordChangesOperationMBS class.

CKFetchRecordChangesOperationMBS.Constructor(recordZoneID as CKRecordZoneIDMBS, previousServerChangeToken as CKServerChangeTokenMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns an operation object configured to fetch changes in the specified record zone.

recordZoneID: The zone containing the records you want to fetch. The zone can be a custom zone. Syncing the default zone is not supported.
previousServerChangeToken: The change token from a previous fetch operation. This is the token passed to your fetchRecordChangesCompleted event during a previous fetch operation. Use this token to limit the returned data to only those changes that have occurred since you last made the same fetch request. If you specify nil for this parameter, the operation object fetches all records and their contents.

Returns an initialized operation object.

When initializing the operation object, use the token from a previous fetch request if you have one. You can archive tokens and write them to disk for later use if needed.

The returned operation object is configured to retrieve all changed fields of the record, including any assets stored in those fields. If you want to minimize the amount of data returned even further, configure the desiredKeys property with the subset of keys whose values you want to fetch.

After initializing the operation, associate at least one progress block with the operation object (excluding the completion block) to process the results.

CKFetchRecordChangesOperationMBS.desiredKeys as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The fields to fetch for the requested records.

Use this property to limit the amount of data retrieved for each record during the fetch operation. This property contains an array of strings, each of which contains the name of a field from the target records. When you retrieve a given record, only fields whose names match one of the keys in this property are included in the returned record. The default value is nil, which causes all keys of the record to be fetched.

Because the records you fetch can be of different types, the array should contain the merged set of all field names for the requested records and include at least one field name from each record type.

If you intend to specify the desired set of keys, set the value of this property before executing the operation or submitting it to a queue.

CKFetchRecordChangesOperationMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 21.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Destructor

CKFetchRecordChangesOperationMBS.setDesiredKeys(desiredKeys() as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the fields to fetch for the requested records.

Use this property to limit the amount of data retrieved for each record during the fetch operation. This property contains an array of strings, each of which contains the name of a field from the target records. When you retrieve a given record, only fields whose names match one of the keys in this property are included in the returned record. The default value is nil, which causes all keys of the record to be fetched.

Because the records you fetch can be of different types, the array should contain the merged set of all field names for the requested records and include at least one field name from each record type.

If you intend to specify the desired set of keys, set the value of this property before executing the operation or submitting it to a queue.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...