提交 6d1dd7c3 编写于 作者: A Annie_wang

update docs

Signed-off-by: NAnnie_wang <annie.wangli@huawei.com>
上级 48dd5d93
...@@ -15,7 +15,7 @@ import wifiManager from '@ohos.wifiManager'; ...@@ -15,7 +15,7 @@ import wifiManager from '@ohos.wifiManager';
enableWifi(): void enableWifi(): void
Enables WLAN. Enables WLAN. This API is an asynchronous interface. The **wifiStateChange** callback must be registered and listened for.
**System API**: This is a system API. **System API**: This is a system API.
...@@ -47,7 +47,7 @@ For details about the error codes, see [Wi-Fi Error Codes](../errorcodes/errorco ...@@ -47,7 +47,7 @@ For details about the error codes, see [Wi-Fi Error Codes](../errorcodes/errorco
disableWifi(): void disableWifi(): void
Disables WLAN. Disables WLAN. This API is an asynchronous interface. The **wifiStateChange** callback must be registered and listened for.
**System API**: This is a system API. **System API**: This is a system API.
...@@ -583,7 +583,7 @@ Adds network configuration. This API uses a promise to return the result. ...@@ -583,7 +583,7 @@ Adds network configuration. This API uses a promise to return the result.
| **Type**| **Description**| | **Type**| **Description**|
| -------- | -------- | | -------- | -------- |
| Promise&lt;number&gt; | Promise used to return the ID of the added network configuration. If **-1** is returned, the network configuration fails to be added.| | Promise&lt;number&gt; | Promise used to return the ID of the added network configuration. If **-1** is returned, the network configuration fails to be added.|
**Error codes** **Error codes**
...@@ -959,7 +959,7 @@ Removes the configuration of a candidate network. This API uses an asynchronous ...@@ -959,7 +959,7 @@ Removes the configuration of a candidate network. This API uses an asynchronous
| **Name**| **Type**| **Mandatory**| **Description**| | **Name**| **Type**| **Mandatory**| **Description**|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| networkId | number | Yes| ID of the network configuration to remove.| | networkId | number | Yes| ID of the network configuration to remove.|
| callback | AsyncCallback&lt;void&gt; | Yes| Callback invoked to return the result. If the operation is successful, the value of **err** is **0**. If **err** is not **0**, an error has occurred.| | callback | AsyncCallback&lt;void&gt; | Yes| Callback invoked to return the result. If the operation is successful, the value of **err** is **0**. If **err** is not **0**, an error has occurred.|
**Error codes** **Error codes**
...@@ -2082,7 +2082,7 @@ Enumerates the Wi-Fi disconnection reasons. ...@@ -2082,7 +2082,7 @@ Enumerates the Wi-Fi disconnection reasons.
enableHotspot(): void enableHotspot(): void
Enables this hotspot. Enables this hotspot. This API is an asynchronous interface. The **hotspotStateChange** callback must be registered and listened for.
**System API**: This is a system API. **System API**: This is a system API.
...@@ -2113,7 +2113,7 @@ For details about the error codes, see [Wi-Fi Error Codes](../errorcodes/errorco ...@@ -2113,7 +2113,7 @@ For details about the error codes, see [Wi-Fi Error Codes](../errorcodes/errorco
disableHotspot(): void disableHotspot(): void
Disables this hotspot. Disables this hotspot. This API is an asynchronous interface. The **hotspotStateChange** callback must be registered and listened for.
**System API**: This is a system API. **System API**: This is a system API.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册