app / com.ocean.ishareeconomy_android.viewmodels / LendingDetailViewModel

LendingDetailViewModel

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

Types

Factory

Factory for constructing LendingDetailViewModel with parameters

class Factory : Factory

Constructors

<init>

Creates a LendingDetailViewModel

LendingDetailViewModel(application: Application, id: String)

Properties

lending

val lending: LiveData<List<LendingObject>>

selectedLendObject

val selectedLendObject: MutableLiveData<LendingObject>

using

val using: LiveData<List<LendingObject>>