Notification
A notification due to changes to a realm.
-
Posted when a write transaction has been committed to a realm on a different thread for the same file. This is not posted if
autorefresh
is enabled or if the Realm is refreshed before the notifcation has a chance to run.Realms with autorefresh disabled should normally have a handler for this notification which calls
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 Realm.Declaration
Swift
case RefreshRequired = "RLMRealmRefreshRequiredNotification"
-
Posted when the data in a realm has changed.
DidChange are posted after a realm has been refreshed to reflect a write transaction, i.e. when an autorefresh occurs,
refresh()
is called, after an implicit refresh frombeginWriteTransaction()
, and after a local write transaction is committed.Declaration
Swift
case DidChange = "RLMRealmDidChangeNotification"