nextRecordZoneChangeBatch abstract method

Future<CloudKitRecordZoneChangeBatch?> nextRecordZoneChangeBatch(
  1. List<CloudKitPendingRecordZoneChange> pendingChanges
)

Builds the records for the next request the engine sends.

pendingChanges lists up to 250 changes in the request's scope. Return records for some or all of them. Null or an empty batch ends the send, and so does an error; the changes stay pending. For a change whose record no longer exists locally, call CloudKitSyncEngine.removePendingRecordZoneChanges so the engine stops asking for it.

If the native side cannot read the returned batch, the engine stops and later calls throw CloudKitSyncException.engineNotRunning with the reason.

Implementation

Future<CloudKitRecordZoneChangeBatch?> nextRecordZoneChangeBatch(
  List<CloudKitPendingRecordZoneChange> pendingChanges,
);