Examer Profile Screen View Model
class ExamerProfileScreenViewModel( application: Application, repository: Repository, authenticationService: AuthenticationService, passwordManager: PasswordManager, credentialsValidationUseCase: CredentialsValidationUseCase) : AndroidViewModel, ProfileScreenViewModel, CredentialsValidationUseCase
Content copied to clipboard
Constructors
Link copied to clipboard
fun ExamerProfileScreenViewModel( application: Application, repository: Repository, authenticationService: AuthenticationService, passwordManager: PasswordManager, credentialsValidationUseCase: CredentialsValidationUseCase)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
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
Link copied to clipboard
open override fun updateAttributeForCurrentUser( updateAttribute: ProfileScreenViewModel.UpdateAttribute, newValue: String, resetStateTimeOut: Long)
Content copied to clipboard
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)
Content copied to clipboard
Used to update the profile picture of the currently logged in user with the specified imageBitmap.
Properties
Link copied to clipboard
A state property that contains the UI state of ProfileScreenViewModel.