From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- .../-observable-state/index.html | 46 ++++++++-------------- 1 file changed, 16 insertions(+), 30 deletions(-) (limited to 'api/pl.treksoft.kvision.state/-observable-state/index.html') diff --git a/api/pl.treksoft.kvision.state/-observable-state/index.html b/api/pl.treksoft.kvision.state/-observable-state/index.html index af76eaa3..e4d62215 100644 --- a/api/pl.treksoft.kvision.state/-observable-state/index.html +++ b/api/pl.treksoft.kvision.state/-observable-state/index.html @@ -8,42 +8,28 @@ kvision / pl.treksoft.kvision.state / ObservableState

ObservableState

-interface ObservableState<S> +(js) interface ObservableState<S>

An interface of observable state.

Functions

+abstract fun getState(): S - - -
-

getState

+(js) +

getState

-abstract fun getState(): S

Get current state.

-
-

subscribe

+(js) +

subscribe

-abstract fun subscribe(observer: (S) -> Unit): () -> Unit

Subscribe for the state change notifications.

-
-

Extension Functions

- - - - - +abstract fun subscribe(observer: (S) -> Unit): () -> Unit
-

createInstance

-
-fun <T> Any?.createInstance(vararg args: dynamic): T -

Helper function for creating JavaScript objects from dynamic constructors.

-
@@ -52,30 +38,30 @@ -

ObservableList

+(js) +

ObservableList

-interface ObservableList<T> : MutableList<T>, ObservableState<List<T>>

Observable list interface.

- +interface ObservableList<T> : MutableList<T>, ObservableState<List<T>> -

ObservableListWrapper

+(js) +

ObservableListWrapper

-class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>>

Simple observable list implementation.

- +class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>> -

ReduxStore

+(js) +

ReduxStore

-class ReduxStore<S : Any, A : RAction> : ObservableState<S>

A class implementing redux pattern backed by the Redux Kotlin library.

- +class ReduxStore<S : Any, A : RAction> : ObservableState<S> -- cgit