CBLReplicatorTarget
@interface CBLReplicatorTarget : NSObject
Replicator target, which can be either a URL to the remote database or a local database.
-
A URL to the remote database
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSURL *url; -
A local database
Declaration
Objective-C
@property (readonly, nonatomic, nullable) CBLDatabase *database; -
Create a CBLReplicatorTarget with a URL to the remote database. - parameter: url the url to the remote database. @result the CBLReplicatorTarget initialized the the given url.
Declaration
Objective-C
+ (nonnull instancetype)url:(nonnull NSURL *)url;Parameters
url -
Create a CBLReplicatorTarget with a local database. - parameter: database the local database. @result the CBLReplicatorTarget initialized with the given local database.
Declaration
Objective-C
+ (nonnull instancetype)database:(nonnull CBLDatabase *)database;Parameters
database -
Initialze a CBLReplicatorTarget with a URL to the remote database. - parameter: url the url to the remote database. @result the CBLReplicatorTarget initialized the the given url.
Declaration
Objective-C
- (nonnull instancetype)initWithURL:(nonnull NSURL *)url;Parameters
url -
Initialze a CBLReplicatorTarget with a local database. - parameter: database the local database. @result the CBLReplicatorTarget initialized with the given local database.
Declaration
Objective-C
- (nonnull instancetype)initWithDatabase:(nonnull CBLDatabase *)database;Parameters
database
CBLReplicatorTarget Class Reference