ObservableProperty
A synchronous property delegate accessor.
NOTE: DeferredObservableProperty is the asynchronous variation lacking initial value.
Types
EqualityPolicy
Link copied to clipboard
This interface is used to provide custom equality for various ObservableProperty operators like ObservableProperty.map and ObservableProperty.filter.
Listener
Link copied to clipboard
Functions
addListener
Link copied to clipboard
abstract fun addListener(listener: ObservableProperty.Listener<T>): CancellationToken
Content copied to clipboard
Add a ValueChangeListener for value change on this property.
removeListener
Link copied to clipboard
Properties
Inheritors
MutableObservableProperty
Link copied to clipboard
Extensions
deferred
Link copied to clipboard
filter
Link copied to clipboard
fun <T> ObservableProperty<T>.filter(equalityPolicy: ObservableProperty.EqualityPolicy<T> = defaultEqualityPolicy(), predicate: (T) -> Boolean): DeferredObservableProperty<T>
Content copied to clipboard
A filter function applied to each element collected from the ObservableProperty.
fun <T> ObservableProperty<T>.filter(initialValue: T, equalityPolicy: ObservableProperty.EqualityPolicy<T> = defaultEqualityPolicy(), predicate: (T) -> Boolean): ObservableProperty<T>
Content copied to clipboard
A filter function applied to each element collected from the ObservableProperty.
filterNotNull
Link copied to clipboard
fun <T : Any> ObservableProperty<T?>.filterNotNull(equalityPolicy: ObservableProperty.EqualityPolicy<T> = defaultEqualityPolicy()): DeferredObservableProperty<T>
Content copied to clipboard
Keep each non-null element collected from the ObservableProperty.
flatMapLatest
Link copied to clipboard
fun <T, U> ObservableProperty<T>.flatMapLatest(equalityPolicy: ObservableProperty.EqualityPolicy<ObservableProperty<U>> = identityEqualityPolicy(), transform: (T) -> ObservableProperty<U>): ObservableProperty<U>
Content copied to clipboard
A mapping function applied to each element collected from the ObservableProperty to return another ObservableProperty.
map
Link copied to clipboard
fun <T, U> ObservableProperty<T>.map(equalityPolicy: ObservableProperty.EqualityPolicy<U> = defaultEqualityPolicy(), transform: (T) -> U): ObservableProperty<U>
Content copied to clipboard
A mapping function applied to each element collected from the ObservableProperty.