ExamerProfileScreenViewModel

class ExamerProfileScreenViewModel(    application: Application,     repository: Repository,     authenticationService: AuthenticationService,     passwordManager: PasswordManager,     credentialsValidationUseCase: CredentialsValidationUseCase) : AndroidViewModel, ProfileScreenViewModel, CredentialsValidationUseCase

Constructors

Link copied to clipboard
fun ExamerProfileScreenViewModel(    application: Application,     repository: Repository,     authenticationService: AuthenticationService,     passwordManager: PasswordManager,     credentialsValidationUseCase: CredentialsValidationUseCase)

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
open fun <T : Application> getApplication(): T
Link copied to clipboard
open fun <T : Any> getTag(p0: String): T
Link copied to clipboard
open override fun isValidEmail(email: String): Boolean

A method that returns true if the specified email is a valid email. If it is not a valid email, it will return false.

Link copied to clipboard
open override fun isValidPassword(password: String): Boolean

A method that returns true if the specified password is a valid password. If it is not a valid password, it will return false.

Link copied to clipboard
open fun onCleared()
Link copied to clipboard
open fun <T : Any> setTagIfAbsent(p0: String, p1: T): T
Link copied to clipboard
open override fun updateAttributeForCurrentUser(    updateAttribute: ProfileScreenViewModel.UpdateAttribute,     newValue: String,     resetStateTimeOut: Long)

Used to update the specified updateAttribute to the newValue for the current user.

Link copied to clipboard
open override fun updateProfilePicture(imageBitmap: ImageBitmap, resetStateTimeOut: Long)

Used to update the profile picture of the currently logged in user with the specified imageBitmap.

Properties

Link copied to clipboard
open override val uiState: State<ProfileScreenViewModel.UiState>

A state property that contains the UI state of ProfileScreenViewModel.