LoginScreenViewModel

class LoginScreenViewModel(loginUser: LoginUser, validateUserEmail: ValidateUserEmail, validateUserPassword: ValidateUserPassword, router: Router) : ViewModel

Constructors

Link copied to clipboard
constructor(loginUser: LoginUser, validateUserEmail: ValidateUserEmail, validateUserPassword: ValidateUserPassword, router: Router)

Functions

Link copied to clipboard
Link copied to clipboard
fun setEmail(email: String)

Sets the email to use for logging in the user with the submit method

Link copied to clipboard
fun setPassword(password: String)

Sets the password to use for logging in the user with the submit method

Link copied to clipboard
fun signUp()

Navigates to the sign up screen

Link copied to clipboard
fun submit()

Submits the login form using the email and password provided with setEmail and setPassword.

Properties

Link copied to clipboard
val alertState: StateFlow<AppAlertState>

Current state of UI alerts

Link copied to clipboard
val uiState: StateFlow<LoginUiState>

Current state of the UI