AppSettingViewModel

class AppSettingViewModel @Inject constructor(val fhirResourceDataSource: FhirResourceDataSource, val defaultRepository: DefaultRepository, val sharedPreferencesHelper: SharedPreferencesHelper, val configService: ConfigService, val configurationRegistry: ConfigurationRegistry, val dispatcherProvider: DispatcherProvider) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(fhirResourceDataSource: FhirResourceDataSource, defaultRepository: DefaultRepository, sharedPreferencesHelper: SharedPreferencesHelper, configService: ConfigService, configurationRegistry: ConfigurationRegistry, dispatcherProvider: DispatcherProvider)

Properties

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 fetchComposition(urlPath: String, context: Context): Composition?
Link copied to clipboard

Fetch the Composition resource whose identifier matches the provided appId. Save the composition resource and all the nested resources referenced in the Composition.SectionComponent.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@VisibleForTesting
fun isDebugVariant(): Boolean
Link copied to clipboard
@VisibleForTesting
fun isNonProxy(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@VisibleForTesting
fun setNonProxy(nonProxy: Boolean)