MutableLiveData

open class MutableLiveData<T>(initialValue: T) : LiveData<T>

Functions

addObserver
Link copied to clipboard
common
fun addObserver(observer: (T) -> Unit)
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
open fun hashCode(): Int
postValue
Link copied to clipboard
common
fun postValue(value: T)
removeObserver
Link copied to clipboard
common
fun removeObserver(observer: (T) -> Unit)
toString
Link copied to clipboard
open fun toString(): String
open fun toString(): String

Properties

value
Link copied to clipboard
open override var value: T

Inheritors

MediatorLiveData
Link copied to clipboard

Extensions

bindTwoWayToCheckBoxChecked
Link copied to clipboard
fun MutableLiveData<Boolean>.bindTwoWayToCheckBoxChecked(lifecycleOwner: LifecycleOwner, checkBox: CheckBox)
bindTwoWayToControlFocus
Link copied to clipboard
ios
fun MutableLiveData<Boolean>.bindTwoWayToControlFocus(control: <ERROR CLASS>)
bindTwoWayToEditTextText
Link copied to clipboard
fun MutableLiveData<String>.bindTwoWayToEditTextText(lifecycleOwner: LifecycleOwner, editText: EditText)
bindTwoWayToSwitchOn
Link copied to clipboard
ios
fun MutableLiveData<Boolean>.bindTwoWayToSwitchOn(switch: <ERROR CLASS>)
bindTwoWayToTextFieldText
Link copied to clipboard
ios
fun MutableLiveData<String>.bindTwoWayToTextFieldText(textField: <ERROR CLASS>)
bindTwoWayToTextViewFocus
Link copied to clipboard
ios
fun MutableLiveData<Boolean>.bindTwoWayToTextViewFocus(textView: <ERROR CLASS>)
bindTwoWayToTextViewText
Link copied to clipboard
ios
fun MutableLiveData<String>.bindTwoWayToTextViewText(textView: <ERROR CLASS>)
readOnly
Link copied to clipboard
common
fun <T> MutableLiveData<T>.readOnly(): LiveData<T>
setValue
Link copied to clipboard
common
fun <T> MutableLiveData<T>.setValue(value: T, async: Boolean)