LoginViewModel

class LoginViewModel @Inject constructor(val configurationRegistry: ConfigurationRegistry, val accountAuthenticator: AccountAuthenticator, val sharedPreferences: SharedPreferencesHelper, val secureSharedPreference: SecureSharedPreference, val defaultRepository: DefaultRepository, val configService: ConfigService, val keycloakService: KeycloakService, val fhirResourceService: FhirResourceService, val tokenAuthenticator: TokenAuthenticator, val dispatcherProvider: DispatcherProvider, val workManager: WorkManager) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(configurationRegistry: ConfigurationRegistry, accountAuthenticator: AccountAuthenticator, sharedPreferences: SharedPreferencesHelper, secureSharedPreference: SecureSharedPreference, defaultRepository: DefaultRepository, configService: ConfigService, keycloakService: KeycloakService, fhirResourceService: FhirResourceService, tokenAuthenticator: TokenAuthenticator, dispatcherProvider: DispatcherProvider, workManager: WorkManager)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
suspend fun fetchPractitioner(onFetchUserInfo: (Result<UserInfo>) -> Unit, onFetchPractitioner: (Result<Bundle>, UserInfo?) -> Unit)
Link copied to clipboard
fun forgotPassword(context: Context)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun login(context: Context)
Link copied to clipboard
fun onPasswordUpdated(password: String)
Link copied to clipboard
fun onUsernameUpdated(username: String)
Link copied to clipboard
fun savePractitionerDetails(bundle: Bundle, userInfo: UserInfo?, postProcess: () -> Unit)
Link copied to clipboard
fun updateNavigateHome(navigateHome: Boolean = true)
Link copied to clipboard
fun writePractitionerDetailsToShredPref(careTeam: List<String>, organization: List<String>, location: List<String>, fhirPractitionerDetails: PractitionerDetails, careTeams: List<String>, organizations: List<String>, locations: List<String>, locationHierarchies: List<LocationHierarchy>)