diff --git a/en/application-dev/reference/apis/js-apis-filemanager.md b/en/application-dev/reference/apis/js-apis-filemanager.md index c3b738b12c4e0b3f1ea674feb3b5e25304ba9f9d..fe5143ca5a4415bc01cc388b2859f1c59800568c 100644 --- a/en/application-dev/reference/apis/js-apis-filemanager.md +++ b/en/application-dev/reference/apis/js-apis-filemanager.md @@ -141,7 +141,7 @@ Obtains information about the files in the second-level directory in asynchronou |Not a directory | 20 | The object specified by the URI is not a directory.| ```js -// Call listFile() and getRoot() to obtain the file UIRs. +// Call listFile() and getRoot() to obtain the file URIs. let media_path = file.uri filemanager.listFile(media_path, "file", (err, fileInfo) => { if(Array.isArray(fileInfo)) { diff --git a/en/application-dev/reference/apis/js-apis-system-bluetooth.md b/en/application-dev/reference/apis/js-apis-system-bluetooth.md index c2b517aa254b423f6e1467d3994ae12592fd45fb..27223da59dd798215ff27a2a6bad0f49282097c9 100644 --- a/en/application-dev/reference/apis/js-apis-system-bluetooth.md +++ b/en/application-dev/reference/apis/js-apis-system-bluetooth.md @@ -18,21 +18,22 @@ import bluetooth from '@system.bluetooth'; ## bluetooth.startBLEScan(OBJECT) -Scans for Bluetooth Low Energy (BLE) devices nearby. This operation consumes system resources. Call [bluetooth.stopBLEScan](#bluetoothstopblescanobject) to stop the scan after BLE devices are detected and connected. +Scans for Bluetooth Low Energy (BLE) devices nearby. This operation consumes system resources. Call [bluetooth.stopBLEScan](#bluetoothstopblescanobject) to stop the scan after a BLE device is detected and connected. **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION **System capability**: SystemCapability.Communication.Bluetooth.Lite **Parameters** + **Table 1** StartBLEScanOptions | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| interval | number | No| Interval for reporting device information, in milliseconds. The default value is **0**, which means to report detected devices immediately and report other information at the given interval.| +| interval | number | No| Interval for reporting device information, in milliseconds. The default value is **0**, which means to report the detected device immediately and report other information at the given interval.| | success | Function | No| Called when the operation is successful.| | fail | Function | No| Called when the operation fails.| -| complete | Function | No| Called when the API call is complete.| +| complete | Function | No| Called when the execution is complete.| **Example** @@ -60,13 +61,14 @@ Stops scanning for BLE devices nearby. This API is used with [bluetooth.startBLE **System capability**: SystemCapability.Communication.Bluetooth.Lite **Parameters** + **Table 2** StopBLEScanOptions | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | success | Function | No| Called when the operation is successful.| | fail | Function | No| Called when the operation fails.| -| complete | Function | No| Called when the API call is complete.| +| complete | Function | No| Called when the execution is complete.| **Example** @@ -87,18 +89,19 @@ Stops scanning for BLE devices nearby. This API is used with [bluetooth.startBLE ## bluetooth.subscribeBLEFound(OBJECT) -Subscribes to the newly detected BLE devices. If this API is called multiple times, the last call takes effect. +Subscribes to the newly detected BLE device. If this API is called multiple times, the last call takes effect. **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION **System capability**: SystemCapability.Communication.Bluetooth.Lite **Parameters** + **Table 3** SubscribeBLEFoundOptions -| Parameters| Type| Mandatory| Description| +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| success | Function | Yes| Called to report newly detected devices.| +| success | Function | Yes| Called to report the newly detected device.| | fail | Function | No| Called when the operation fails.| **Table 4** Return value in success @@ -162,7 +165,7 @@ Unsubscribes from the newly detected devices. | 1102 | The specified device is not found.| | 1103 | Connection failed.| | 1104 | The specified service is not found.| -| 1105 | The specified characteristics value is not found.| +| 1105 | The specified characteristic value is not found.| | 1106 | The Bluetooth device is disconnected.| | 1107 | The characteristic value does not support this operation.| | 1108 | Other exceptions reported by the system.| diff --git a/en/application-dev/reference/apis/js-apis-volumemanager.md b/en/application-dev/reference/apis/js-apis-volumemanager.md index 247a14edecced6f77df4d458238bd51de2e02ddc..e4e44b0db405165911335d3ee12a152a6e06f52a 100644 --- a/en/application-dev/reference/apis/js-apis-volumemanager.md +++ b/en/application-dev/reference/apis/js-apis-volumemanager.md @@ -33,7 +33,7 @@ Asynchronously obtains information about all available volumes. This method uses }); ``` -## volumemanager.getAllVolumes9+ +## volumemanager.getAllVolumes getAllVolumes(callback: AsyncCallback<Array<Volume>>): void @@ -171,9 +171,9 @@ Asynchronously unmounts a volume. This method uses a callback to return the resu | Name | Type | Description | | ----------- | ------- | -------------------- | -| id9+ | number | Volume ID. | -| uuid9+ | string | Universally unique identifier (UUID) of the volume. | -| description9+ | string | Description of the volume. | -| removable9+ | boolean | Whether the volume is a removable storage device.| -| state9+ | int | Current volume status. | -| path9+ | string | Mount address of the volume. | +| id | number | Volume ID. | +| uuid | string | Universally unique identifier (UUID) of the volume. | +| description | string | Description of the volume. | +| removable | boolean | Whether the volume is a removable storage device.| +| state | int | Current volume status. | +| path | string | Mount address of the volume. |