class BaseViewModel : ViewModel
BaseViewModel for the BaseFragment. Handles events that can unlock achievements.
Factory |
Factory for the BaseViewModel. class Factory : Factory |
<init> |
Adds sources to MediatorLiveData values. BaseViewModel(application: Application) |
achievements |
List of all Achievements from the repository. val achievements: LiveData<List<Achievement>> |
balanceChanged |
Handles balance related Achievements. Must be observed, but does not contain data. val balanceChanged: LiveData<Boolean> |
depotChanged |
Handles depot related Achievements. Must be observed, but does not contain data. val depotChanged: LiveData<Boolean> |
markAchievementAsDisplayed |
Marks an achievement in the AchievementsRepository as displayed. fun markAchievementAsDisplayed(achievement: Achievement): Unit |