android.databinding.ObservableMap<K, V> |
Known Indirect Subclasses
ObservableArrayMap<K, V>
|
A Map
that notifies when items change. This kind of Map may be data bound
and have the UI update as the map changes.
Implementers must call onMapChanged(ObservableMap, Object)
whenever
an item is added, changed, or removed.
ObservableArrayMap is a convenient implementation of ObservableMap. MapChangeRegistry may help other implementations manage the callbacks.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ObservableMap.OnMapChangedCallback<T extends ObservableMap<K, V>, K, V> | A callback receiving notifications when an ObservableMap changes. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a callback to listen for changes to the ObservableMap.
| |||||||||||
Removes a previously added callback.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.util.Map
|
Adds a callback to listen for changes to the ObservableMap.
callback | The callback to start listening for events. |
---|
Removes a previously added callback.
callback | The callback that no longer needs to be notified of map changes. |
---|