提交 8abcd190 编写于 作者: L liyufan

codecheck

Signed-off-by: Nliyufan <liyufan5@huawei.com>
上级 1a271384
......@@ -22,13 +22,10 @@ ohos.permission.GET_NETWORK_INFO
## network.getType<sup>3+</sup>
getType(options?: {<br>
&nbsp;&nbsp;success?: (data: NetworkResponse) => void;<br>
&nbsp;&nbsp;fail?: (data: any, code: number) => void;<br>
&nbsp;&nbsp;complete?: () => void;<br>
}): void<br>
}): void
获取当前设备的网络类型。
......@@ -69,11 +66,9 @@ export default {
## network.subscribe<sup>3+</sup>
subscribe(options?:{<br>
&nbsp;&nbsp;success?: (data: NetworkResponse) => void;<br>
&nbsp;&nbsp;fail?: (data: any, code: number) => void;<br>
}): void<br>
}): void
订阅当前设备的网络连接状态。如果多次调用,会覆盖前一次调用。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册