diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt b/src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt index f1cba7f0..c1fd0936 100644 --- a/src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt +++ b/src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt @@ -26,6 +26,11 @@ package pl.treksoft.kvision.state */ interface ObservableState<S> { /** + * Get current state. + */ + fun getState(): S + + /** * Subscribe for the state change notifications. */ fun subscribe(observer: (S) -> Unit): () -> Unit |