CBLReplicatorConfiguration
@interface CBLReplicatorConfiguration : NSObject <NSCopying>
Replicator configuration.
-
The local database to replicate with the target database. The database property is required.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) CBLDatabase *database; -
The replication target to replicate with. The replication target can be either a URL to the remote database or a local databaes. The target property is required.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) CBLReplicatorTarget *target; -
Replication type indicating the direction of the replication. The default value is .pushAndPull which is bidrectional.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CBLReplicatorType replicatorType; -
Should the replicator stay active indefinitely, and push/pull changed documents?. The default value is NO.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL continuous; -
The conflict resolver for this replicator. The default value is nil, which means the default algorithm will be used, where the revision with more history wins.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) id<CBLConflictResolver> conflictResolver; -
If this property is non-null, the server is required to have this exact SSL/TLS certificate, or the connection will fail.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) SecCertificateRef pinnedServerCertificate; -
Extra options that can affect replication.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSDictionary<NSString *, id> *options; -
Initialize a CBLReplicatorConfiguration with the default values.
Declaration
Objective-C
- (nonnull instancetype)init;
CBLReplicatorConfiguration Class Reference