LogInViewModel

interface LogInViewModel

An interface that consists of all the fields and methods required for a LogInViewModel.

Functions

Link copied to clipboard
abstract fun authenticate(    emailAddress: String,     password: String,     onSuccess: () -> Unit)

Used to authenticate an existing user with the specified emailAddress and password. The onSuccess callback will be called when authentication was successful.

Link copied to clipboard
abstract fun removeErrorMessage()

Used to change the uiState to a non-error state thereby removing any associated error messages from the UI layer.

Properties

Link copied to clipboard
abstract val uiState: State<LoginUiState>

A state property the contains the current LoginUiState.

Inheritors

Link copied to clipboard