<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKSyncEngineDelegate-3c38p/syncEngine:nextRecordZoneChangeBatchForContext:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(pl)CKSyncEngineDelegate(im)syncEngine:nextRecordZoneChangeBatchForContext:"
  },
  "title" : "syncEngine:nextRecordZoneChangeBatchForContext:"
}
-->

# syncEngine:nextRecordZoneChangeBatchForContext:

Asks the delegate to provide the next set of record changes to send to the server.

```
- (CKSyncEngineRecordZoneChangeBatch *) syncEngine:(CKSyncEngine *) syncEngine nextRecordZoneChangeBatchForContext:(CKSyncEngineSendChangesContext *) context;
```

## Parameters

`syncEngine`

The sync engine requesting changes.

`context`

The reason for the sync engine’s request, and any additional options that request is using.

## Return Value

If there are pending record changes, a batch of those changes for the sync engine to process; otherwise, `nil` to indicate there are no changes to send.

## Discussion

In your implementation, ask the sync engine’s state for any pending record zone changes and then return a change batch containing an instance of [`CKRecord`](/documentation/CloudKit/CKRecord) for each record identifier the state provides.
For both scheduled and manual send operations, the sync engine calls this method repeatedly until your app has no more changes and returns `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)