SignUpViewModel

interface SignUpViewModel

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

Functions

Link copied to clipboard
abstract fun createNewAccount(    name: String,     email: String,     password: String,     onSuccess: () -> Unit,     profilePhotoUri: Uri? = null)

Used to create a new user account based on the provided name, email,password and optional profilePhotoUri. The onSuccess callback will be called in the event of a successful account creation. In the case of a failure, the uiState's value will be set appropriately.

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<SignUpUiState>

Inheritors

Link copied to clipboard