ProductCompareViewModel

class ProductCompareViewModel @Inject constructor(    taxonomiesRepository: TaxonomiesRepository,     localeManager: LocaleManager,     matomoAnalytics: MatomoAnalytics,     dispatchers: CoroutineDispatchers,     productRepository: ProductRepository) : ViewModel

Constructors

Link copied to clipboard
@Inject
fun ProductCompareViewModel(    taxonomiesRepository: TaxonomiesRepository,     localeManager: LocaleManager,     matomoAnalytics: MatomoAnalytics,     dispatchers: CoroutineDispatchers,     productRepository: ProductRepository)

Types

Link copied to clipboard
data class CompareProduct(val product: Product, val additiveNames: List<AdditiveName>)
Link copied to clipboard
sealed class SideEffect

Functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
fun addProductToCompare(product: Product)
Link copied to clipboard
fun barcodeDetected(barcode: Barcode)
Link copied to clipboard
fun getCurrentLanguage(): String

Properties

Link copied to clipboard
val loadingVisibleFlow: StateFlow<Boolean>
Link copied to clipboard
val productsFlow: StateFlow<List<ProductCompareViewModel.CompareProduct>>
Link copied to clipboard
val sideEffectFlow: SharedFlow<ProductCompareViewModel.SideEffect>