AllergensAlertViewModel

class AllergensAlertViewModel @Inject constructor(    taxonomiesRepository: TaxonomiesRepository,     matomoAnalytics: MatomoAnalytics,     localeManager: LocaleManager,     dispatchers: CoroutineDispatchers,     allergenPreferencesRepository: AllergenPreferencesRepository,     networkConnectivityRepository: NetworkConnectivityRepository) : ViewModel

Constructors

Link copied to clipboard
@Inject
fun AllergensAlertViewModel(    taxonomiesRepository: TaxonomiesRepository,     matomoAnalytics: MatomoAnalytics,     localeManager: LocaleManager,     dispatchers: CoroutineDispatchers,     allergenPreferencesRepository: AllergenPreferencesRepository,     networkConnectivityRepository: NetworkConnectivityRepository)

Types

Link copied to clipboard
sealed class SideEffect
Link copied to clipboard
data class ViewState(val loading: Boolean, val allergens: List<AllergenName>)

Functions

Link copied to clipboard
fun addAllergen(allergen: AllergenName)
Link copied to clipboard
fun addAllergenClicked()
Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
fun removeAllergen(allergen: AllergenName)

Properties

Link copied to clipboard
val sideEffectFlow: SharedFlow<AllergensAlertViewModel.SideEffect>
Link copied to clipboard
val viewStateFlow: StateFlow<AllergensAlertViewModel.ViewState>