GeoWidgetLauncherViewModel

class GeoWidgetLauncherViewModel @Inject constructor(val defaultRepository: DefaultRepository, val dispatcherProvider: DispatcherProvider, val sharedPreferencesHelper: SharedPreferencesHelper, val resourceDataRulesExecutor: ResourceDataRulesExecutor, val configurationRegistry: ConfigurationRegistry) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(defaultRepository: DefaultRepository, dispatcherProvider: DispatcherProvider, sharedPreferencesHelper: SharedPreferencesHelper, resourceDataRulesExecutor: ResourceDataRulesExecutor, configurationRegistry: ConfigurationRegistry)

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
suspend fun emitSnackBarState(snackBarMessageConfig: SnackBarMessageConfig)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun launchQuestionnaire(questionnaireConfig: QuestionnaireConfig, feature: GeoJsonFeature, context: Context)
Link copied to clipboard
suspend fun onQuestionnaireSubmission(extractedResourceIds: List<IdType>, emitFeature: (GeoJsonFeature) -> Unit)
Link copied to clipboard
suspend fun retrieveLocations(geoWidgetConfig: GeoWidgetConfiguration, searchText: String? = null): List<GeoJsonFeature>
Link copied to clipboard
Link copied to clipboard
fun showNoLocationDialog(geoWidgetConfiguration: GeoWidgetConfiguration)