LuciadCPillar C# 2023.1.04
|
This class makes it possible to hold and observe a value that can change over time. More...
Public Member Functions | |
Observable (T initialValue) | |
Constructs the observable with an initial value. More... | |
void | AddCallback (IInvalidationCallback callback) |
Adds a callback that is notified when setValue is called. More... | |
void | RemoveCallback (IInvalidationCallback callback) |
Remove the given callback. More... | |
Static Public Member Functions | |
static Observable< T > | Create (T initialValue) |
Creates a new Observable with the given initial value. More... | |
Properties | |
T | Value [get, set] |
This class makes it possible to hold and observe a value that can change over time.
T
the type to hold
2022.0
|
inline |
Constructs the observable with an initial value.
initialValue
the initial value.
|
inline |
Adds a callback that is notified when setValue is called.
callback
a callback
luciad::InvalidArgumentException
when the call back is already added.
|
inlinestatic |
Creates a new Observable with the given initial value.
initialValue
the initial value.
|
inline |
Remove the given callback.
callback
a callback
luciad::InvalidArgumentException
when the call back is not known.
|
getset |