public interface IIndexChangeListener
You can register the callback to listen for index changes. Once an index change occurs, the callback will be invoked to notify your application of the change.
SystemCapability.Data#DATA_SEARCH| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onDataChanged(String bundleName,
ChangedIndexContent changedIndexContent) |
Called when data in the index library changes.
|
void onDataChanged(String bundleName, ChangedIndexContent changedIndexContent)
bundleName - Indicates the bundle name of the service whose index library has a change.changedIndexContent - Indicates the changed index data.