UserSettingViewModel

class UserSettingViewModel @Inject constructor(val fhirEngine: FhirEngine, val syncBroadcaster: SyncBroadcaster, val accountAuthenticator: AccountAuthenticator, val secureSharedPreference: SecureSharedPreference, val sharedPreferencesHelper: SharedPreferencesHelper, val configurationRegistry: ConfigurationRegistry, val workManager: WorkManager, val dispatcherProvider: DispatcherProvider, preferenceDataStore: PreferenceDataStore) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(fhirEngine: FhirEngine, syncBroadcaster: SyncBroadcaster, accountAuthenticator: AccountAuthenticator, secureSharedPreference: SecureSharedPreference, sharedPreferencesHelper: SharedPreferencesHelper, configurationRegistry: ConfigurationRegistry, workManager: WorkManager, dispatcherProvider: DispatcherProvider, preferenceDataStore: PreferenceDataStore)

Properties

Link copied to clipboard
val appVersionCode: <Error class: unknown class>
Link copied to clipboard
val appVersionName: <Error class: unknown class>
Link copied to clipboard
val buildDate: <Error class: unknown class>
Link copied to clipboard
val fhirEngine: FhirEngine
Link copied to clipboard
Link copied to clipboard
val showProgressIndicatorFlow: MutableStateFlow<Boolean>
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
Link copied to clipboard
suspend fun emitSnackBarState(snackBarMessageConfig: SnackBarMessageConfig)
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
fun resetAppData(context: Context)

This function clears all the data for the app from the device, cancels all background tasks, deletes the logged in user account from device accounts and finally clear all data stored in shared preferences.

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