CBLMultipeerReplicatorConfiguration
@interface CBLMultipeerReplicatorConfiguration : NSObject
Configuration for creating a MultipeerReplicator
-
Identifier for discovering and connecting peers.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull peerGroupID; -
Peer identity. The identity’s certificate must be both server and client certificate.
Declaration
Objective-C
@property (nonatomic, readonly) CBLTLSIdentity *_Nonnull identity; -
Peer authenticator for verifying the connecting peer’s certificate.
Declaration
Objective-C
@property (nonatomic, readonly) id<CBLMultipeerAuthenticator> _Nonnull authenticator; -
A list of collection configurations for collections to replicate.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSArray<CBLMultipeerCollectionConfiguration *> *_Nonnull collections; -
Transport options for peer discovery and replication. The default is Wi-Fi only. When multiple transports are specified, the replicator automatically selects and switches between available transports, preferring Wi-Fi over Bluetooth.
Declaration
Objective-C
@property (nonatomic) int transports; -
Initializes the configuration with a peer group identifier, identity, authenticator and collections.
Declaration
Objective-C
- (nonnull instancetype) initWithPeerGroupID:(nonnull NSString *)peerGroupID identity:(nonnull CBLTLSIdentity *)identity authenticator:(nonnull id<CBLMultipeerAuthenticator>)authenticator collections: (nonnull NSArray<CBLMultipeerCollectionConfiguration *> *) collections;Parameters
peerGroupIDThe group identifier for discovering and connecting peers.
identityThe peer’s TLS identity. The certificate must be valid for both client and server authentication.
authenticatorPeer authenticator for verifying the connecting peer’s certificate.
collectionsA list of collection configurations for collections to replicate.
Return Value
A CBLMultipeerReplicatorConfiguration instance.
-
Unavailable
Not available
Declaration
Objective-C
- (nonnull instancetype)init;
CBLMultipeerReplicatorConfiguration Class Reference