提交 698dab64 编写于 作者: Y yanxiaotao@huawei.com

sync master changlog to 4.0 beta2.

Signed-off-by: Nyanxiaotao@huawei.com <yanxiaotao@huawei.com>
上级 69e05d46
......@@ -29,6 +29,7 @@ getScanResultsSync(): Array<WifiScanInfo>;
**适配指导**
示例代码如下:
- 调用 getScanResults 异步接口:
```js
function getScanResultsPromise() {
let methodName = `${tag} getScanResultsPromise`
......@@ -43,7 +44,9 @@ function getScanResultsPromise() {
}
})
}
```
- 调用 getScanResultsSync 同步接口:
```js
function getScanResultsSync(): Array<wifiManager.WifiScanInfo> {
let methodName = `${tag} getScanResultsSync`
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册