ScanHistoryViewModel

class ScanHistoryViewModel @Inject constructor(    context: Context,     daoSession: <Error class: unknown class>,     productRepository: ProductRepository,     localeManager: LocaleManager,     dispatchers: CoroutineDispatchers) : ViewModel

Constructors

Link copied to clipboard
@Inject
fun ScanHistoryViewModel(    context: Context,     daoSession: <Error class: unknown class>,     productRepository: ProductRepository,     localeManager: LocaleManager,     dispatchers: CoroutineDispatchers)

Types

Link copied to clipboard
sealed class FetchProductsState

Functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
fun clearHistory()
Link copied to clipboard
fun refreshItems()
Link copied to clipboard
fun removeProductFromHistory(product: HistoryProduct)
Link copied to clipboard
fun updateSortType(type: SortType)

Properties

Link copied to clipboard
val productsState: StateFlow<ScanHistoryViewModel.FetchProductsState>
Link copied to clipboard
val sortType: StateFlow<SortType>