ArmadilloViewModel

class ArmadilloViewModel : ViewModel

Stores FragmentStatus and some settings.

When settings are changed in the Settings tab, the changed values are saved in this ViewModel. Observers in the application watching the LiveData stored here help to make the changes effective immediately in the whole application.

Constructors

ArmadilloViewModel
Link copied to clipboard
fun ArmadilloViewModel()

Properties

_colorMode
Link copied to clipboard
private val _colorMode: MutableLiveData<Int>
Describes which color mode is to be used.
_dyslexicFont
Link copied to clipboard
private val _dyslexicFont: MutableLiveData<Boolean>
Stores whether dyslexic mode is enabled or not.
_status
Link copied to clipboard
private val _status: MutableLiveData<FragmentStatus>
Stores current FragmentStatus.
colorMode
Link copied to clipboard
val colorMode: LiveData<Int>
dyslexicFont
Link copied to clipboard
val dyslexicFont: LiveData<Boolean>
Refers to _dyslexicFont.
status
Link copied to clipboard
val status: LiveData<FragmentStatus>
Refers to _status.

Inherited properties

mBagOfTags
Link copied to clipboard
private val mBagOfTags: MutableMap<String, Any>?
mCleared
Link copied to clipboard
private val mCleared: Boolean

Functions

setColorMode
Link copied to clipboard
fun setColorMode(mode: Int)
Sets the value of _colorMode.
setDyslexicFont
Link copied to clipboard
fun setDyslexicFont(dyslexicActive: Boolean)
Set _dyslexicFont value.
setFragmentStatus
Link copied to clipboard
fun setFragmentStatus(fragStatus: FragmentStatus)
Set _status which is of type FragmentStatus.

Inherited functions

clear
Link copied to clipboard
fun clear()
getTag
Link copied to clipboard
open fun <T : Any> getTag(p0: String): T
onCleared
Link copied to clipboard
open fun onCleared()
setTagIfAbsent
Link copied to clipboard
open fun <T : Any> setTagIfAbsent(p0: String, p1: T): T