<!--
{
  "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/CKSyncEngineStateUpdateEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKSyncEngineStateUpdateEvent"
  },
  "title" : "CKSyncEngineStateUpdateEvent"
}
-->

# CKSyncEngineStateUpdateEvent

The sync engine state was updated, and you should persist it locally.

```
@interface CKSyncEngineStateUpdateEvent : CKSyncEngineEvent
```

## Overview

In order to function properly and efficiently, `CKSyncEngine` tracks some state internally.
When the sync engine state changes, it gives you the latest serialized version in a [`CKSyncEngine.Event.StateUpdate`](/documentation/CloudKit/CKSyncEngine-5sie5/Event/StateUpdate).
This event happens occasionally when the sync engine modifies the state internally during normal sync operation.
This event also happens when you change the state yourself.

The sync engine does not persist this state to disk, so you need to persist it alongside your own local data.
The next time your process launches, use this latest state serialization in [`stateSerialization`](/documentation/CloudKit/CKSyncEngineConfiguration/stateSerialization) to initialize your sync engine.

This state is directly tied to the changes you fetch and send with the sync engine.
You should persist this state alongside any changes fetched prior to receiving this state.

## Topics

### Accessing the state

[`stateSerialization`](/documentation/CloudKit/CKSyncEngineStateUpdateEvent/stateSerialization)

The current state of the sync engine.

[`CKSyncEngineStateSerialization`](/documentation/CloudKit/CKSyncEngineStateSerialization)

An opaque object that contains the serialized representation of a sync engine’s current state.



---

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)