未验证 提交 a7b688be 编写于 作者: O openharmony_ci 提交者: Gitee

!3339 #I536HX完成,请审批

Merge pull request !3339 from Annie_wang/PR3310
......@@ -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)) {
......
......@@ -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.|
......
......@@ -33,7 +33,7 @@ Asynchronously obtains information about all available volumes. This method uses
});
```
## volumemanager.getAllVolumes<sup>9+</sup>
## volumemanager.getAllVolumes
getAllVolumes(callback: AsyncCallback&lt;Array&lt;Volume&gt;&gt;): void
......@@ -171,9 +171,9 @@ Asynchronously unmounts a volume. This method uses a callback to return the resu
| Name | Type | Description |
| ----------- | ------- | -------------------- |
| id<sup>9+</sup> | number | Volume ID. |
| uuid<sup>9+</sup> | string | Universally unique identifier (UUID) of the volume. |
| description<sup>9+</sup> | string | Description of the volume. |
| removable<sup>9+</sup> | boolean | Whether the volume is a removable storage device.|
| state<sup>9+</sup> | int | Current volume status. |
| path<sup>9+</sup> | 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. |
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册