public class ChangeNotification extends Object
If you have subscribed to KvStore, you will receive data change notifications and obtain the changed data
from the parameters in callback methods upon data insertion, update, or deletion.
SystemCapability.Data#DATA_DISTRIBUTEDDATAMGR| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<Entry> |
getDeleteEntries() |
Obtains data deletion records.
|
String |
getDeviceId() |
Obtains the ID of the device whose data has changed.
|
List<Entry> |
getInsertEntries() |
Obtains data insertion records.
|
List<Entry> |
getUpdateEntries() |
Obtains data update records.
|
public List<Entry> getInsertEntries()
public List<Entry> getUpdateEntries()
public List<Entry> getDeleteEntries()
public String getDeviceId()