Constants
The following constants are available globally.
-
This notification is posted when a write transaction has been committed to a Realm on a different thread for the same file.
It is not posted if
autorefreshis enabled, or if the Realm is refreshed before the notification has a chance to run.Realms with autorefresh disabled should normally install a handler for this notification which calls
-[RLMRealm refresh]after doing some work. Refreshing the Realm is optional, but not refreshing the Realm may lead to large Realm files. This is because an extra copy of the data must be kept for the stale Realm.Declaration
Objective-C
extern NS_SWIFT_NAME const RLMNotification RLMRealmRefreshRequiredNotificationSwift
static let RefreshRequired: RLMNotification -
This notification is posted by a Realm when a write transaction has been committed to a Realm on a different thread for the same file.
It is not posted if
-[RLMRealm autorefresh]is enabled, or if the Realm is refreshed before the notification has a chance to run.Realms with autorefresh disabled should normally install a handler for this notification which calls
-[RLMRealm refresh]after doing some work. Refreshing the Realm is optional, but not refreshing the Realm may lead to large Realm files. This is because Realm must keep an extra copy of the data for the stale Realm.Declaration
Objective-C
extern NS_SWIFT_NAME const RLMNotification RLMRealmDidChangeNotificationSwift
static let DidChange: RLMNotification
-
Key to identify the associated backup Realm configuration in an error’s
userInfodictionaryDeclaration
Objective-C
extern NSString *const _Nonnull RLMBackupRealmConfigurationErrorKeySwift
let RLMBackupRealmConfigurationErrorKey: String
-
The schema version used for uninitialized Realms
Declaration
Objective-C
extern const uint64_t RLMNotVersionedSwift
let RLMNotVersioned: UInt64 -
The corresponding value is the name of an exception thrown by Realm.
Declaration
Objective-C
extern NSString *const _Nonnull RLMExceptionNameSwift
let RLMExceptionName: String -
The corresponding value is a Realm file version.
Declaration
Objective-C
extern NSString *const _Nonnull RLMRealmVersionKeySwift
let RLMRealmVersionKey: String -
The corresponding key is the version of the underlying database engine.
Declaration
Objective-C
extern NSString *const _Nonnull RLMRealmCoreVersionKeySwift
let RLMRealmCoreVersionKey: String -
The corresponding key is the Realm invalidated property name.
Declaration
Objective-C
extern NSString *const _Nonnull RLMInvalidatedKeySwift
let RLMInvalidatedKey: String -
The username/password identity provider. User accounts are handled by Atlas App Services directly without the involvement of a third-party identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderUsernamePasswordSwift
static let usernamePassword: RLMIdentityProvider -
A Facebook account as an identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderFacebookSwift
static let facebook: RLMIdentityProvider -
A Google account as an identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderGoogleSwift
static let google: RLMIdentityProvider -
An Apple account as an identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderAppleSwift
static let apple: RLMIdentityProvider -
A JSON Web Token as an identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderJWTSwift
static let JWT: RLMIdentityProvider -
An Anonymous account as an identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderAnonymousSwift
static let anonymous: RLMIdentityProvider -
An Realm Cloud function as an identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderFunctionSwift
static let function: RLMIdentityProvider -
A user api key as an identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderUserAPIKeySwift
static let userAPIKey: RLMIdentityProvider -
A server api key as an identity provider.
Declaration
Objective-C
extern const RLMIdentityProvider _Nonnull RLMIdentityProviderServerAPIKeySwift
static let serverAPIKey: RLMIdentityProvider
-
Error code is a value from the RLMError enum.
Declaration
Objective-C
extern NSString *const RLMErrorDomainSwift
let RLMErrorDomain: String -
An error domain identifying non-specific system errors.
Declaration
Objective-C
extern NSString *const RLMUnknownSystemErrorDomainSwift
let RLMUnknownSystemErrorDomain: String -
The error domain string for all SDK errors related to errors reported by the synchronization manager error handler, as well as general sync errors that don’t fall into any of the other categories.
Declaration
Objective-C
extern NSString *const RLMSyncErrorDomainSwift
let RLMSyncErrorDomain: String -
The error domain string for all SDK errors related to the authentication endpoint.
Declaration
Objective-C
extern NSString *const RLMSyncAuthErrorDomainSwift
let RLMSyncAuthErrorDomain: String -
The error domain string for all SDK errors related to the Atlas App Services endpoint.
Declaration
Objective-C
extern NSString *const RLMAppErrorDomainSwift
let RLMAppErrorDomain: String
-
Deprecated
use -[NSError code]
A user info key containing the error code. This is provided for backwards compatibility only and should not be used.
Declaration
Objective-C
extern NSString *const RLMErrorCodeKeySwift
let RLMErrorCodeKey: String -
A user info key containing the name of the error code. This is for debugging purposes only and should not be relied on.
Declaration
Objective-C
extern NSString *const RLMErrorCodeNameKeySwift
let RLMErrorCodeNameKey: String -
A user info key present in sync errors which originate from the server, containing the URL of the server-side logs associated with the error.
Declaration
Objective-C
extern NSString *const RLMServerLogURLKeySwift
let RLMServerLogURLKey: String -
A user info key containing a HTTP status code. Some
RLMAppErrorcodes include this, most notablyRLMAppErrorHttpRequestFailed.Declaration
Objective-C
extern NSString *const RLMHTTPStatusCodeKeySwift
let RLMHTTPStatusCodeKey: String -
A user info key containing a
RLMCompensatingWriteInfowhich includes further details about what was reverted by the server.Declaration
Objective-C
extern NSString *const RLMCompensatingWriteInfoKeySwift
let RLMCompensatingWriteInfoKey: String
-
A user info key for use with
RLMSyncErrorClientResetError.Declaration
Objective-C
extern NSString *const kRLMSyncPathOfRealmBackupCopyKeySwift
let kRLMSyncPathOfRealmBackupCopyKey: String -
A user info key for use with certain error types.
Declaration
Objective-C
extern NSString *const kRLMSyncErrorActionTokenKeySwift
let kRLMSyncErrorActionTokenKey: String
View on GitHub
Install in Dash
Constants Reference