ObservableMap
An observable map whose read-only snapshot is available through current. Values can be observed by key through get.
Type Parameters
K
The type of keys maintained by the map.
V
The type of mapped values.
Properties
Functions
Link copied to clipboard
Retrieves the observable representation of the value associated with the specified key in the observable map. The resulting observable emits updates whenever the value for the given key changes, is added, or is removed.
Link copied to clipboard
Combines the current observable with another observable, producing a new observable that emits values derived by applying the provided merge function to the current values of both observables.
Link copied to clipboard
abstract fun onChange(notifyOnRegistration: Boolean = true, callback: (Map<K, V>) -> Unit): Disposable
Registers callback to be invoked with every new value of this observable, and right away with the current one if notifyOnRegistration.