diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index 4f01434fddcaeef13f68ee1b2988e4e616e44368..b6bd07d4d1a2b5c204f36ccfdf5b57af14dcff6f 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -2373,9 +2373,12 @@ declare namespace distributedKVStore { getAllKVStoreId(appId: string): Promise; /** - * Register a death callback to get notification when service died. + * Register a death callback to get notification when the data manager service is terminated. * - * @param {Callback} deathCallback - the service died callback. + *

If the data manager service is terminated,you need to re-subscribe to data change notifications and synchronization + * completion notifications, and calling the sync method will return a failure. + * + * @param {Callback} deathCallback - callback to be invoked when the data manager service is terminated. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @throws {BusinessError} 401 - if parameter check failed. * @since 9 @@ -2383,9 +2386,12 @@ declare namespace distributedKVStore { on(event: 'distributedDataServiceDie', deathCallback: Callback): void; /** - * Unregister the death callback and can not receive service died notification any more. + * Unregister the death callback. Not notification will be received when the data manager service is terminated. * - * @param {Callback} deathCallback - the service died callback which has been registered. + *

The unregistered death callback must be a registered death callback of the database. If no death callback parameter + * is passed, all database death callbacks will be unregistered. + * + * @param {Callback} deathCallback - the data manager service is terminated callback which has been registered. * @throws {BusinessError} 401 - if parameter check failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9