Examer Sign Up View Model
class ExamerSignUpViewModel( authenticationService: AuthenticationService, passwordManager: PasswordManager, credentialsValidationUseCase: CredentialsValidationUseCase, dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main)) : ViewModel, SignUpViewModel, CredentialsValidationUseCase
Content copied to clipboard
This is class represents a viewModel for a Sign-up screen.
Parameters
authentication Service
the authentication service to be used.
dispatcher Provider
the dispatcher provider that is to be used in the viewModel. By default, it uses an instance of StandardDispatchersProvider. The io dispatcher is changed to Dispatchers.Main because, the data layer ensures that all suspend functions are main safe.
Constructors
Link copied to clipboard
fun ExamerSignUpViewModel( authenticationService: AuthenticationService, passwordManager: PasswordManager, credentialsValidationUseCase: CredentialsValidationUseCase, dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main))
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open override fun createNewAccount( name: String, email: String, password: String, @MainThread onSuccess: () -> Unit, profilePhotoUri: Uri?)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Used to change the uiState to a non-error state thereby removing any associated error messages from the UI layer.
Link copied to clipboard