init(database:stateSerialization:delegate:)
Creates a configuration for the specified database and serialized state.
Declaration
init(database: CKDatabase, stateSerialization: CKSyncEngine.State.Serialization?, delegate: any CKSyncEngineDelegate)Parameters
- database:
The database to sync — either a person’s private database or their shared database.
- stateSerialization:
If this is the first initialization of the associated sync engine, specify
nil; otherwise, specify the state from the most recent Stateupdate(_:) event that your delegate handled. - delegate:
The object that provides the records to sync and handles any related events.