toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.datastructure
/
Observable
Observable
class
Observable
<
T
>
(
val
initial
:
T
,
val
before
:
(
T
)
->
Unit
=
{}
,
val
after
:
(
T
)
->
Unit
=
{}
)
Members
Constructors
Observable
Link copied to clipboard
constructor
(
initial
:
T
,
before
:
(
T
)
->
Unit
=
{}
,
after
:
(
T
)
->
Unit
=
{}
)
Properties
after
Link copied to clipboard
val
after
:
(
T
)
->
Unit
before
Link copied to clipboard
val
before
:
(
T
)
->
Unit
current
Value
Link copied to clipboard
var
currentValue
:
T
initial
Link copied to clipboard
val
initial
:
T
Functions
get
Value
Link copied to clipboard
operator
fun
getValue
(
obj
:
Any
,
prop
:
KProperty
<
*
>
)
:
T
set
Value
Link copied to clipboard
operator
fun
setValue
(
obj
:
Any
,
prop
:
KProperty
<
*
>
,
value
:
T
)