Skip to content

Commit

Permalink
feat(taro): 添加 mdns 相关 api,close #6258
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed May 13, 2020
1 parent 03e0531 commit 6653930
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/taro/src/native-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ const onAndSyncApis = {
onAudioInterruptionEnd: true,
onAudioInterruptionBegin: true,
onLocationChange: true,
offLocationChange: true
offLocationChange: true,

onLocalServiceResolveFail: true,
onLocalServiceLost: true,
onLocalServiceFound: true,
onLocalServiceDiscoveryStop: true,
offLocalServiceResolveFail: true,
offLocalServiceLost: true,
offLocalServiceFound: true,
offLocalServiceDiscoveryStop: true
}
const noPromiseApis = {
// 媒体
Expand Down Expand Up @@ -242,6 +251,9 @@ const otherApis = {
getSelectedTextRange: true,
hideHomeButton: true,

stopLocalServiceDiscovery: true,
startLocalServiceDiscovery: true,

// 第三方平台
getExtConfig: true,

Expand Down

0 comments on commit 6653930

Please sign in to comment.