Package-level declarations

Classes supporting the observer pattern, including the implementation of the observable list.

Functions

Link copied to clipboard
fun <S, W> W.bind(stateFlow: <Error class: unknown class><S>, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: W.(S) -> Unit): W

An extension function which binds the widget to the given state flow.

fun <S, T, W> W.bind(stateFlow: <Error class: unknown class><S>, sub: (S) -> T, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: W.(T) -> Unit): W

An extension function which binds the widget to the given state flow using the sub flow extractor.

Link copied to clipboard
fun <S, W> W.bindEach(stateFlow: <Error class: unknown class><List<S>>, equalizer: (S, S) -> Boolean? = null, factory: <Error class: unknown class>.(S) -> Unit): W

An extension function which binds the container to the given state flow of a list of items.

fun <S, T, W> W.bindEach(stateFlow: <Error class: unknown class><S>, sub: (S) -> List<T>, equalizer: (T, T) -> Boolean? = null, factory: <Error class: unknown class>.(T) -> Unit): W

An extension function which binds the container to the given state flow using the sub flow extractor to get a list of items.

Link copied to clipboard
fun <S, W> W.bindSync(stateFlow: <Error class: unknown class><S>, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: W.(S) -> Unit): W

An extension function which binds the widget to the given state flow synchronously. It's less efficient than bind, but fully compatible with KVision 4 state bindings.

fun <S, T, W> W.bindSync(stateFlow: <Error class: unknown class><S>, sub: (S) -> T, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: W.(T) -> Unit): W

An extension function which binds the widget to the given state flow synchronously using the sub flow extractor. It's less efficient than bind, but fully compatible with KVision 4 state bindings.

Link copied to clipboard
fun <T> T.bindTo(mutableStateFlow: <Error class: unknown class><<Error class: unknown class>>): T
fun <T> T.bindTo(mutableStateFlow: <Error class: unknown class><Double>): T
fun <T> T.bindTo(mutableStateFlow: <Error class: unknown class><Double?>): T
fun <T> T.bindTo(mutableStateFlow: <Error class: unknown class><Int>): T
fun <T> T.bindTo(mutableStateFlow: <Error class: unknown class><Int?>): T
fun <S, T> T.bindTo(mutableStateFlow: <Error class: unknown class><S>): T
fun <T> T.bindTo(mutableStateFlow: <Error class: unknown class><String>): T

Bidirectional data binding to the MutableStateFlow instance.

Link copied to clipboard
fun <S, W> W.insert(stateFlow: <Error class: unknown class><S>, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(S) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given state flow.

fun <S, T, W> W.insert(stateFlow: <Error class: unknown class><S>, sub: (S) -> T, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(T) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given state flow using the sub flow extractor.

Link copied to clipboard
fun <S, W> W.insertNotNull(stateFlow: <Error class: unknown class><S?>, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(S) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given state flow when the state value is not null.

fun <S, T, W> W.insertNotNull(stateFlow: <Error class: unknown class><S>, sub: (S) -> T?, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(T) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given state flow using the sub flow extractor when the state value is not null.

Link copied to clipboard
fun <S, W> W.insertWhen(stateFlow: <Error class: unknown class><S>, condition: (S) -> Boolean, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(S) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given state flow when the given condition is true.

fun <S, T, W> W.insertWhen(stateFlow: <Error class: unknown class><S>, sub: (S) -> T, condition: (T) -> Boolean, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(T) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given state flow using the sub flow extractor when the given condition is true.

Link copied to clipboard
fun <T, S> <Error class: unknown class><S>.subFlow(contextScope: <Error class: unknown class> = KVScope, sub: (S) -> T): <Error class: unknown class><T>

Extension function returning a sub state flow.

Properties

Link copied to clipboard
val <S> <Error class: unknown class><S>.mutableState: <Error class: unknown class><S>

Extension property returning a MutableState for a MutableStateFlow.

Link copied to clipboard
val <S> <Error class: unknown class><S>.mutableStateFlow: <Error class: unknown class><S>

Extension property returning a MutableStateFlow for a MutableState.

Link copied to clipboard
val <S> <Error class: unknown class><S>.observableState: <Error class: unknown class><S?>

Extension property returning an ObservableState for a Flow.

val <S> <Error class: unknown class><S>.observableState: <Error class: unknown class><S>

Extension property returning an ObservableState for a StateFlow.

Link copied to clipboard
val <S> <Error class: unknown class><S>.stateFlow: <Error class: unknown class><S>

Extension property returning a StateFlow for an ObservableState.