From 6c9445b2375858e3ea639f8476a49a2bbbc6a615 Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Sun, 6 Mar 2022 14:43:40 +0800 Subject: [PATCH] update docs Signed-off-by: annie_wangli --- .../reference/apis/js-apis-distributed-data.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-distributed-data.md b/en/application-dev/reference/apis/js-apis-distributed-data.md index 3f15e89a22..ed190a2e4e 100644 --- a/en/application-dev/reference/apis/js-apis-distributed-data.md +++ b/en/application-dev/reference/apis/js-apis-distributed-data.md @@ -1,6 +1,7 @@ # Distributed Data Management >![](../../public_sys-resources/icon-note.gif) **NOTE** +> >The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -61,17 +62,17 @@ createKVManager(config: KVManagerConfig): Promise<KVManager> Creates a **KVManager** object to manage KV stores. This method uses a promise to return the result. - Parameters - + | Name| Type| Mandatory| Description| | ----- | ------ | ------ | ------ | | config |[KVManagerConfig](#kvmanager) | Yes| Configuration of the **KVManager** object, including the bundle name and user information of the caller.| - + - Return value | Type| Description| | -------- | -------- | | Promise<[KVManager](#kvmanager)> | Promise used to return the **KVManager** object created.| - + - Example ``` @@ -363,7 +364,7 @@ deleteKVStore(appId: string, storeId: string): Promise<void>; Deletes a KV store. This method uses a promise to return the result. - Parameters - + | Name| Type| Mandatory| Description| | ----- | ------ | ---- | ----------------------- | | appId | string | Yes| Bundle name of the app that invokes the KV store.| @@ -450,7 +451,7 @@ Obtains the IDs of all the KV stores that are created using **getKvStore** and h - Return value - + | Type| Description| | ------------- | -------------- | | Promise<string[]>| Promise used to return the KV store IDs obtained.| @@ -517,7 +518,7 @@ Unsubscribes from the **distributedDataServiceDie** events. This method uses a s | ----- | ------ | ---- | ----------------------- | | event | 'distributedDataServiceDie' | Yes| Type of events to unsubscribe from. | | deathCallback | Callback<void> | No| Callback used to return the **distributedDataServiceDie** events.| - + - Example @@ -633,7 +634,7 @@ Adds a child node to this **FieldNode**. | Name| Type| Mandatory| Description| | ----- | ------ | ---- | ----------------------- | | child | [FieldNode](#FieldNode) | Yes| Child node to add.| - + - Return value -- GitLab