Contents

initWithDatabase:stateSerialization:delegate:

Creates a configuration for the specified database and serialized state.

Declaration

- (instancetype) initWithDatabase:(CKDatabase *) database stateSerialization:(CKSyncEngineStateSerialization *) stateSerialization delegate:(id<CKSyncEngineDelegate>) delegate;

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 Cksyncenginestateupdateevent that your delegate handled.

  • delegate:

    The object that provides the records to sync and handles any related events.

Return Value

An initialized configuration instance.