Taro.onLocalServiceLost(callback)
Listens on the mDNS service loss event.
Type
(callback: Callback) => void
Parameters
Callback
The callback function for the mDNS service loss event.
(result: CallbackResult) => void
| Property | Type |
|---|---|
| result | CallbackResult |
CallbackResult
| Property | Type | Description |
|---|---|---|
| serviceName | string | Service name |
| serviceType | string | Service type |
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| Taro.onLocalServiceLost | ✔️ |