Package dev.icerock.moko.mvvm.livedata

Types

LiveData
Link copied to clipboard
open class LiveData<T>
open class LiveData<T>(initialValue: T)
MediatorLiveData
Link copied to clipboard
common
open class MediatorLiveData<T>(initialValue: T) : MutableLiveData<T>
MutableLiveData
Link copied to clipboard
common
open class MutableLiveData<T>(initialValue: T) : LiveData<T>

Functions

all
Link copied to clipboard
common
fun <LD : LiveData<Boolean>> List<LD>.all(value: Boolean): LiveData<Boolean>
any
Link copied to clipboard
common
fun <LD : LiveData<Boolean>> List<LD>.any(value: Boolean): LiveData<Boolean>
asFlow
Link copied to clipboard
common
fun <T> LiveData<T>.asFlow(): Flow<T>
asLiveData
Link copied to clipboard
common
fun <T> StateFlow<T>.asLiveData(coroutineScope: CoroutineScope): LiveData<T>
fun <T> Flow<T>.asLiveData(coroutineScope: CoroutineScope, initialValue: T): LiveData<T>
bindToButtonImage
Link copied to clipboard
ios
fun LiveData<Boolean>.bindToButtonImage(button: <ERROR CLASS>, trueImage: <ERROR CLASS>, falseImage: <ERROR CLASS>)
bindToButtonTitle
Link copied to clipboard
ios
fun LiveData<<ERROR CLASS>>.bindToButtonTitle(button: <ERROR CLASS>)
fun LiveData<String>.bindToButtonTitle(button: <ERROR CLASS>)
bindToCheckBoxChecked
Link copied to clipboard
fun LiveData<Boolean>.bindToCheckBoxChecked(lifecycleOwner: LifecycleOwner, checkBox: CheckBox)
bindToControlEnabled
Link copied to clipboard
ios
fun LiveData<Boolean>.bindToControlEnabled(control: <ERROR CLASS>)
bindToLabelText
Link copied to clipboard
ios
fun LiveData<<ERROR CLASS>>.bindToLabelText(label: <ERROR CLASS>)
fun LiveData<String>.bindToLabelText(label: <ERROR CLASS>)
bindToResponderFocus
Link copied to clipboard
ios
fun LiveData<Boolean>.bindToResponderFocus(responder: <ERROR CLASS>)
bindToSwitchOn
Link copied to clipboard
ios
fun LiveData<Boolean>.bindToSwitchOn(switch: <ERROR CLASS>)
bindToTextFieldText
Link copied to clipboard
ios
fun LiveData<<ERROR CLASS>>.bindToTextFieldText(textField: <ERROR CLASS>)
fun LiveData<String>.bindToTextFieldText(textField: <ERROR CLASS>)
bindToTextViewText
Link copied to clipboard
fun LiveData<<ERROR CLASS>>.bindToTextViewText(textView: <ERROR CLASS>)
fun LiveData<String>.bindToTextViewText(textView: <ERROR CLASS>)
@JvmName(name = "bindToTextViewTextStringDesc")
fun LiveData<StringDesc>.bindToTextViewText(lifecycleOwner: LifecycleOwner, textView: TextView)
@JvmName(name = "bindToTextViewTextString")
fun LiveData<String>.bindToTextViewText(lifecycleOwner: LifecycleOwner, textView: TextView)
bindToViewBackgroundColor
Link copied to clipboard
ios
fun LiveData<Boolean>.bindToViewBackgroundColor(view: <ERROR CLASS>, trueColor: <ERROR CLASS>, falseColor: <ERROR CLASS>)
bindToViewEnabled
Link copied to clipboard
fun LiveData<Boolean>.bindToViewEnabled(lifecycleOwner: LifecycleOwner, view: View)
bindToViewHidden
Link copied to clipboard
ios
fun LiveData<Boolean>.bindToViewHidden(view: <ERROR CLASS>)
bindToViewVisibleOrGone
Link copied to clipboard
fun LiveData<Boolean>.bindToViewVisibleOrGone(lifecycleOwner: LifecycleOwner, view: View)
bindToViewVisibleOrInvisible
Link copied to clipboard
fun LiveData<Boolean>.bindToViewVisibleOrInvisible(lifecycleOwner: LifecycleOwner, view: View)
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>)
compose
Link copied to clipboard
common
fun <OT, I1T, I2T> MediatorLiveData<OT>.compose(firstInput: LiveData<I1T>, secondInput: LiveData<I2T>, function: (I1T, I2T) -> OT): MediatorLiveData<OT>
composition
Link copied to clipboard
common
fun <OT, IT, LD : LiveData<out IT>> MediatorLiveData<OT>.composition(liveDataList: List<LD>, function: (List<IT>) -> OT): MediatorLiveData<OT>
debounce
Link copied to clipboard
common
fun <T> LiveData<T>.debounce(coroutineScope: CoroutineScope, timeInMillis: Long): LiveData<T>
distinct
Link copied to clipboard
common
fun <T> LiveData<T>.distinct(): LiveData<T>
flatMap
Link copied to clipboard
common
fun <T, OT> LiveData<T>.flatMap(function: (T) -> LiveData<OT>): LiveData<OT>
flatMapBuffered
Link copied to clipboard
common
fun <T, OT> LiveData<T>.flatMapBuffered(function: (T, T) -> LiveData<OT>): LiveData<OT>
map
Link copied to clipboard
common
fun <T, OT> LiveData<T>.map(function: (T) -> OT): LiveData<OT>
mapBuffered
Link copied to clipboard
common
fun <T, OT> LiveData<T>.mapBuffered(function: (T, T) -> OT): LiveData<OT>
mapOrNull
Link copied to clipboard
common
fun <IT, OT> LiveData<IT?>.mapOrNull(function: (IT) -> OT): LiveData<OT?>
mapToString
Link copied to clipboard
@JvmName(name = "mapToStringStringDescOptional")
fun LiveData<StringDesc?>.mapToString(context: Context): LiveData<String?>
@JvmName(name = "mapToStringStringDesc")
fun LiveData<StringDesc>.mapToString(context: Context): LiveData<String>
mapTrueOrNull
Link copied to clipboard
common
fun <OT> LiveData<Boolean?>.mapTrueOrNull(function: () -> OT): LiveData<OT?>
mediator
Link copied to clipboard
common
fun <OT, IT, LD : LiveData<out IT>> List<LD>.mediator(function: (List<IT>) -> OT): LiveData<OT>
mergeWith
Link copied to clipboard
common
fun <OT, I1T, I2T> LiveData<I1T>.mergeWith(secondLiveData: LiveData<I2T>, function: (I1T, I2T) -> OT): MediatorLiveData<OT>
not
Link copied to clipboard
common
fun LiveData<Boolean>.not(): LiveData<Boolean>
orEmpty
Link copied to clipboard
common
fun LiveData<String?>.orEmpty(): LiveData<String>
@JvmName(name = "ListLiveDataOrEmpty")
fun <T> LiveData<List<T>?>.orEmpty(): LiveData<List<T>>
readOnly
Link copied to clipboard
common
fun <T> MutableLiveData<T>.readOnly(): LiveData<T>
required
Link copied to clipboard
common
fun <T> LiveData<T?>.required(initialValue: T): LiveData<T>
revert
Link copied to clipboard
common
fun LiveData<Boolean>.revert(): LiveData<Boolean>
setValue
Link copied to clipboard
common
fun <T> MutableLiveData<T>.setValue(value: T, async: Boolean)
throwableMessage
Link copied to clipboard
common
fun <T : Throwable> LiveData<T>.throwableMessage(mapper: (Throwable) -> String = { it.message.orEmpty() }): LiveData<String>