From 31bddd59189af730ae3b68c05f0bb34af34a530f Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Mon, 30 May 2022 16:02:15 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- .../reference/apis/js-apis-data-preferences.md | 16 ++++++++-------- en/device-dev/driver/Readme-EN.md | 13 ++++++++----- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-data-preferences.md b/en/application-dev/reference/apis/js-apis-data-preferences.md index 1c44c61279..7d5604966e 100644 --- a/en/application-dev/reference/apis/js-apis-data-preferences.md +++ b/en/application-dev/reference/apis/js-apis-data-preferences.md @@ -266,14 +266,14 @@ promise.then((value) => { getAll(callback: AsyncCallback<Object>): void; -Obtains the **Object** instance that contains all values. +Obtains the **Object** instance that contains all KV pairs. **System capability**: SystemCapability.DistributedDataManager.Preferences.Core Parameters - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<Object> | Yes| Callback used to return the **Object** instance that contains all values.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| callback | AsyncCallback<Object> | Yes| Callback used to return the **Object** instance that contains all KV pairs. | **Example** ```ts @@ -292,14 +292,14 @@ preferences.get.getAll(function (err, value) { getAll(): Promise<Object> -Obtains the **Object** instance that contains all values. +Obtains the **Object** instance that contains all KV pairs. **System capability**: SystemCapability.DistributedDataManager.Preferences.Core **Return value** - | Type| Description| - | -------- | -------- | - | Promise<Object> | Promise used to return the **Object** instance that contains all values.| +| Type| Description| +| -------- | -------- | +| Promise<Object> | Promise used to return the **Object** instance that contains all KV pairs. | **Example** ```ts diff --git a/en/device-dev/driver/Readme-EN.md b/en/device-dev/driver/Readme-EN.md index 0f88055fd9..6d832ab929 100644 --- a/en/device-dev/driver/Readme-EN.md +++ b/en/device-dev/driver/Readme-EN.md @@ -43,12 +43,15 @@ - [UART](driver-platform-uart-des.md) - [Watchdog](driver-platform-watchdog-des.md) - Peripheral Driver Usage + - [Audio](driver-peripherals-audio-des.md) + - [Camera](driver-peripherals-camera-des.md) + - [Face_auth](driver-peripherals-face_auth-des.md) - [LCD](driver-peripherals-lcd-des.md) - - [Touchscreen](driver-peripherals-touch-des.md) + - [Light](driver-peripherals-light-des.md) + - [Pin_auth](driver-peripherals-pinauth-des.md) - [Sensor](driver-peripherals-sensor-des.md) - - [WLAN](driver-peripherals-external-des.md) - - [Audio](driver-peripherals-audio-des.md) + - [Touchscreen](driver-peripherals-touch-des.md) - [USB](driver-peripherals-usb-des.md) - - [Camera](driver-peripherals-camera-des.md) + - [User_auth](driver-peripherals-user-auth-des.md) - [Vibrator](driver-peripherals-vibrator-des.md) - - [Light](driver-peripherals-light-des.md) + - [WLAN](driver-peripherals-external-des.md) -- GitLab