aboutsummaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.state/-observable-value
diff options
context:
space:
mode:
Diffstat (limited to 'api/pl.treksoft.kvision.state/-observable-value')
-rw-r--r--api/pl.treksoft.kvision.state/-observable-value/-init-.html18
-rw-r--r--api/pl.treksoft.kvision.state/-observable-value/get-state.html15
-rw-r--r--api/pl.treksoft.kvision.state/-observable-value/index.html68
-rw-r--r--api/pl.treksoft.kvision.state/-observable-value/subscribe.html15
-rw-r--r--api/pl.treksoft.kvision.state/-observable-value/value.html21
5 files changed, 137 insertions, 0 deletions
diff --git a/api/pl.treksoft.kvision.state/-observable-value/-init-.html b/api/pl.treksoft.kvision.state/-observable-value/-init-.html
new file mode 100644
index 00000000..bbcec83d
--- /dev/null
+++ b/api/pl.treksoft.kvision.state/-observable-value/-init-.html
@@ -0,0 +1,18 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>ObservableValue.<init> - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.state</a>&nbsp;/&nbsp;<a href="index.html">ObservableValue</a>&nbsp;/&nbsp;<a href="./-init-.html">&lt;init&gt;</a><br/>
+<br/>
+<h1>&lt;init&gt;</h1>
+(js) <a name="pl.treksoft.kvision.state.ObservableValue$&lt;init&gt;(pl.treksoft.kvision.state.ObservableValue.T)"></a>
+<code><span class="identifier">ObservableValue</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.state.ObservableValue$<init>(pl.treksoft.kvision.state.ObservableValue.T)/value">value</span><span class="symbol">:</span>&nbsp;<span class="identifier">T</span><span class="symbol">)</span></code>
+<p>The observable value class.</p>
+<h3>Parameters</h3>
+<p><a name="value"></a>
+<code>value</code> - the initial value</p>
+</BODY>
+</HTML>
diff --git a/api/pl.treksoft.kvision.state/-observable-value/get-state.html b/api/pl.treksoft.kvision.state/-observable-value/get-state.html
new file mode 100644
index 00000000..8827a1a4
--- /dev/null
+++ b/api/pl.treksoft.kvision.state/-observable-value/get-state.html
@@ -0,0 +1,15 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>ObservableValue.getState - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.state</a>&nbsp;/&nbsp;<a href="index.html">ObservableValue</a>&nbsp;/&nbsp;<a href="./get-state.html">getState</a><br/>
+<br/>
+<h1>getState</h1>
+(js) <a name="pl.treksoft.kvision.state.ObservableValue$getState()"></a>
+<code><span class="keyword">fun </span><span class="identifier">getState</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">T</span></code>
+<p>Get current state.</p>
+</BODY>
+</HTML>
diff --git a/api/pl.treksoft.kvision.state/-observable-value/index.html b/api/pl.treksoft.kvision.state/-observable-value/index.html
new file mode 100644
index 00000000..c99f5f8c
--- /dev/null
+++ b/api/pl.treksoft.kvision.state/-observable-value/index.html
@@ -0,0 +1,68 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>ObservableValue - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.state</a>&nbsp;/&nbsp;<a href="./index.html">ObservableValue</a><br/>
+<br/>
+<h1>ObservableValue</h1>
+(js) <code><span class="keyword">class </span><span class="identifier">ObservableValue</span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="../-observable-state/index.html"><span class="identifier">ObservableState</span></a><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span></code>
+<p>The observable value class.</p>
+<h3>Parameters</h3>
+<p><a name="value"></a>
+<code>value</code> - the initial value</p>
+<h3>Constructors</h3>
+<table>
+<tbody>
+<tr>
+<td>
+(js)
+<h4><a href="-init-.html">&lt;init&gt;</a></h4>
+</td>
+<td>
+<p>The observable value class.</p>
+<code><span class="identifier">ObservableValue</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.state.ObservableValue$<init>(pl.treksoft.kvision.state.ObservableValue.T)/value">value</span><span class="symbol">:</span>&nbsp;<span class="identifier">T</span><span class="symbol">)</span></code></td>
+</tr>
+</tbody>
+</table>
+<h3>Properties</h3>
+<table>
+<tbody>
+<tr>
+<td>
+(js)
+<h4><a href="value.html">value</a></h4>
+</td>
+<td>
+<p>The observed variable.</p>
+<code><span class="keyword">var </span><span class="identifier">value</span><span class="symbol">: </span><span class="identifier">T</span></code></td>
+</tr>
+</tbody>
+</table>
+<h3>Functions</h3>
+<table>
+<tbody>
+<tr>
+<td>
+(js)
+<h4><a href="get-state.html">getState</a></h4>
+</td>
+<td>
+<p>Get current state.</p>
+<code><span class="keyword">fun </span><span class="identifier">getState</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">T</span></code></td>
+</tr>
+<tr>
+<td>
+(js)
+<h4><a href="subscribe.html">subscribe</a></h4>
+</td>
+<td>
+<p>Subscribe for the state change notifications.</p>
+<code><span class="keyword">fun </span><span class="identifier">subscribe</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.state.ObservableValue$subscribe(kotlin.Function1((pl.treksoft.kvision.state.ObservableValue.T, kotlin.Unit)))/observer">observer</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">T</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
+</tr>
+</tbody>
+</table>
+</BODY>
+</HTML>
diff --git a/api/pl.treksoft.kvision.state/-observable-value/subscribe.html b/api/pl.treksoft.kvision.state/-observable-value/subscribe.html
new file mode 100644
index 00000000..29e01246
--- /dev/null
+++ b/api/pl.treksoft.kvision.state/-observable-value/subscribe.html
@@ -0,0 +1,15 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>ObservableValue.subscribe - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.state</a>&nbsp;/&nbsp;<a href="index.html">ObservableValue</a>&nbsp;/&nbsp;<a href="./subscribe.html">subscribe</a><br/>
+<br/>
+<h1>subscribe</h1>
+(js) <a name="pl.treksoft.kvision.state.ObservableValue$subscribe(kotlin.Function1((pl.treksoft.kvision.state.ObservableValue.T, kotlin.Unit)))"></a>
+<code><span class="keyword">fun </span><span class="identifier">subscribe</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.state.ObservableValue$subscribe(kotlin.Function1((pl.treksoft.kvision.state.ObservableValue.T, kotlin.Unit)))/observer">observer</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">T</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
+<p>Subscribe for the state change notifications.</p>
+</BODY>
+</HTML>
diff --git a/api/pl.treksoft.kvision.state/-observable-value/value.html b/api/pl.treksoft.kvision.state/-observable-value/value.html
new file mode 100644
index 00000000..f44f7fd5
--- /dev/null
+++ b/api/pl.treksoft.kvision.state/-observable-value/value.html
@@ -0,0 +1,21 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>ObservableValue.value - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.state</a>&nbsp;/&nbsp;<a href="index.html">ObservableValue</a>&nbsp;/&nbsp;<a href="./value.html">value</a><br/>
+<br/>
+<h1>value</h1>
+(js) <a name="pl.treksoft.kvision.state.ObservableValue$value"></a>
+<code><span class="keyword">var </span><span class="identifier">value</span><span class="symbol">: </span><span class="identifier">T</span></code>
+<p>The observed variable.</p>
+<p><strong>Getter</strong><br/>
+<p>The observed variable.</p>
+</p>
+<p><strong>Setter</strong><br/>
+<p>The observed variable.</p>
+</p>
+</BODY>
+</HTML>