RLMUserState

enum RLMUserState {}

The state of the user object.

  • The user is logged out. Call logInWithCredentials:... with valid credentials to log the user back in.

    Declaration

    Objective-C

    RLMUserStateLoggedOut

    Swift

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

    Declaration

    Objective-C

    RLMUserStateLoggedIn

    Swift

    case loggedIn = 1
  • The user has been removed, and cannot be used.

    Declaration

    Objective-C

    RLMUserStateRemoved

    Swift

    case removed = 2