CBLReplicator
@interface CBLReplicator : NSObjectA replicator for replicating document changes between a local database and a target database. The replicator can be bidirectional or either push or pull. The replicator can also be one-short or continuous. The replicator runs asynchronously, so observe the status property to be notified of progress.
- 
                  
                  The replicator’s configuration. The returned configuration object is readonly; an NSInternalInconsistencyException exception will be thrown if the configuration object is modified. DeclarationObjective-C @property (nonatomic, readonly) CBLReplicatorConfiguration *_Nonnull config;
- 
                  
                  The replicator’s current status: its activity level and progress. Observable. DeclarationObjective-C @property (readonly) CBLReplicatorStatus *_Nonnull status;
- 
                  
                  The SSL/TLS certificate received when connecting to the server. The application code takes responsibility for releasing the certificate object when the application code finishes using the certificate. DeclarationObjective-C @property (copy, readonly, nullable) SecCertificateRef serverCertificate;
- 
                  
                  Initializes a replicator with the given configuration. DeclarationObjective-C - (nonnull instancetype)initWithConfig: (nonnull CBLReplicatorConfiguration *)config;
- 
                  
                  Unavailable Not available DeclarationObjective-C - (nonnull instancetype)init;
- 
                  
                  Starts the replicator. This method returns immediately; the replicator runs asynchronously and will report its progress through the replicator change notification. DeclarationObjective-C - (void)start;
- 
                  
                  Starts the replicator with an option to reset the local checkpoint of the replicator. When the local checkpoint is reset, the replicator will sync all changes since the beginning of time from the remote database. This method returns immediately; the replicator runs asynchronously and will report its progress through the replicator change notification. DeclarationObjective-C - (void)startWithReset:(BOOL)reset;ParametersresetResets the local checkpoint before starting the replicator. 
- 
                  
                  Stops a running replicator. This method returns immediately; when the replicator actually stops, the replicator will change its status’s activity level to kCBLStoppedand the replicator change notification will be notified accordingly.DeclarationObjective-C - (void)stop;
- 
                  
                  Adds a replicator change listener. Changes will be posted on the main queue. DeclarationObjective-C - (nonnull id<CBLListenerToken>)addChangeListener: (nonnull void (^)(CBLReplicatorChange *_Nonnull))listener;ParameterslistenerThe listener to post the changes. Return ValueAn opaque listener token object for removing the listener. 
- 
                  
                  Adds a replicator change listener with the dispatch queue on which changes will be posted. If the dispatch queue is not specified, the changes will be posted on the main queue. DeclarationObjective-C - (nonnull id<CBLListenerToken>) addChangeListenerWithQueue:(nullable dispatch_queue_t)queue listener:(nonnull void (^)(CBLReplicatorChange *_Nonnull)) listener;ParametersqueueThe dispatch queue. listenerThe listener to post changes. Return ValueAn opaque listener token object for removing the listener. 
- 
                  
                  Adds a replication event listener. The replication event will be posted on the main queue. According to performance optimization in the replicator, the document replication listeners need to be added before starting the replicator. If the listeners are added after the replicator is started, the replicator needs to be stopped and restarted again to ensure that the listeners will get the document replication events. DeclarationObjective-C - (nonnull id<CBLListenerToken>)addDocumentReplicationListener: (nonnull void (^)(CBLDocumentReplication *_Nonnull))listener;ParameterslistenerThe listener to post replication events. Return ValueAn opaque listener token object for removing the listener. 
- 
                  
                  Adds a replication event listener with the dispatch queue on which replication events will be posted. If the dispatch queue is not specified, the replication events will be posted on the main queue. According to performance optimization in the replicator, the document replication listeners need to be added before starting the replicator. If the listeners are added after the replicator is started, the replicator needs to be stopped and restarted again to ensure that the listeners will get the document replication events. DeclarationObjective-C - (nonnull id<CBLListenerToken>) addDocumentReplicationListenerWithQueue:(nullable dispatch_queue_t)queue listener: (nonnull void (^)( CBLDocumentReplication *_Nonnull)) listener;ParametersqueueThe dispatch queue. listenerThe listener to post replication events. Return ValueAn opaque listener token object for removing the listener. 
- 
                  
                  Removes a change listener with the given listener token. DeclarationObjective-C - (void)removeChangeListenerWithToken:(nonnull id<CBLListenerToken>)token;ParameterstokenThe listener token; 
- 
                  
                  Deprecated Use [replicator pendingDocumentIDsForCollection:error:] instead. Get pending document ids for default collection. If the default collection is not part of the replication, an Illegal State Exception will be thrown. DeclarationObjective-C - (nullable NSSet<NSString *> *)pendingDocumentIDs: (NSError *_Nullable *_Nullable)error;ParameterserrorOn return, the error if any. Return ValueA set of document Ids, each of which has one or more pending revisions. If error, nil. 
- 
                  
                  Get pending document ids for the given collection. If the given collection is not part of the replication, an Illegal State Exception will be thrown. DeclarationObjective-C - (nullable NSSet<NSString *> *) pendingDocumentIDsForCollection:(nonnull CBLCollection *)collection error:(NSError *_Nullable *_Nullable)error;ParameterscollectionThe given collection. errorOn return, the error if any. Return ValueA set of document Ids, each of which has one or more pending revisions. If error, nil. 
- 
                  
                  Deprecated Use [replicator isDocumentPending:collection:error:] instead. Check whether the document in the default collection is pending to push or not. If the default collection is not part of the replicator, an Illegal State Exception will be thrown. DeclarationObjective-C - (BOOL)isDocumentPending:(nonnull NSString *)documentID error:(NSError *_Nullable *_Nullable)error;ParametersdocumentIDThe ID of the document to check errorOn return, the error if any. Return Valuetrue if the document has one or more revisions pending, false otherwise. 
- 
                  
                  Check whether the document in the given collection is pending to push or not. If the given collection is not part of the replicator, an Illegal State Exception will be thrown. DeclarationObjective-C - (BOOL)isDocumentPending:(nonnull NSString *)documentID collection:(nonnull CBLCollection *)collection error:(NSError *_Nullable *_Nullable)error;ParametersdocumentIDThe ID of the document to check collectionThe collection which document belongs errorOn return, the error if any. Return Valuetrue if the document has one or more revisions pending, false otherwise. 
 CBLReplicator Class Reference
        CBLReplicator Class Reference