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

# stateSerialization

The sync engine’s serialized state.

```
@property (copy, nullable) CKSyncEngineStateSerialization * stateSerialization;
```

## Discussion

This property returns the value you specify for the initializer’s `stateSerialization` parameter.
If you choose to set this property after initialization, assign the state from the most recent [`CKSyncEngineStateUpdateEvent`](/documentation/CloudKit/CKSyncEngineStateUpdateEvent) handled by your delegate.
However, if this is the first initialization of the associated sync engine, specify `nil` instead.

The default value is `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)