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 RLMRealmRefreshRequiredNotification

    Swift

    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 RLMRealmDidChangeNotification

    Swift

    let RLMRealmDidChangeNotification: String
  • Schema version used for uninitialized Realms

    Declaration

    Objective‑C

    extern const uint64_t RLMNotVersioned

    Swift

    let RLMNotVersioned: UInt64
  • Error domain used in Realm.

    Declaration

    Objective‑C

    extern NSString *const RLMErrorDomain

    Swift

    let RLMErrorDomain: String
  • Error domain used for non-specific system errors.

    Declaration

    Objective‑C

    extern NSString *const RLMUnknownSystemErrorDomain

    Swift

    let RLMUnknownSystemErrorDomain: String
  • Key for name of Realm exceptions.

    Declaration

    Objective‑C

    extern NSString *const RLMExceptionName

    Swift

    let RLMExceptionName: String
  • Key for Realm file version.

    Declaration

    Objective‑C

    extern NSString *const RLMRealmVersionKey

    Swift

    let RLMRealmVersionKey: String
  • Key for Realm core version.

    Declaration

    Objective‑C

    extern NSString *const RLMRealmCoreVersionKey

    Swift

    let RLMRealmCoreVersionKey: String
  • Key for Realm invalidated property name.

    Declaration

    Objective‑C

    extern NSString *const RLMInvalidatedKey

    Swift

    let RLMInvalidatedKey: String