class HistoryViewModel : ViewModel
ViewModel for the history ui.
application
- The application to create a HistoryRepository.
Factory |
Factory for the HistoryViewModel. class Factory : Factory |
<init> |
ViewModel for the history ui. HistoryViewModel(application: Application) |
transactions |
LiveData containing a List of all Transactions from the StockAppDatabase. val transactions: LiveData<List<Transaction>> |