A DataObserver with a lifecycle can be added, and the observer will be notified of data changes when it is in the required lifecycle state. The observer will be automatically removed when it is destroyed.
| 类 | 说明 |
|---|---|
| ActiveData<T> |
Saves data and observes data changes.
|
| DataObserver<T> |
A base class of observers that receive notifications upon data changes of
ActiveData. |