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
  • 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