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
Properties
Functions
Link copied to clipboard
Link copied to clipboard
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
suspend fun retrieveResources(geoWidgetConfig: GeoWidgetConfiguration): List<RepositoryResourceData>
Link copied to clipboard