RLMSyncSessionState

Objective-C

enum RLMSyncSessionState : NSUInteger {}

Swift

enum RLMSyncSessionState : UInt, @unchecked Sendable

The current state of the session represented by a session object.

  • The sync session is actively communicating or attempting to communicate with MongoDB Realm. A session is considered Active even if it is not currently connected. Check the connection state instead if you wish to know if the connection is currently online.

    Declaration

    Objective-C

    RLMSyncSessionStateActive

    Swift

    case active = 0
  • The sync session is not attempting to communicate with MongoDB Realm due to the user logging out or synchronization being paused.

    Declaration

    Objective-C

    RLMSyncSessionStateInactive

    Swift

    case inactive = 1
  • The sync session encountered a fatal error and is permanently invalid; it should be discarded.

    Declaration

    Objective-C

    RLMSyncSessionStateInvalid

    Swift

    case invalid = 2