提交 d4095167 编写于 作者: X xujie

Fix format issue

Change-Id: Ia524271a8d94418569a42b7065e52421c56abde0
Signed-off-by: Nxujie <xujie223@huawei.com>
上级 02b2ac3a
......@@ -32,9 +32,9 @@ MDNS管理的典型场景有:
| ohos.net.mdns.DiscoveryService | on(type: 'discoveryStop', callback: Callback<{serviceInfo: LocalServiceInfo, errorCode?: MdnsError}>): void | 订阅停止监听mDNS服务的通知。 |
| ohos.net.mdns.DiscoveryService | off(type: 'discoveryStop', callback?: Callback<{ serviceInfo: LocalServiceInfo, errorCode?: MdnsError }>): void | 取消停止监听mDNS服务的通知。 |
| ohos.net.mdns.DiscoveryService | on(type: 'serviceFound', callback: Callback\<LocalServiceInfo>): void | 订阅发现mDNS服务的通知。 |
| ohos.net.mdns.DiscoveryService | off(type: 'serviceFound', callback?: Callback<LocalServiceInfo>): void | 取消发现mDNS服务的通知。 |
| ohos.net.mdns.DiscoveryService | off(type: 'serviceFound', callback?: Callback\<LocalServiceInfo>): void | 取消发现mDNS服务的通知。 |
| ohos.net.mdns.DiscoveryService | on(type: 'serviceLost', callback: Callback\<LocalServiceInfo>): void | 订阅移除mDNS服务的通知。 |
| ohos.net.mdns.DiscoveryService | off(type: 'serviceLost', callback?: Callback<LocalServiceInfo>): void | 取消移除mDNS服务的通知。 |
| ohos.net.mdns.DiscoveryService | off(type: 'serviceLost', callback?: Callback\<LocalServiceInfo>): void | 取消移除mDNS服务的通知。 |
## 管理本地服务
......@@ -158,4 +158,4 @@ discoveryService.off('serviceFound', (data) => {
discoveryService.off('serviceLost', (data) => {
console.log(JSON.stringify(data));
});
```
\ No newline at end of file
```
......@@ -852,7 +852,7 @@ discoveryService.stopSearchingMDNS();
### off('serviceFound')<sup>10+</sup>
off(type: 'serviceFound', callback?: Callback<LocalServiceInfo>): void
off(type: 'serviceFound', callback?: Callback\<LocalServiceInfo>): void
取消订阅发现mDNS服务的通知。
......@@ -918,7 +918,7 @@ discoveryService.stopSearchingMDNS();
### off('serviceLost')<sup>10+</sup>
off(type: 'serviceLost', callback?: Callback<LocalServiceInfo>): void
off(type: 'serviceLost', callback?: Callback\<LocalServiceInfo>): void
取消订阅移除mDNS服务的通知。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册