RLMSyncUserState

enum RLMSyncUserState : NSUInteger {}

The state of the user object.

  • The user is logged out. Call authenticateWithCredential:... with a valid credential to log the user back in.

    Declaration

    Objective-C

    RLMSyncUserStateLoggedOut

    Swift

    case loggedOut = 0
  • The user is logged in, and any Realms associated with it are syncing with the Realm Object Server.

    Declaration

    Objective-C

    RLMSyncUserStateActive

    Swift

    case active = 1
  • The user has encountered a fatal error state, and cannot be used.

    Declaration

    Objective-C

    RLMSyncUserStateError

    Swift

    case error = 2