app / de.uniks.codliners.stock_simulator.ui.settings / SettingsViewModel

SettingsViewModel

class SettingsViewModel : ViewModel

The ViewModel of SettingsFragment.

Parameters

application - The context used for creating the SymbolRepository.

Types

Factory

Factory for the SettingsViewModel.

class Factory : Factory

Constructors

<init>

The ViewModel of SettingsFragment.

SettingsViewModel(application: Application)

Properties

clickResetStatus

Button click indicator for reset button.

val clickResetStatus: LiveData<Boolean>

refreshing

Indicates that the symbol repository is currently being refreshed.

val refreshing: LiveData<Boolean>

symbolRepositoryStateAction

Gets triggered if the symbol repository is refreshed.

val symbolRepositoryStateAction: LiveData<State>

toggleFingerprintStatus

Button click indicator for fingerprint button.

val toggleFingerprintStatus: LiveData<Boolean>

Functions

onFingerprintToggled

Reset the fingerprint button click indicator.

fun onFingerprintToggled(): Unit

onGameReset

Reset the reset game click indicator.

fun onGameReset(): Unit

onSymbolActionCompleted

Reset the refresh symbols button click indicator.

fun onSymbolActionCompleted(): Unit

refreshSymbols

Set the refresh symbols button click indicator.

fun refreshSymbols(): Unit

resetGame

Set the reset game click indicator.

fun resetGame(): Unit

toggleFingerprint

Set the fingerprint button click indicator.

fun toggleFingerprint(): Unit