Constants
The following constants are available globally.
-
Posted by RLMRealm when the data in the realm has changed.
DidChange are posted after a realm has been refreshed to reflect a write transaction, i.e. when an autorefresh occurs,
[RLMRealm refresh]is called, after an implicit refresh from[RLMRealm beginWriteTransaction], and after a local write transaction is committed.Declaration
Objective‑C
extern NSString *const RLMRealmRefreshRequiredNotificationSwift
let RLMRealmRefreshRequiredNotification: String -
Posted by RLMRealm when a write transaction has been committed to an RLMRealm on a different thread for the same file. This is not posted if
[RLMRealm autorefresh]is enabled or if the RLMRealm is refreshed before the notifcation has a chance to run.Realms with autorefresh disabled should normally have a handler for this notification which calls
[RLMRealm refresh]after doing some work. While not refreshing is allowed, it may lead to large Realm files as Realm has to keep an extra copy of the data for the un-refreshed RLMRealm.Declaration
Objective‑C
extern NSString *const RLMRealmDidChangeNotificationSwift
let RLMRealmDidChangeNotification: String
-
Schema version used for uninitialized Realms
Declaration
Objective‑C
extern const uint64_t RLMNotVersionedSwift
let RLMNotVersioned: UInt64 -
Error domain used in Realm.
Declaration
Objective‑C
extern NSString *const RLMErrorDomainSwift
let RLMErrorDomain: String -
Error domain used for non-specific system errors.
Declaration
Objective‑C
extern NSString *const RLMUnknownSystemErrorDomainSwift
let RLMUnknownSystemErrorDomain: String -
Key for name of Realm exceptions.
Declaration
Objective‑C
extern NSString *const RLMExceptionNameSwift
let RLMExceptionName: String -
Key for Realm file version.
Declaration
Objective‑C
extern NSString *const RLMRealmVersionKeySwift
let RLMRealmVersionKey: String -
Key for Realm core version.
Declaration
Objective‑C
extern NSString *const RLMRealmCoreVersionKeySwift
let RLMRealmCoreVersionKey: String -
Key for Realm invalidated property name.
Declaration
Objective‑C
extern NSString *const RLMInvalidatedKeySwift
let RLMInvalidatedKey: String
View on GitHub
Install in Dash
Constants Reference