Package dev.icerock.moko.mvvm.utils

Functions

bind
Link copied to clipboard
fun <T, V : Any> LiveData<T>.bind(view: V, setter: V.(T) -> Unit)
fun <T> LiveData<T>.bind(lifecycleOwner: LifecycleOwner, observer: (T?) -> Unit)
bindNotNull
Link copied to clipboard
fun <T> LiveData<T>.bindNotNull(lifecycleOwner: LifecycleOwner, observer: (T) -> Unit)
setEventHandler
Link copied to clipboard
ios
fun <T> T.setEventHandler(event: <ERROR CLASS>, lambda: T.() -> Unit)
fun <T : Any> <ERROR CLASS>.setEventHandler(notification: <ERROR CLASS>, ref: T, lambda: T.() -> Unit)