class LendingDetailViewModel : AndroidViewModel
Part of viewmodels.
LendingDetailViewModel designed to store and manage UI-related data in a lifecycle conscious way. This allows data to survive configuration changes such as screen rotations. In addition, background work such as fetching network results can continue through configuration changes and deliver results after the new Fragment or Activity is available. It's also responsible for the removal of objects
Factory |
Factory for constructing LendingDetailViewModel with parameters class Factory : Factory |
<init> |
Creates a LendingDetailViewModel LendingDetailViewModel(: Application, : String) |
lending |
val lending: LiveData<List<LendingObject>> |
selectedLendObject |
val selectedLendObject: MutableLiveData<LendingObject> |
using |
val using: LiveData<List<LendingObject>> |