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

!15880 update wifiManager.md @2023-03-11.

Merge pull request !15880 from yanxiaotao/master
......@@ -408,6 +408,8 @@ IP配置信息。
| caCertAliases | string | 是 | 否 | CA 证书别名。 |
| caPath | string | 是 | 否 | CA 证书路径。 |
| clientCertAliases | string | 是 | 否 | 客户端证书别名。 |
| certEntry | Uint8Array | 是 | 是 | CA 证书内容。 |
| certPassword | string | 是 | 是 | CA证书密码。 |
| altSubjectMatch | string | 是 | 否 | 替代主题匹配。 |
| domainSuffixMatch | string | 是 | 否 | 域后缀匹配。 |
| realm | string | 是 | 否 | 通行证凭证的领域。 |
......
......@@ -12,9 +12,9 @@
import wifiManagerExt from '@ohos.wifiManagerExt';
```
## wifiext.enableHotspot
## wifiext.enableHotspot<sup>9+</sup>
enableHotspot(): boolean;
enableHotspot(): void;
使能WLAN热点。
......@@ -30,9 +30,9 @@ enableHotspot(): boolean;
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.disableHotspot
## wifiext.disableHotspot<sup>9+</sup>
disableHotspot(): boolean;
disableHotspot(): void;
去使能WLAN热点。
......@@ -48,7 +48,7 @@ disableHotspot(): boolean;
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.getSupportedPowerModel
## wifiext.getSupportedPowerModel<sup>9+</sup>
getSupportedPowerModel(): Promise&lt;Array&lt;PowerModel&gt;&gt;
......@@ -85,9 +85,9 @@ getSupportedPowerModel(): Promise&lt;Array&lt;PowerModel&gt;&gt;
| THROUGH_WALL | 2 | 穿墙模式。 |
## wifiext.getSupportedPowerModel
## wifiext.getSupportedPowerMode<sup>9+</sup>
getSupportedPowerModel(callback: AsyncCallback&lt;Array&lt;PowerModel&gt;&gt;): void
getSupportedPowerMode(callback: AsyncCallback&lt;Array&lt;PowerModel&gt;&gt;): void
获取支持的功率模式,使用callback异步回调。
......@@ -109,9 +109,9 @@ getSupportedPowerModel(callback: AsyncCallback&lt;Array&lt;PowerModel&gt;&gt;):
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.getPowerModel
## wifiext.getPowerMode<sup>9+</sup>
getPowerModel(): Promise&lt;PowerModel&gt;
getPowerMode(): Promise&lt;PowerModel&gt;
获取功率模式,使用Promise异步回调。
......@@ -133,9 +133,9 @@ getPowerModel(): Promise&lt;PowerModel&gt;
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.getPowerModel
## wifiext.getPowerMode<sup>9+</sup>
getPowerModel(callback: AsyncCallback&lt;PowerModel&gt;): void
getPowerMode(callback: AsyncCallback&lt;PowerModel&gt;): void
获取功率模式,使用callback异步回调。
......@@ -157,9 +157,9 @@ getPowerModel(callback: AsyncCallback&lt;PowerModel&gt;): void
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.setPowerModel
## wifiext.setPowerMode<sup>9+</sup>
setPowerModel(model: PowerModel) : boolean;
setPowerMode(model: PowerModel) : boolean;
设置功率模式。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册