未验证 提交 24fc1eeb 编写于 作者: Y Yangys 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-net-sharing.md.

Signed-off-by: NYangys <yangyousheng@huawei.com>
上级 5510dfeb
......@@ -893,8 +893,7 @@ sharing.off('sharingStateChange', (data) => {
## sharing.on('interfaceSharingStateChange')
on(type: 'interfaceSharingStateChange', callback: Callback\<{ type: SharingIfaceType, iface: string, state:
SharingIfaceState }>): void
on(type: 'interfaceSharingStateChange', callback: Callback\<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }>): void
注册网卡网络共享状态变化事件,使用callback方式作为异步方法。
......@@ -928,8 +927,7 @@ sharing.on('interfaceSharingStateChange', (data) => {
## sharing.off('interfaceSharingStateChange')
off(type: 'interfaceSharingStateChange', callback?: Callback\<{ type: SharingIfaceType, iface: string, state:
SharingIfaceState }>): void
off(type: 'interfaceSharingStateChange', callback?: Callback\<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }>): void
注销网卡网络共享状态变化事件,使用callback方式作为异步方法。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册