public interface KvStoreObserver
KvStore database.
This instance is registered as an input parameter for the subscribe method,
which is used to subscribe to KvStore. This method is called upon data changes in KvStore.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
default void |
onChange(ChangeNotification changeNotification) |
Receives notifications of data changes in the
KvStore database. |
default void onChange(ChangeNotification changeNotification)
KvStore database.
You must override this method on the client to receive data change notifications from SingleKvStore
and DeviceKvStore databases.
changeNotification - Indicates all data changes, including data insertion, deletion, and update.
For details, see ChangeNotification.