CBLReplicationDelegate
@protocol CBLReplicationDelegate <NSObject>
A CBLReplication’s delegate is called with progress information while the replication is running and when it stops.
-
Called when a replication changes its status (activity level and/or progress) while running.
Declaration
Objective-C
- (void)replication:(nonnull CBLReplication *)replication didChangeStatus:(CBLReplicationStatus)status;
Swift
optional func replication(_ replication: CBLReplication, didChange status: CBLReplicationStatus)
-
Called when a replication stops, either because it finished or due to an error.
Declaration
Objective-C
- (void)replication:(nonnull CBLReplication *)replication didStopWithError:(nullable NSError *)error;
Swift
optional func replication(_ replication: CBLReplication, didStopWithError error: Error?)