RLMSyncManager
@interface RLMSyncManager : NSObject
A singleton manager which serves as a central point for sync-related configuration.
-
A block which can optionally be set to report sync-related errors to your application.
Any error reported through this block will be of the
RLMSyncError
type, and marked with theRLMSyncErrorDomain
domain.Errors reported through this mechanism are fatal, with several exceptions. Please consult
RLMSyncError
for information about the types of errors that can be reported through the block, and for for suggestions on handling recoverable error codes.See
RLMSyncError
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) RLMSyncErrorReportingBlock errorHandler;
Swift
var errorHandler: RLMSyncErrorReportingBlock? { get set }
-
A reverse-DNS string uniquely identifying this application. In most cases this is automatically set by the SDK, and does not have to be explicitly configured.
Declaration
Objective-C
@property (readwrite, copy, nonatomic) NSString *_Nonnull appID;
Swift
var appID: String { get set }
-
Whether SSL certificate validation should be disabled.
Once this value is set (either way), it will be used as the default value for SSL validation when initializing new sync configuration values. A given configuration’s SSL validation setting can still be overriden from the global default by setting it explicitly.
Warning
NEVER disable certificate validation for clients and servers in production.Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL disableSSLValidation;
Swift
var disableSSLValidation: Bool { get set }
-
The logging threshold which newly opened synced Realms will use. Defaults to
RLMSyncLogLevelInfo
.Logging strings are output to Apple System Logger.
Warning
This property must be set before any synced Realms are opened. Setting it after opening any synced Realm will do nothing.Declaration
Objective-C
@property (assign, readwrite, nonatomic) RLMSyncLogLevel logLevel;
Swift
var logLevel: RLMSyncLogLevel { get set }
-
The sole instance of the singleton.
Declaration
Objective-C
+ (nonnull instancetype)sharedManager;
Swift
class func __shared() -> Self