RLMSyncConnectionState

Objective-C

enum RLMSyncConnectionState : NSUInteger {}

Swift

enum RLMSyncConnectionState : UInt, @unchecked Sendable

The current state of a sync session’s connection. Sessions which are not in the Active state will always be Disconnected.

  • The sync session is not connected to the server, and is not attempting to connect, either because the session is inactive or because it is waiting to retry after a failed connection.

    Declaration

    Objective-C

    RLMSyncConnectionStateDisconnected

    Swift

    case disconnected = 0
  • The sync session is attempting to connect to Atlas App Services.

    Declaration

    Objective-C

    RLMSyncConnectionStateConnecting

    Swift

    case connecting = 1
  • The sync session is currently connected to Atlas App Services.

    Declaration

    Objective-C

    RLMSyncConnectionStateConnected

    Swift

    case connected = 2