Constants

The following constants are available globally.

  • A user info key for use with RLMSyncErrorClientResetError.

    Declaration

    Objective-C

    extern NSString *const _Nonnull kRLMSyncPathOfRealmBackupCopyKey

    Swift

    let kRLMSyncPathOfRealmBackupCopyKey: String
  • A user info key for use with certain error types.

    Declaration

    Objective-C

    extern NSString *const _Nonnull kRLMSyncErrorActionTokenKey

    Swift

    let kRLMSyncErrorActionTokenKey: 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 _Nonnull RLMSyncErrorDomain

    Swift

    let RLMSyncErrorDomain: String
  • The error domain string for all SDK errors related to the authentication endpoint.

    Declaration

    Objective-C

    extern NSString *const _Nonnull RLMSyncAuthErrorDomain

    Swift

    let RLMSyncAuthErrorDomain: String
  • The error domain string for all SDK errors related to the permissions system and APIs.

    Declaration

    Objective-C

    extern NSString *const _Nonnull RLMSyncPermissionErrorDomain

    Swift

    let RLMSyncPermissionErrorDomain: String

Enums

Notification Constants

  • 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 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 an extra copy of the data must be kept for the stale Realm.

    Declaration

    Objective-C

    extern RLM_EXTENSIBLE_STRING_ENUM_CASE_SWIFT_NAME(
        RLMRealmRefreshRequiredNotification,
        RefreshRequired) const RLMNotification RLMRealmRefreshRequiredNotification
  • 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 RLM_EXTENSIBLE_STRING_ENUM_CASE_SWIFT_NAME(RLMRealmDidChangeNotification,
                                                      DidChange) const
        RLMNotification RLMRealmDidChangeNotification

Error keys

Other Constants