@dcloudio/uni-app-x 0.7.49 → 0.7.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +30 -30
  6. package/types/app.d.ts +1383 -1383
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +8 -8
  9. package/types/native/CSSStyleDeclaration.d.ts +144 -144
  10. package/types/native/CanvasRenderingContext2D.d.ts +3748 -3748
  11. package/types/native/DOMRect.d.ts +656 -656
  12. package/types/native/DrawableContext.d.ts +1722 -1722
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +6103 -6103
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniNativeViewElement.d.ts +132 -130
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +269 -269
  22. package/types/native/SnapshotOptions.d.ts +62 -62
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniAnimation.d.ts +583 -583
  27. package/types/native/UniAnimationPlaybackEvent.d.ts +12 -12
  28. package/types/native/UniCallbackWrapper.d.ts +7 -7
  29. package/types/native/UniCanvasElement.d.ts +9 -9
  30. package/types/native/UniCustomEvent.d.ts +24 -24
  31. package/types/native/UniDocument.d.ts +83 -83
  32. package/types/native/UniElement.d.ts +85 -85
  33. package/types/native/UniError.d.ts +70 -70
  34. package/types/native/UniEvent.d.ts +121 -121
  35. package/types/native/UniFormControl.d.ts +8 -8
  36. package/types/native/UniFormControlElement.d.ts +15 -15
  37. package/types/native/UniImageErrorEvent.d.ts +33 -33
  38. package/types/native/UniImageLoadEvent.d.ts +37 -37
  39. package/types/native/UniInputBlurEvent.d.ts +36 -36
  40. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  41. package/types/native/UniInputEvent.d.ts +38 -38
  42. package/types/native/UniInputFocusEvent.d.ts +53 -53
  43. package/types/native/UniNativeApp.d.ts +205 -205
  44. package/types/native/UniNativePage.d.ts +328 -328
  45. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  46. package/types/native/UniPage.d.ts +639 -639
  47. package/types/native/UniPageBody.d.ts +109 -109
  48. package/types/native/UniPageEvent.d.ts +10 -10
  49. package/types/native/UniPageManager.d.ts +27 -27
  50. package/types/native/UniPageScrollEvent.d.ts +13 -13
  51. package/types/native/UniPointerEvent.d.ts +74 -74
  52. package/types/native/UniProvider.d.ts +32 -32
  53. package/types/native/UniRefresherEvent.d.ts +18 -18
  54. package/types/native/UniResizeEvent.d.ts +34 -34
  55. package/types/native/UniResizeObserver.d.ts +394 -394
  56. package/types/native/UniRichTextItemClickEvent.d.ts +37 -37
  57. package/types/native/UniSafeAreaInsets.d.ts +73 -73
  58. package/types/native/UniScrollEvent.d.ts +42 -42
  59. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  60. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  61. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  62. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  63. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  64. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  65. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  66. package/types/native/UniTabTapEvent.d.ts +18 -18
  67. package/types/native/UniTabsElement.d.ts +59 -59
  68. package/types/native/UniTextElement.d.ts +35 -35
  69. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  70. package/types/native/UniTouchEvent.d.ts +64 -64
  71. package/types/native/UniVideoElement.d.ts +515 -515
  72. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  73. package/types/native/UniWebViewElement.d.ts +10 -10
  74. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  75. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  76. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  77. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  78. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  79. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  80. package/types/native/WebViewStyles.d.ts +20 -20
  81. package/types/native/global.d.ts +662 -662
  82. package/types/native/index.d.ts +76 -76
  83. package/types/native-global/index.d.ts +1 -1
  84. package/types/page.d.ts +1731 -1731
  85. package/types/process.d.ts +5 -5
  86. package/types/uni/base/index.d.ts +3 -3
  87. package/types/uni/env/index.d.ts +117 -117
  88. package/types/uni/global.d.ts +7 -7
  89. package/types/uni/index.d.ts +5 -5
  90. package/types/uni/uni-map-tencent-global.d.ts +37 -37
  91. package/types/uni/uni-map-tencent-map.d.ts +62 -62
  92. package/types/uni/uts-plugin-api/global.d.ts +71 -71
  93. package/types/uni/uts-plugin-api/index.d.ts +71 -71
  94. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -22
  95. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -10
  96. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +554 -554
  97. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +24 -24
  98. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +11 -11
  99. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1765 -1765
  100. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  101. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  102. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +78 -78
  103. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +58 -58
  104. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +28 -28
  105. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1336 -1336
  106. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  107. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  108. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +78 -78
  109. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +22 -22
  110. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +10 -10
  111. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +972 -972
  112. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/global.d.ts +20 -20
  113. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  114. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +411 -411
  115. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -32
  116. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -15
  117. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  118. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  119. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +601 -601
  120. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -16
  121. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +7 -7
  122. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2664 -2664
  123. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  124. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  125. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +512 -512
  126. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  127. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  128. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  129. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  130. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  131. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +769 -769
  132. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  133. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  134. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  135. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  136. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  137. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/global.d.ts +10 -10
  138. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/index.d.ts +4 -4
  139. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +76 -76
  140. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  141. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  142. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  143. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  144. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  145. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +102 -102
  146. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  147. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  148. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +384 -384
  149. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +152 -152
  150. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -75
  151. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  152. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  153. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  154. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  155. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +616 -497
  156. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  157. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  158. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2557 -2557
  159. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +16 -16
  160. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +7 -7
  161. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1049 -1049
  162. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  163. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  164. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2006 -2006
  165. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  166. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  167. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +82 -82
  168. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  169. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  170. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +802 -802
  171. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  172. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  173. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +806 -806
  174. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  175. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  176. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1808 -1810
  177. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  178. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  179. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  180. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  181. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  182. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +20 -20
  183. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -10
  184. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -736
  185. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  186. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  187. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +692 -692
  188. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  189. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  190. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +419 -419
  191. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +36 -36
  192. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +17 -17
  193. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +634 -634
  194. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  195. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  196. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1024 -1024
  197. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +32 -32
  198. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +15 -15
  199. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +6755 -6755
  200. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  201. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  202. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +501 -501
  203. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  204. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  205. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  206. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  207. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  208. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  209. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  210. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +367 -367
  211. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +28 -28
  212. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +13 -13
  213. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +679 -679
  214. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  215. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  216. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +277 -277
  217. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +190 -190
  218. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +94 -94
  219. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2760 -2331
  220. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +18 -18
  221. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +8 -8
  222. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +762 -190
  223. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  224. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  225. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1210 -1210
  226. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +90 -90
  227. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +44 -44
  228. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +5752 -5752
  229. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +66 -66
  230. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +32 -32
  231. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2648 -2648
  232. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/global.d.ts +8 -8
  233. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/index.d.ts +4 -4
  234. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -1
  235. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  236. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  237. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +296 -296
  238. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  239. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  240. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +516 -516
  241. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  242. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  243. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +418 -418
  244. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  245. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  246. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +1084 -1084
  247. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  248. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  249. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -8
  250. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -4
  251. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -1
  252. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  253. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  254. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +46 -46
  255. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +22 -22
  256. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +878 -878
  257. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +30 -30
  258. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +14 -14
  259. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +609 -609
  260. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  261. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  262. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +4323 -4322
  263. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  264. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  265. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +323 -323
  266. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +20 -20
  267. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +9 -9
  268. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +709 -521
  269. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  270. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  271. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2847 -2847
  272. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  273. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  274. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +80 -80
  275. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  276. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  277. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +629 -615
  278. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +26 -26
  279. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +12 -12
  280. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +719 -719
  281. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/global.d.ts +18 -18
  282. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/index.d.ts +8 -8
  283. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +308 -276
  284. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  285. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  286. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1998 -1998
  287. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  288. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  289. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +3136 -3136
  290. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +54 -54
  291. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +26 -26
  292. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1105 -1105
  293. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  294. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  295. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +2306 -2306
  296. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  297. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  298. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2717 -2717
  299. package/types/uni/uts-plugin-biz/global.d.ts +7 -7
  300. package/types/uni/uts-plugin-biz/index.d.ts +7 -7
  301. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +44 -44
  302. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +21 -21
  303. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +1008 -1008
  304. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/global.d.ts +34 -34
  305. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/index.d.ts +16 -16
  306. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +24 -24
  307. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +11 -11
  308. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  309. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  310. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +212 -212
  311. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +66 -66
  312. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +32 -32
  313. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  314. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  315. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +960 -960
  316. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -24
  317. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -11
  318. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +52 -52
  319. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +25 -25
  320. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -64
  321. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -31
  322. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -900
  323. package/types/uni/uts-plugin-component/global.d.ts +2 -2
  324. package/types/uni/uts-plugin-component/index.d.ts +2 -2
  325. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +34 -34
  326. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +16 -16
  327. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +68 -66
  328. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +33 -32
  329. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +935 -927
  330. package/types/uni/uts-plugin-extend/README.md +3 -0
  331. package/types/uni/uts-plugin-extend/global.d.ts +11 -11
  332. package/types/uni/uts-plugin-extend/index.d.ts +10 -10
  333. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -7
  334. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -3
  335. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  336. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  337. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +917 -917
  338. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  339. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  340. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4770 -4770
  341. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  342. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  343. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1095 -1095
  344. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  345. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  346. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  347. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  348. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  349. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  350. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  351. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  352. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1670 -1670
  353. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  354. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  355. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +253 -253
  356. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  357. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  358. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +999 -999
  359. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  360. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  361. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  362. package/types/uni-cloud/index.d.ts +67 -67
  363. package/types/uni-cloud/interface.d.ts +1078 -1078
  364. package/types/uni-cloud/unicloud-db/index.ts +317 -317
  365. package/types/uni-global/index.d.ts +1 -1
  366. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  367. package/types/vue/LifeCycle.d.ts +55 -55
  368. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  369. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  370. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  371. package/types/vue/SliderChangeEvent.d.ts +35 -35
  372. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  373. package/types/vue/UniCanvasElement.d.ts +275 -275
  374. package/types/vue/UniCloudDBElement.d.ts +217 -217
  375. package/types/vue/UniFormElement.d.ts +54 -54
  376. package/types/vue/UniNavigatorElement.d.ts +11 -11
  377. package/types/vue/global.d.ts +191 -191
  378. package/types/vue/index.d.ts +10 -10
  379. package/types/vue-global/index.d.ts +1 -1
  380. package/uts-plugin.d.ts +33 -33
@@ -1,1810 +1,1808 @@
1
- import { GetLocationFailImpl as GetLocationFailImplement } from './unierror.uts'
2
-
3
- export type GetLocationFailImpl = GetLocationFailImplement
4
-
5
- export interface UniLocationProvider extends UniProvider {
6
- requestPayment(options: RequestPaymentOptions): void;
7
- }
8
-
9
- export interface Uni {
10
-
11
- /**
12
- * @description 获取当前的地理位置、速度
13
- * @param {GetLocation} option
14
- * @example
15
- * ```typescript
16
- * uni.getLocation({
17
- * type: 'wgs84',
18
- * success: function (res) {
19
- * console.log('当前位置的经度:' + res.longitude);
20
- * console.log('当前位置的纬度:' + res.latitude);
21
- * }
22
- * });
23
- * ```
24
- * @tutorial http://uniapp.dcloud.io/api/location/location?id=getlocation
25
- * @uniPlatform {
26
- * "app": {
27
- * "android": {
28
- * "osVer": "5.0",
29
- * "uniVer": "√",
30
- * "unixVer": "3.9.0"
31
- * },
32
- * "ios": {
33
- * "osVer": "12.0",
34
- * "uniVer": "√",
35
- * "unixVer": "4.11"
36
- * },
37
- * "harmony": {
38
- * "osVer": "x",
39
- * "uniVer": "4.25",
40
- * "unixVer": "4.61"
41
- * }
42
- * },
43
- * "mp": {
44
- * "weixin": {
45
- * "hostVer": "1.9.6",
46
- * "uniVer": "√",
47
- * "unixVer": "4.41"
48
- * },
49
- * "alipay": {
50
- * "hostVer": "",
51
- * "uniVer": "√",
52
- * "unixVer": "x"
53
- * },
54
- * "baidu": {
55
- * "hostVer": "",
56
- * "uniVer": "√",
57
- * "unixVer": "x"
58
- * },
59
- * "toutiao": {
60
- * "hostVer": "",
61
- * "uniVer": "√",
62
- * "unixVer": "x"
63
- * },
64
- * "lark": {
65
- * "hostVer": "",
66
- * "uniVer": "√",
67
- * "unixVer": "x"
68
- * },
69
- * "qq": {
70
- * "hostVer": "",
71
- * "uniVer": "√",
72
- * "unixVer": "x"
73
- * },
74
- * "kuaishou": {
75
- * "hostVer": "",
76
- * "uniVer": "√",
77
- * "unixVer": "x"
78
- * },
79
- * "jd": {
80
- * "hostVer": "",
81
- * "uniVer": "√",
82
- * "unixVer": "x"
83
- * }
84
- * },
85
- * "web": {
86
- * "uniVer": "√",
87
- * "unixVer": "4.0"
88
- * }
89
- * }
90
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html
91
- */
92
- getLocation(options: GetLocationOptions): void;
93
-
94
- }
95
-
96
- /**
97
- * 错误码
98
- */
99
- export type LocationErrorCode =
100
- /**
101
- * 缺失高精度权限授权(iOS特有)
102
- * @deprecated 从4.25开始已经废弃
103
- * @uniPlatform {
104
- * "app": {
105
- * "android": {
106
- * "osVer": "5.0",
107
- * "uniVer": "√",
108
- * "unixVer": "3.9.0"
109
- * },
110
- * "ios": {
111
- * "osVer": "12.0",
112
- * "uniVer": "√",
113
- * "unixVer": "4.11"
114
- * },
115
- * "harmony": {
116
- * "osVer": "x",
117
- * "uniVer": "4.25",
118
- * "unixVer": "4.61"
119
- * }
120
- * },
121
- * "web": {
122
- * "uniVer": "√",
123
- * "unixVer": "4.0"
124
- * }
125
- * }
126
- */
127
- 1505005 |
128
- /**
129
- * 超时
130
- * @deprecated 从4.25开始已经废弃
131
- * @uniPlatform {
132
- * "app": {
133
- * "android": {
134
- * "osVer": "5.0",
135
- * "uniVer": "√",
136
- * "unixVer": "3.9.0"
137
- * },
138
- * "ios": {
139
- * "osVer": "12.0",
140
- * "uniVer": "√",
141
- * "unixVer": "4.11"
142
- * },
143
- * "harmony": {
144
- * "osVer": "x",
145
- * "uniVer": "4.25",
146
- * "unixVer": "4.61"
147
- * }
148
- * },
149
- * "web": {
150
- * "uniVer": "√",
151
- * "unixVer": "4.0"
152
- * }
153
- * }
154
- */
155
- 1505021 |
156
- /**
157
- * 不支持的定位类型
158
- * @deprecated 从4.25开始已经废弃
159
- * @uniPlatform {
160
- * "app": {
161
- * "android": {
162
- * "osVer": "5.0",
163
- * "uniVer": "√",
164
- * "unixVer": "3.9.0"
165
- * },
166
- * "ios": {
167
- * "osVer": "12.0",
168
- * "uniVer": "√",
169
- * "unixVer": "4.11"
170
- * },
171
- * "harmony": {
172
- * "osVer": "x",
173
- * "uniVer": "4.25",
174
- * "unixVer": "4.61"
175
- * }
176
- * },
177
- * "web": {
178
- * "uniVer": "√",
179
- * "unixVer": "4.0"
180
- * }
181
- * }
182
- */
183
- 1505022 |
184
- /**
185
- * 不支持逆地理编码
186
- * @uniPlatform {
187
- * "app": {
188
- * "android": {
189
- * "osVer": "5.0",
190
- * "uniVer": "√",
191
- * "unixVer": "3.9.0"
192
- * },
193
- * "ios": {
194
- * "osVer": "12.0",
195
- * "uniVer": "√",
196
- * "unixVer": "4.11"
197
- * },
198
- * "harmony": {
199
- * "osVer": "x",
200
- * "uniVer": "4.25",
201
- * "unixVer": "4.61"
202
- * }
203
- * },
204
- * "web": {
205
- * "uniVer": "√",
206
- * "unixVer": "4.0"
207
- * }
208
- * }
209
- */
210
- 1505023 |
211
- /**
212
- * 没有找到具体的定位引擎(GPS_PROVIDER,NETWORK_PROVIDER,PASSIVE_PROVIDER等),请定位开关是否已打开
213
- * @deprecated 从4.25开始已经废弃
214
- * @uniPlatform {
215
- * "app": {
216
- * "android": {
217
- * "osVer": "5.0",
218
- * "uniVer": "√",
219
- * "unixVer": "3.9.0"
220
- * },
221
- * "ios": {
222
- * "osVer": "12.0",
223
- * "uniVer": "√",
224
- * "unixVer": "4.11"
225
- * },
226
- * "harmony": {
227
- * "osVer": "x",
228
- * "uniVer": "4.25",
229
- * "unixVer": "4.61"
230
- * }
231
- * },
232
- * "web": {
233
- * "uniVer": "√",
234
- * "unixVer": "4.0"
235
- * }
236
- * }
237
- */
238
- 1505024 |
239
- /**
240
- * 逆地理编码捕获失败
241
- * @deprecated 从4.25开始已经废弃
242
- * @uniPlatform {
243
- * "app": {
244
- * "android": {
245
- * "osVer": "5.0",
246
- * "uniVer": "√",
247
- * "unixVer": "3.9.0"
248
- * },
249
- * "ios": {
250
- * "osVer": "12.0",
251
- * "uniVer": "√",
252
- * "unixVer": "4.11"
253
- * },
254
- * "harmony": {
255
- * "osVer": "x",
256
- * "uniVer": "4.25",
257
- * "unixVer": "4.61"
258
- * }
259
- * },
260
- * "web": {
261
- * "uniVer": "√",
262
- * "unixVer": "4.0"
263
- * }
264
- * }
265
- */
266
- 1505025 |
267
- /**
268
- * 捕获定位失败
269
- * @deprecated 从4.25开始已经废弃
270
- * @uniPlatform {
271
- * "app": {
272
- * "android": {
273
- * "osVer": "5.0",
274
- * "uniVer": "√",
275
- * "unixVer": "3.9.0"
276
- * },
277
- * "ios": {
278
- * "osVer": "12.0",
279
- * "uniVer": "√",
280
- * "unixVer": "4.11"
281
- * },
282
- * "harmony": {
283
- * "osVer": "x",
284
- * "uniVer": "4.25",
285
- * "unixVer": "4.61"
286
- * }
287
- * },
288
- * "web": {
289
- * "uniVer": "√",
290
- * "unixVer": "4.0"
291
- * }
292
- * }
293
- */
294
- 1505026 |
295
- /**
296
- * 系统定位未开启,请在系统设置中开启系统定位
297
- * @uniPlatform {
298
- * "app": {
299
- * "android": {
300
- * "osVer": "5.0",
301
- * "uniVer": "√",
302
- * "unixVer": "4.25"
303
- * },
304
- * "ios": {
305
- * "osVer": "12.0",
306
- * "uniVer": "√",
307
- * "unixVer": "4.25"
308
- * }
309
- * }
310
- * }
311
- */
312
- 1505003 |
313
- /**
314
- * 应用定位权限未开启
315
- * @uniPlatform {
316
- * "app": {
317
- * "android": {
318
- * "osVer": "5.0",
319
- * "uniVer": "√",
320
- * "unixVer": "4.25"
321
- * },
322
- * "ios": {
323
- * "osVer": "12.0",
324
- * "uniVer": "√",
325
- * "unixVer": "4.25"
326
- * }
327
- * }
328
- * }
329
- */
330
- 1505004 |
331
- /**
332
- * 超时
333
- * @uniPlatform {
334
- * "app": {
335
- * "android": {
336
- * "osVer": "5.0",
337
- * "uniVer": "√",
338
- * "unixVer": "4.25"
339
- * },
340
- * "ios": {
341
- * "osVer": "12.0",
342
- * "uniVer": "√",
343
- * "unixVer": "4.25"
344
- * }
345
- * }
346
- * }
347
- */
348
- 1505600 |
349
- /**
350
- * 不支持的定位类型
351
- * @uniPlatform {
352
- * "app": {
353
- * "android": {
354
- * "osVer": "5.0",
355
- * "uniVer": "√",
356
- * "unixVer": "4.25"
357
- * },
358
- * "ios": {
359
- * "osVer": "12.0",
360
- * "uniVer": "√",
361
- * "unixVer": "4.25"
362
- * }
363
- * }
364
- * }
365
- */
366
- 1505601 |
367
- /**
368
- * 捕获定位失败
369
- * @uniPlatform {
370
- * "app": {
371
- * "android": {
372
- * "osVer": "5.0",
373
- * "uniVer": "√",
374
- * "unixVer": "4.25"
375
- * },
376
- * "ios": {
377
- * "osVer": "12.0",
378
- * "uniVer": "√",
379
- * "unixVer": "4.25"
380
- * }
381
- * }
382
- * }
383
- */
384
- 1505602 |
385
- /**
386
- * 逆地理编码捕获失败
387
- * @uniPlatform {
388
- * "app": {
389
- * "android": {
390
- * "osVer": "5.0",
391
- * "uniVer": "√",
392
- * "unixVer": "4.25"
393
- * },
394
- * "ios": {
395
- * "osVer": "12.0",
396
- * "uniVer": "√",
397
- * "unixVer": "4.25"
398
- * }
399
- * }
400
- * }
401
- */
402
- 1505603 |
403
- /**
404
- * 服务供应商获取失败
405
- * @uniPlatform {
406
- * "app": {
407
- * "android": {
408
- * "osVer": "5.0",
409
- * "uniVer": "√",
410
- * "unixVer": "4.25"
411
- * },
412
- * "ios": {
413
- * "osVer": "12.0",
414
- * "uniVer": "√",
415
- * "unixVer": "4.25"
416
- * }
417
- * }
418
- * }
419
- */
420
- 1505604 |
421
- /**
422
- * 不支持逆地理编码
423
- * @uniPlatform {
424
- * "app": {
425
- * "android": {
426
- * "osVer": "5.0",
427
- * "uniVer": "√",
428
- * "unixVer": "4.25"
429
- * },
430
- * "ios": {
431
- * "osVer": "12.0",
432
- * "uniVer": "√",
433
- * "unixVer": "4.25"
434
- * }
435
- * }
436
- * }
437
- */
438
- 1505700 |
439
- /**
440
- * 没有找到具体的定位引擎(GPS_PROVIDER,NETWORK_PROVIDER,PASSIVE_PROVIDER等),请确定系统定位是否开启
441
- * @uniPlatform {
442
- * "app": {
443
- * "android": {
444
- * "osVer": "5.0",
445
- * "uniVer": "√",
446
- * "unixVer": "4.25"
447
- * },
448
- * "ios": {
449
- * "osVer": "12.0",
450
- * "uniVer": "√",
451
- * "unixVer": "4.25"
452
- * }
453
- * }
454
- * }
455
- */
456
- 1505701 |
457
- /**
458
- * 应用高精度定位权限未开启
459
- * @uniPlatform {
460
- * "app": {
461
- * "android": {
462
- * "osVer": "5.0",
463
- * "uniVer": "√",
464
- * "unixVer": "4.25"
465
- * },
466
- * "ios": {
467
- * "osVer": "12.0",
468
- * "uniVer": "√",
469
- * "unixVer": "4.25"
470
- * }
471
- * }
472
- * }
473
- */
474
- 1505800 |
475
- /**
476
- * 未通过配置预校验,通常是腾讯定位 api key 配置错误
477
- * @uniPlatform {
478
- * "app": {
479
- * "android": {
480
- * "osVer": "5.0",
481
- * "uniVer": "√",
482
- * "unixVer": "4.25"
483
- * },
484
- * "ios": {
485
- * "osVer": "12.0",
486
- * "uniVer": "√",
487
- * "unixVer": "4.25"
488
- * }
489
- * }
490
- * }
491
- */
492
- 1505605 |
493
- /**
494
- * 腾讯定位只支持GCJ-02
495
- * @uniPlatform {
496
- * "app": {
497
- * "android": {
498
- * "osVer": "5.0",
499
- * "uniVer": "√",
500
- * "unixVer": "4.25"
501
- * },
502
- * "ios": {
503
- * "osVer": "12.0",
504
- * "uniVer": "√",
505
- * "unixVer": "4.25"
506
- * }
507
- * }
508
- * }
509
- */
510
- 1505607;
511
-
512
- /**
513
- * 网络请求失败的错误回调参数
514
- * @uniPlatform {
515
- * "mp": {
516
- * "weixin": {
517
- * "hostVer": "",
518
- * "uniVer": "√",
519
- * "unixVer": "4.41"
520
- * },
521
- * "alipay": {
522
- * "hostVer": "-",
523
- * "uniVer": "-",
524
- * "unixVer": "-"
525
- * },
526
- * "baidu": {
527
- * "hostVer": "-",
528
- * "uniVer": "-",
529
- * "unixVer": "-"
530
- * },
531
- * "toutiao": {
532
- * "hostVer": "-",
533
- * "uniVer": "-",
534
- * "unixVer": "-"
535
- * },
536
- * "lark": {
537
- * "hostVer": "-",
538
- * "uniVer": "-",
539
- * "unixVer": "-"
540
- * },
541
- * "qq": {
542
- * "hostVer": "-",
543
- * "uniVer": "-",
544
- * "unixVer": "-"
545
- * },
546
- * "kuaishou": {
547
- * "hostVer": "-",
548
- * "uniVer": "-",
549
- * "unixVer": "-"
550
- * },
551
- * "jd": {
552
- * "hostVer": "-",
553
- * "uniVer": "-",
554
- * "unixVer": "-"
555
- * }
556
- * }
557
- * }
558
- */
559
- export interface IGetLocationFail extends IUniError {
560
- errCode: LocationErrorCode
561
- };
562
-
563
- export type GetLocationFail = IGetLocationFail
564
-
565
-
566
- export type GetLocation = (options: GetLocationOptions) => void;
567
- export type GetLocationSuccess = {
568
- /**
569
- * 纬度,浮点数,范围为-90~90,负数表示南纬
570
- * @defaultValue 0
571
- * @uniPlatform {
572
- * "app": {
573
- * "android": {
574
- * "osVer": "5.0",
575
- * "uniVer": "√",
576
- * "unixVer": "3.9.0"
577
- * },
578
- * "ios": {
579
- * "osVer": "12.0",
580
- * "uniVer": "√",
581
- * "unixVer": "4.11"
582
- * },
583
- * "harmony": {
584
- * "osVer": "x",
585
- * "uniVer": "4.25",
586
- * "unixVer": "4.61"
587
- * }
588
- * },
589
- * "web": {
590
- * "uniVer": "√",
591
- * "unixVer": "4.0"
592
- * }
593
- * }
594
- */
595
- latitude: number,
596
- /**
597
- * 经度,范围为-180~180,负数表示西经
598
- * @defaultValue 0
599
- * @uniPlatform {
600
- * "app": {
601
- * "android": {
602
- * "osVer": "5.0",
603
- * "uniVer": "√",
604
- * "unixVer": "3.9.0"
605
- * },
606
- * "ios": {
607
- * "osVer": "12.0",
608
- * "uniVer": "√",
609
- * "unixVer": "4.11"
610
- * },
611
- * "harmony": {
612
- * "osVer": "x",
613
- * "uniVer": "4.25",
614
- * "unixVer": "4.61"
615
- * }
616
- * },
617
- * "web": {
618
- * "uniVer": "√",
619
- * "unixVer": "4.0"
620
- * }
621
- * }
622
- */
623
- longitude: number,
624
- /**
625
- * 速度,浮点数,单位m/s
626
- * @defaultValue 0
627
- * @uniPlatform {
628
- * "app": {
629
- * "android": {
630
- * "osVer": "5.0",
631
- * "uniVer": "√",
632
- * "unixVer": "3.9.0"
633
- * },
634
- * "ios": {
635
- * "osVer": "12.0",
636
- * "uniVer": "√",
637
- * "unixVer": "4.11"
638
- * },
639
- * "harmony": {
640
- * "osVer": "x",
641
- * "uniVer": "4.25",
642
- * "unixVer": "4.61"
643
- * }
644
- * },
645
- * "mp": {
646
- * "weixin": {
647
- * "hostVer": "",
648
- * "uniVer": "√",
649
- * "unixVer": "4.41"
650
- * },
651
- * "alipay": {
652
- * "hostVer": "",
653
- * "uniVer": "√",
654
- * "unixVer": "x"
655
- * },
656
- * "baidu": {
657
- * "hostVer": "",
658
- * "uniVer": "√",
659
- * "unixVer": "x"
660
- * },
661
- * "toutiao": {
662
- * "hostVer": "",
663
- * "uniVer": "√",
664
- * "unixVer": "x"
665
- * },
666
- * "lark": {
667
- * "hostVer": "",
668
- * "uniVer": "√",
669
- * "unixVer": "x"
670
- * },
671
- * "qq": {
672
- * "hostVer": "",
673
- * "uniVer": "√",
674
- * "unixVer": "x"
675
- * },
676
- * "kuaishou": {
677
- * "hostVer": "",
678
- * "uniVer": "√",
679
- * "unixVer": "x"
680
- * },
681
- * "jd": {
682
- * "hostVer": "",
683
- * "uniVer": "√",
684
- * "unixVer": "x"
685
- * }
686
- * },
687
- * "web": {
688
- * "uniVer": "√",
689
- * "unixVer": "4.0"
690
- * }
691
- * }
692
- */
693
- speed: number,
694
- /**
695
- * 位置的精确度
696
- * @uniPlatform {
697
- * "app": {
698
- * "android": {
699
- * "osVer": "5.0",
700
- * "uniVer": "√",
701
- * "unixVer": "3.9.0"
702
- * },
703
- * "ios": {
704
- * "osVer": "12.0",
705
- * "uniVer": "√",
706
- * "unixVer": "4.11"
707
- * },
708
- * "harmony": {
709
- * "osVer": "x",
710
- * "uniVer": "4.25",
711
- * "unixVer": "4.61"
712
- * }
713
- * },
714
- * "mp": {
715
- * "weixin": {
716
- * "hostVer": "",
717
- * "uniVer": "√",
718
- * "unixVer": "4.41"
719
- * },
720
- * "alipay": {
721
- * "hostVer": "",
722
- * "uniVer": "√",
723
- * "unixVer": "x"
724
- * },
725
- * "baidu": {
726
- * "hostVer": "",
727
- * "uniVer": "√",
728
- * "unixVer": "x"
729
- * },
730
- * "toutiao": {
731
- * "hostVer": "",
732
- * "uniVer": "√",
733
- * "unixVer": "x"
734
- * },
735
- * "lark": {
736
- * "hostVer": "",
737
- * "uniVer": "√",
738
- * "unixVer": "x"
739
- * },
740
- * "qq": {
741
- * "hostVer": "",
742
- * "uniVer": "√",
743
- * "unixVer": "x"
744
- * },
745
- * "kuaishou": {
746
- * "hostVer": "",
747
- * "uniVer": "√",
748
- * "unixVer": "x"
749
- * },
750
- * "jd": {
751
- * "hostVer": "",
752
- * "uniVer": "√",
753
- * "unixVer": "x"
754
- * }
755
- * },
756
- * "web": {
757
- * "uniVer": "√",
758
- * "unixVer": "4.0"
759
- * }
760
- * }
761
- */
762
- accuracy: number,
763
- /**
764
- * 高度,单位 m
765
- * @defaultValue 0
766
- * @uniPlatform {
767
- * "app": {
768
- * "android": {
769
- * "osVer": "5.0",
770
- * "uniVer": "√",
771
- * "unixVer": "3.9.0"
772
- * },
773
- * "ios": {
774
- * "osVer": "12.0",
775
- * "uniVer": "√",
776
- * "unixVer": "4.11"
777
- * },
778
- * "harmony": {
779
- * "osVer": "x",
780
- * "uniVer": "4.25",
781
- * "unixVer": "4.61"
782
- * }
783
- * },
784
- * "mp": {
785
- * "weixin": {
786
- * "hostVer": "",
787
- * "uniVer": "√",
788
- * "unixVer": "4.41"
789
- * },
790
- * "alipay": {
791
- * "hostVer": "",
792
- * "uniVer": "√",
793
- * "unixVer": "x"
794
- * },
795
- * "baidu": {
796
- * "hostVer": "",
797
- * "uniVer": "√",
798
- * "unixVer": "x"
799
- * },
800
- * "toutiao": {
801
- * "hostVer": "",
802
- * "uniVer": "√",
803
- * "unixVer": "x"
804
- * },
805
- * "lark": {
806
- * "hostVer": "",
807
- * "uniVer": "√",
808
- * "unixVer": "x"
809
- * },
810
- * "qq": {
811
- * "hostVer": "",
812
- * "uniVer": "√",
813
- * "unixVer": "x"
814
- * },
815
- * "kuaishou": {
816
- * "hostVer": "",
817
- * "uniVer": "√",
818
- * "unixVer": "x"
819
- * },
820
- * "jd": {
821
- * "hostVer": "",
822
- * "uniVer": "√",
823
- * "unixVer": "x"
824
- * }
825
- * },
826
- * "web": {
827
- * "uniVer": "√",
828
- * "unixVer": "4.0"
829
- * }
830
- * }
831
- */
832
- altitude: number,
833
- /**
834
- * 垂直精度,单位 m(Android 无法获取,返回 0)
835
- * @defaultValue 0
836
- * @uniPlatform {
837
- * "app": {
838
- * "android": {
839
- * "osVer": "5.0",
840
- * "uniVer": "√",
841
- * "unixVer": "3.9.0"
842
- * },
843
- * "ios": {
844
- * "osVer": "12.0",
845
- * "uniVer": "√",
846
- * "unixVer": "4.11"
847
- * },
848
- * "harmony": {
849
- * "osVer": "x",
850
- * "uniVer": "x",
851
- * "unixVer": "x"
852
- * }
853
- * },
854
- * "mp": {
855
- * "weixin": {
856
- * "hostVer": "",
857
- * "uniVer": "√",
858
- * "unixVer": "4.41"
859
- * },
860
- * "alipay": {
861
- * "hostVer": "",
862
- * "uniVer": "√",
863
- * "unixVer": "x"
864
- * },
865
- * "baidu": {
866
- * "hostVer": "",
867
- * "uniVer": "√",
868
- * "unixVer": "x"
869
- * },
870
- * "toutiao": {
871
- * "hostVer": "",
872
- * "uniVer": "√",
873
- * "unixVer": "x"
874
- * },
875
- * "lark": {
876
- * "hostVer": "",
877
- * "uniVer": "√",
878
- * "unixVer": "x"
879
- * },
880
- * "qq": {
881
- * "hostVer": "",
882
- * "uniVer": "√",
883
- * "unixVer": "x"
884
- * },
885
- * "kuaishou": {
886
- * "hostVer": "",
887
- * "uniVer": "√",
888
- * "unixVer": "x"
889
- * },
890
- * "jd": {
891
- * "hostVer": "",
892
- * "uniVer": "√",
893
- * "unixVer": "x"
894
- * }
895
- * },
896
- * "web": {
897
- * "uniVer": "√",
898
- * "unixVer": "4.0"
899
- * }
900
- * }
901
- */
902
- verticalAccuracy: number,
903
- /**
904
- * 水平精度,单位 m
905
- * @defaultValue 0
906
- * @uniPlatform {
907
- * "app": {
908
- * "android": {
909
- * "osVer": "5.0",
910
- * "uniVer": "√",
911
- * "unixVer": "3.9.0"
912
- * },
913
- * "ios": {
914
- * "osVer": "12.0",
915
- * "uniVer": "√",
916
- * "unixVer": "4.11"
917
- * },
918
- * "harmony": {
919
- * "osVer": "x",
920
- * "uniVer": "x",
921
- * "unixVer": "x"
922
- * }
923
- * },
924
- * "mp": {
925
- * "weixin": {
926
- * "hostVer": "",
927
- * "uniVer": "√",
928
- * "unixVer": "4.41"
929
- * },
930
- * "alipay": {
931
- * "hostVer": "",
932
- * "uniVer": "√",
933
- * "unixVer": "x"
934
- * },
935
- * "baidu": {
936
- * "hostVer": "",
937
- * "uniVer": "√",
938
- * "unixVer": "x"
939
- * },
940
- * "toutiao": {
941
- * "hostVer": "",
942
- * "uniVer": "√",
943
- * "unixVer": "x"
944
- * },
945
- * "lark": {
946
- * "hostVer": "",
947
- * "uniVer": "√",
948
- * "unixVer": "x"
949
- * },
950
- * "qq": {
951
- * "hostVer": "",
952
- * "uniVer": "√",
953
- * "unixVer": "x"
954
- * },
955
- * "kuaishou": {
956
- * "hostVer": "",
957
- * "uniVer": "√",
958
- * "unixVer": "x"
959
- * },
960
- * "jd": {
961
- * "hostVer": "",
962
- * "uniVer": "√",
963
- * "unixVer": "x"
964
- * }
965
- * },
966
- * "web": {
967
- * "uniVer": "√",
968
- * "unixVer": "4.0"
969
- * }
970
- * }
971
- */
972
- horizontalAccuracy: number,
973
- /**
974
- * 地址信息
975
- * @defaultValue null
976
- * @uniPlatform {
977
- * "app": {
978
- * "android": {
979
- * "osVer": "5.0",
980
- * "uniVer": "√",
981
- * "unixVer": "3.9.0"
982
- * },
983
- * "ios": {
984
- * "osVer": "12.0",
985
- * "uniVer": "√",
986
- * "unixVer": "4.11"
987
- * },
988
- * "harmony": {
989
- * "osVer": "x",
990
- * "uniVer": "x",
991
- * "unixVer": "x"
992
- * }
993
- * },
994
- * "mp": {
995
- * "weixin": {
996
- * "hostVer": "",
997
- * "uniVer": "x",
998
- * "unixVer": "x"
999
- * },
1000
- * "alipay": {
1001
- * "hostVer": "",
1002
- * "uniVer": "x",
1003
- * "unixVer": "x"
1004
- * },
1005
- * "baidu": {
1006
- * "hostVer": "",
1007
- * "uniVer": "x",
1008
- * "unixVer": "x"
1009
- * },
1010
- * "toutiao": {
1011
- * "hostVer": "",
1012
- * "uniVer": "x",
1013
- * "unixVer": "x"
1014
- * },
1015
- * "lark": {
1016
- * "hostVer": "",
1017
- * "uniVer": "x",
1018
- * "unixVer": "x"
1019
- * },
1020
- * "qq": {
1021
- * "hostVer": "",
1022
- * "uniVer": "x",
1023
- * "unixVer": "x"
1024
- * },
1025
- * "kuaishou": {
1026
- * "hostVer": "",
1027
- * "uniVer": "x",
1028
- * "unixVer": "x"
1029
- * },
1030
- * "jd": {
1031
- * "hostVer": "",
1032
- * "uniVer": "x",
1033
- * "unixVer": "x"
1034
- * }
1035
- * },
1036
- * "web": {
1037
- * "uniVer": "x",
1038
- * "unixVer": "x"
1039
- * }
1040
- * }
1041
- */
1042
- address: string | null
1043
- };
1044
- type GetLocationSuccessCallback = (result: GetLocationSuccess) => void;
1045
- type GetLocationFailCallback = (result: GetLocationFail) => void;
1046
- type GetLocationComplete = any;
1047
- type GetLocationCompleteCallback = (result: GetLocationComplete) => void;
1048
- export type GetLocationOptions = {
1049
- /**
1050
- * 定位服务提供商,通过 [uni.getProvider](https://doc.dcloud.net.cn/uni-app-x/api/provider.html) 获取,目前支持系统定位(system)、腾讯定位(tencent)
1051
- * 腾讯定位是4.25版本后支持的;
1052
- * web端暂不支持provider机制;
1053
- * @defaultValue system
1054
- * @uniPlatform {
1055
- * "app": {
1056
- * "android": {
1057
- * "osVer": "5.0",
1058
- * "uniVer": "√",
1059
- * "unixVer": "4.25"
1060
- * },
1061
- * "ios": {
1062
- * "osVer": "12.0",
1063
- * "uniVer": "√",
1064
- * "unixVer": "4.25"
1065
- * },
1066
- * "harmony": {
1067
- * "osVer": "x",
1068
- * "uniVer": "x",
1069
- * "unixVer": "x"
1070
- * }
1071
- * },
1072
- * "mp": {
1073
- * "weixin": {
1074
- * "hostVer": "",
1075
- * "uniVer": "x",
1076
- * "unixVer": "x"
1077
- * },
1078
- * "alipay": {
1079
- * "hostVer": "",
1080
- * "uniVer": "x",
1081
- * "unixVer": "x"
1082
- * },
1083
- * "baidu": {
1084
- * "hostVer": "",
1085
- * "uniVer": "x",
1086
- * "unixVer": "x"
1087
- * },
1088
- * "toutiao": {
1089
- * "hostVer": "",
1090
- * "uniVer": "x",
1091
- * "unixVer": "x"
1092
- * },
1093
- * "lark": {
1094
- * "hostVer": "",
1095
- * "uniVer": "x",
1096
- * "unixVer": "x"
1097
- * },
1098
- * "qq": {
1099
- * "hostVer": "",
1100
- * "uniVer": "x",
1101
- * "unixVer": "x"
1102
- * },
1103
- * "kuaishou": {
1104
- * "hostVer": "",
1105
- * "uniVer": "x",
1106
- * "unixVer": "x"
1107
- * },
1108
- * "jd": {
1109
- * "hostVer": "",
1110
- * "uniVer": "x",
1111
- * "unixVer": "x"
1112
- * }
1113
- * },
1114
- * "web": {
1115
- * "uniVer": "x",
1116
- * "unixVer": "x"
1117
- * }
1118
- * }
1119
- */
1120
- provider?: string | null,
1121
- /**
1122
- * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02;
1123
- * @defaultValue wgs84
1124
- * @uniPlatform {
1125
- * "app": {
1126
- * "android": {
1127
- * "osVer": "5.0",
1128
- * "uniVer": "√",
1129
- * "unixVer": "3.9.0"
1130
- * },
1131
- * "ios": {
1132
- * "osVer": "12.0",
1133
- * "uniVer": "√",
1134
- * "unixVer": "4.11"
1135
- * },
1136
- * "harmony": {
1137
- * "osVer": "x",
1138
- * "uniVer": "4.25",
1139
- * "unixVer": "4.61"
1140
- * }
1141
- * },
1142
- * "mp": {
1143
- * "weixin": {
1144
- * "hostVer": "",
1145
- * "uniVer": "√",
1146
- * "unixVer": "4.41"
1147
- * },
1148
- * "alipay": {
1149
- * "hostVer": "",
1150
- * "uniVer": "√",
1151
- * "unixVer": "x"
1152
- * },
1153
- * "baidu": {
1154
- * "hostVer": "",
1155
- * "uniVer": "√",
1156
- * "unixVer": "x"
1157
- * },
1158
- * "toutiao": {
1159
- * "hostVer": "",
1160
- * "uniVer": "√",
1161
- * "unixVer": "x"
1162
- * },
1163
- * "lark": {
1164
- * "hostVer": "",
1165
- * "uniVer": "√",
1166
- * "unixVer": "x"
1167
- * },
1168
- * "qq": {
1169
- * "hostVer": "",
1170
- * "uniVer": "√",
1171
- * "unixVer": "x"
1172
- * },
1173
- * "kuaishou": {
1174
- * "hostVer": "",
1175
- * "uniVer": "√",
1176
- * "unixVer": "x"
1177
- * },
1178
- * "jd": {
1179
- * "hostVer": "",
1180
- * "uniVer": "√",
1181
- * "unixVer": "x"
1182
- * }
1183
- * },
1184
- * "web": {
1185
- * "uniVer": "√",
1186
- * "unixVer": "4.0"
1187
- * }
1188
- * }
1189
- */
1190
- type?:
1191
- /**
1192
- * wgs84坐标系,系统定位默认取值wgs84,系统定位仅支持wgs84坐标系
1193
- * @uniPlatform {
1194
- * "app": {
1195
- * "android": {
1196
- * "osVer": "5.0",
1197
- * "uniVer": "√",
1198
- * "unixVer": "3.9.0"
1199
- * },
1200
- * "ios": {
1201
- * "osVer": "12.0",
1202
- * "uniVer": "√",
1203
- * "unixVer": "4.11"
1204
- * }
1205
- * },
1206
- * "mp": {
1207
- * "weixin": {
1208
- * "hostVer": "",
1209
- * "uniVer": "√",
1210
- * "unixVer": "4.41"
1211
- * },
1212
- * "alipay": {
1213
- * "hostVer": "",
1214
- * "uniVer": "√",
1215
- * "unixVer": "x"
1216
- * },
1217
- * "baidu": {
1218
- * "hostVer": "",
1219
- * "uniVer": "√",
1220
- * "unixVer": "x"
1221
- * },
1222
- * "toutiao": {
1223
- * "hostVer": "",
1224
- * "uniVer": "√",
1225
- * "unixVer": "x"
1226
- * },
1227
- * "lark": {
1228
- * "hostVer": "",
1229
- * "uniVer": "√",
1230
- * "unixVer": "x"
1231
- * },
1232
- * "qq": {
1233
- * "hostVer": "",
1234
- * "uniVer": "√",
1235
- * "unixVer": "x"
1236
- * },
1237
- * "kuaishou": {
1238
- * "hostVer": "",
1239
- * "uniVer": "√",
1240
- * "unixVer": "x"
1241
- * },
1242
- * "jd": {
1243
- * "hostVer": "",
1244
- * "uniVer": "√",
1245
- * "unixVer": "x"
1246
- * }
1247
- * },
1248
- * "web": {
1249
- * "uniVer": "√",
1250
- * "unixVer": "4.0"
1251
- * }
1252
- * }
1253
- */
1254
- "wgs84" |
1255
- /**
1256
- * gcj02坐标系,腾讯定位默认取值gcj02,腾讯定位仅支持gcj02坐标系
1257
- * @uniPlatform {
1258
- * "app": {
1259
- * "android": {
1260
- * "osVer": "5.0",
1261
- * "uniVer": "√",
1262
- * "unixVer": "3.9.0"
1263
- * },
1264
- * "ios": {
1265
- * "osVer": "12.0",
1266
- * "uniVer": "√",
1267
- * "unixVer": "4.11"
1268
- * }
1269
- * },
1270
- * "mp": {
1271
- * "weixin": {
1272
- * "hostVer": "",
1273
- * "uniVer": "√",
1274
- * "unixVer": "4.41"
1275
- * },
1276
- * "alipay": {
1277
- * "hostVer": "",
1278
- * "uniVer": "√",
1279
- * "unixVer": "x"
1280
- * },
1281
- * "baidu": {
1282
- * "hostVer": "",
1283
- * "uniVer": "√",
1284
- * "unixVer": "x"
1285
- * },
1286
- * "toutiao": {
1287
- * "hostVer": "",
1288
- * "uniVer": "√",
1289
- * "unixVer": "x"
1290
- * },
1291
- * "lark": {
1292
- * "hostVer": "",
1293
- * "uniVer": "√",
1294
- * "unixVer": "x"
1295
- * },
1296
- * "qq": {
1297
- * "hostVer": "",
1298
- * "uniVer": "√",
1299
- * "unixVer": "x"
1300
- * },
1301
- * "kuaishou": {
1302
- * "hostVer": "",
1303
- * "uniVer": "√",
1304
- * "unixVer": "x"
1305
- * },
1306
- * "jd": {
1307
- * "hostVer": "",
1308
- * "uniVer": "√",
1309
- * "unixVer": "x"
1310
- * }
1311
- * },
1312
- * "web": {
1313
- * "uniVer": "√",
1314
- * "unixVer": "4.0"
1315
- * }
1316
- * }
1317
- */
1318
- "gcj02" | null,
1319
- /**
1320
- * 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
1321
- * @type boolean
1322
- * @defaultValue false
1323
- * @uniPlatform {
1324
- * "app": {
1325
- * "android": {
1326
- * "osVer": "5.0",
1327
- * "uniVer": "√",
1328
- * "unixVer": "3.9.0"
1329
- * },
1330
- * "ios": {
1331
- * "osVer": "12.0",
1332
- * "uniVer": "√",
1333
- * "unixVer": "4.11"
1334
- * },
1335
- * "harmony": {
1336
- * "osVer": "x",
1337
- * "uniVer": "4.25",
1338
- * "unixVer": "4.61"
1339
- * }
1340
- * },
1341
- * "mp": {
1342
- * "weixin": {
1343
- * "hostVer": "",
1344
- * "uniVer": "√",
1345
- * "unixVer": "4.41"
1346
- * },
1347
- * "alipay": {
1348
- * "hostVer": "",
1349
- * "uniVer": "√",
1350
- * "unixVer": "x"
1351
- * },
1352
- * "baidu": {
1353
- * "hostVer": "",
1354
- * "uniVer": "√",
1355
- * "unixVer": "x"
1356
- * },
1357
- * "toutiao": {
1358
- * "hostVer": "",
1359
- * "uniVer": "√",
1360
- * "unixVer": "x"
1361
- * },
1362
- * "lark": {
1363
- * "hostVer": "",
1364
- * "uniVer": "√",
1365
- * "unixVer": "x"
1366
- * },
1367
- * "qq": {
1368
- * "hostVer": "",
1369
- * "uniVer": "√",
1370
- * "unixVer": "x"
1371
- * },
1372
- * "kuaishou": {
1373
- * "hostVer": "",
1374
- * "uniVer": "√",
1375
- * "unixVer": "x"
1376
- * },
1377
- * "jd": {
1378
- * "hostVer": "",
1379
- * "uniVer": "√",
1380
- * "unixVer": "x"
1381
- * }
1382
- * },
1383
- * "web": {
1384
- * "uniVer": "√",
1385
- * "unixVer": "4.0"
1386
- * }
1387
- * }
1388
- */
1389
- altitude?: boolean | null,
1390
- /**
1391
- * 传入 true 会解析地址;
1392
- * 使用系统定位时平台差异:iOS支持逆地理编码,Android不支持;
1393
- * @type boolean
1394
- * @defaultValue false
1395
- * @uniPlatform {
1396
- * "app": {
1397
- * "android": {
1398
- * "osVer": "5.0",
1399
- * "uniVer": "√",
1400
- * "unixVer": "3.9.0"
1401
- * },
1402
- * "ios": {
1403
- * "osVer": "12.0",
1404
- * "uniVer": "√",
1405
- * "unixVer": "4.11"
1406
- * },
1407
- * "harmony": {
1408
- * "osVer": "x",
1409
- * "uniVer": "x",
1410
- * "unixVer": "x"
1411
- * }
1412
- * },
1413
- * "mp": {
1414
- * "weixin": {
1415
- * "hostVer": "",
1416
- * "uniVer": "x",
1417
- * "unixVer": "x"
1418
- * },
1419
- * "alipay": {
1420
- * "hostVer": "",
1421
- * "uniVer": "x",
1422
- * "unixVer": "x"
1423
- * },
1424
- * "baidu": {
1425
- * "hostVer": "",
1426
- * "uniVer": "x",
1427
- * "unixVer": "x"
1428
- * },
1429
- * "toutiao": {
1430
- * "hostVer": "",
1431
- * "uniVer": "x",
1432
- * "unixVer": "x"
1433
- * },
1434
- * "lark": {
1435
- * "hostVer": "",
1436
- * "uniVer": "x",
1437
- * "unixVer": "x"
1438
- * },
1439
- * "qq": {
1440
- * "hostVer": "",
1441
- * "uniVer": "x",
1442
- * "unixVer": "x"
1443
- * },
1444
- * "kuaishou": {
1445
- * "hostVer": "",
1446
- * "uniVer": "x",
1447
- * "unixVer": "x"
1448
- * },
1449
- * "jd": {
1450
- * "hostVer": "",
1451
- * "uniVer": "x",
1452
- * "unixVer": "x"
1453
- * }
1454
- * },
1455
- * "web": {
1456
- * "uniVer": "x",
1457
- * "unixVer": "x"
1458
- * }
1459
- * }
1460
- */
1461
- geocode?: boolean | null,
1462
- /**
1463
- * 高精度定位超时时间(ms),指定时间内返回最高精度,该值3000ms以上高精度定位才有效果
1464
- * @defaultValue 3000
1465
- * @uniPlatform {
1466
- * "app": {
1467
- * "android": {
1468
- * "osVer": "5.0",
1469
- * "uniVer": "√",
1470
- * "unixVer": "3.9.0"
1471
- * },
1472
- * "ios": {
1473
- * "osVer": "12.0",
1474
- * "uniVer": "√",
1475
- * "unixVer": "4.11"
1476
- * },
1477
- * "harmony": {
1478
- * "osVer": "x",
1479
- * "uniVer": "4.25",
1480
- * "unixVer": "4.61"
1481
- * }
1482
- * },
1483
- * "mp": {
1484
- * "weixin": {
1485
- * "hostVer": "",
1486
- * "uniVer": "√",
1487
- * "unixVer": "4.41"
1488
- * },
1489
- * "alipay": {
1490
- * "hostVer": "",
1491
- * "uniVer": "√",
1492
- * "unixVer": "x"
1493
- * },
1494
- * "baidu": {
1495
- * "hostVer": "",
1496
- * "uniVer": "√",
1497
- * "unixVer": "x"
1498
- * },
1499
- * "toutiao": {
1500
- * "hostVer": "",
1501
- * "uniVer": "√",
1502
- * "unixVer": "x"
1503
- * },
1504
- * "lark": {
1505
- * "hostVer": "",
1506
- * "uniVer": "√",
1507
- * "unixVer": "x"
1508
- * },
1509
- * "qq": {
1510
- * "hostVer": "",
1511
- * "uniVer": "√",
1512
- * "unixVer": "x"
1513
- * },
1514
- * "kuaishou": {
1515
- * "hostVer": "",
1516
- * "uniVer": "√",
1517
- * "unixVer": "x"
1518
- * },
1519
- * "jd": {
1520
- * "hostVer": "",
1521
- * "uniVer": "√",
1522
- * "unixVer": "x"
1523
- * }
1524
- * },
1525
- * "web": {
1526
- * "uniVer": "x",
1527
- * "unixVer": "x"
1528
- * }
1529
- * }
1530
- */
1531
- highAccuracyExpireTime?: number | null,
1532
- /**
1533
- * 开启高精度定位
1534
- * @type boolean
1535
- * @defaultValue false
1536
- * @uniPlatform {
1537
- * "app": {
1538
- * "android": {
1539
- * "osVer": "5.0",
1540
- * "uniVer": "√",
1541
- * "unixVer": "3.9.0"
1542
- * },
1543
- * "ios": {
1544
- * "osVer": "12.0",
1545
- * "uniVer": "√",
1546
- * "unixVer": "4.11"
1547
- * },
1548
- * "harmony": {
1549
- * "osVer": "x",
1550
- * "uniVer": "4.25",
1551
- * "unixVer": "4.61"
1552
- * }
1553
- * },
1554
- * "mp": {
1555
- * "weixin": {
1556
- * "hostVer": "",
1557
- * "uniVer": "√",
1558
- * "unixVer": "4.41"
1559
- * },
1560
- * "alipay": {
1561
- * "hostVer": "",
1562
- * "uniVer": "√",
1563
- * "unixVer": "x"
1564
- * },
1565
- * "baidu": {
1566
- * "hostVer": "",
1567
- * "uniVer": "√",
1568
- * "unixVer": "x"
1569
- * },
1570
- * "toutiao": {
1571
- * "hostVer": "",
1572
- * "uniVer": "√",
1573
- * "unixVer": "x"
1574
- * },
1575
- * "lark": {
1576
- * "hostVer": "",
1577
- * "uniVer": "√",
1578
- * "unixVer": "x"
1579
- * },
1580
- * "qq": {
1581
- * "hostVer": "",
1582
- * "uniVer": "√",
1583
- * "unixVer": "x"
1584
- * },
1585
- * "kuaishou": {
1586
- * "hostVer": "",
1587
- * "uniVer": "√",
1588
- * "unixVer": "x"
1589
- * },
1590
- * "jd": {
1591
- * "hostVer": "",
1592
- * "uniVer": "√",
1593
- * "unixVer": "x"
1594
- * }
1595
- * },
1596
- * "web": {
1597
- * "uniVer": "√",
1598
- * "unixVer": "4.0"
1599
- * }
1600
- * }
1601
- */
1602
- isHighAccuracy?: boolean | null,
1603
- /**
1604
- * 接口调用成功的回调函数
1605
- * @uniPlatform {
1606
- * "app": {
1607
- * "android": {
1608
- * "osVer": "5.0",
1609
- * "uniVer": "√",
1610
- * "unixVer": "3.9.0"
1611
- * },
1612
- * "ios": {
1613
- * "osVer": "12.0",
1614
- * "uniVer": "√",
1615
- * "unixVer": "4.11"
1616
- * },
1617
- * "harmony": {
1618
- * "osVer": "x",
1619
- * "uniVer": "4.25",
1620
- * "unixVer": "4.61"
1621
- * }
1622
- * },
1623
- * "mp": {
1624
- * "weixin": {
1625
- * "hostVer": "",
1626
- * "uniVer": "√",
1627
- * "unixVer": "4.41"
1628
- * },
1629
- * "alipay": {
1630
- * "hostVer": "",
1631
- * "uniVer": "√",
1632
- * "unixVer": "x"
1633
- * },
1634
- * "baidu": {
1635
- * "hostVer": "",
1636
- * "uniVer": "√",
1637
- * "unixVer": "x"
1638
- * },
1639
- * "toutiao": {
1640
- * "hostVer": "",
1641
- * "uniVer": "√",
1642
- * "unixVer": "x"
1643
- * },
1644
- * "lark": {
1645
- * "hostVer": "",
1646
- * "uniVer": "√",
1647
- * "unixVer": "x"
1648
- * },
1649
- * "qq": {
1650
- * "hostVer": "",
1651
- * "uniVer": "√",
1652
- * "unixVer": "x"
1653
- * },
1654
- * "kuaishou": {
1655
- * "hostVer": "",
1656
- * "uniVer": "√",
1657
- * "unixVer": "x"
1658
- * },
1659
- * "jd": {
1660
- * "hostVer": "",
1661
- * "uniVer": "√",
1662
- * "unixVer": "x"
1663
- * }
1664
- * },
1665
- * "web": {
1666
- * "uniVer": "√",
1667
- * "unixVer": "4.0"
1668
- * }
1669
- * }
1670
- */
1671
- success?: GetLocationSuccessCallback | null,
1672
- /**
1673
- * 接口调用失败的回调函数
1674
- * @uniPlatform {
1675
- * "app": {
1676
- * "android": {
1677
- * "osVer": "5.0",
1678
- * "uniVer": "√",
1679
- * "unixVer": "3.9.0"
1680
- * },
1681
- * "ios": {
1682
- * "osVer": "12.0",
1683
- * "uniVer": "√",
1684
- * "unixVer": "4.11"
1685
- * },
1686
- * "harmony": {
1687
- * "osVer": "x",
1688
- * "uniVer": "4.25",
1689
- * "unixVer": "4.61"
1690
- * }
1691
- * },
1692
- * "mp": {
1693
- * "weixin": {
1694
- * "hostVer": "",
1695
- * "uniVer": "√",
1696
- * "unixVer": "4.41"
1697
- * },
1698
- * "alipay": {
1699
- * "hostVer": "",
1700
- * "uniVer": "√",
1701
- * "unixVer": "x"
1702
- * },
1703
- * "baidu": {
1704
- * "hostVer": "",
1705
- * "uniVer": "√",
1706
- * "unixVer": "x"
1707
- * },
1708
- * "toutiao": {
1709
- * "hostVer": "",
1710
- * "uniVer": "√",
1711
- * "unixVer": "x"
1712
- * },
1713
- * "lark": {
1714
- * "hostVer": "",
1715
- * "uniVer": "√",
1716
- * "unixVer": "x"
1717
- * },
1718
- * "qq": {
1719
- * "hostVer": "",
1720
- * "uniVer": "√",
1721
- * "unixVer": "x"
1722
- * },
1723
- * "kuaishou": {
1724
- * "hostVer": "",
1725
- * "uniVer": "√",
1726
- * "unixVer": "x"
1727
- * },
1728
- * "jd": {
1729
- * "hostVer": "",
1730
- * "uniVer": "√",
1731
- * "unixVer": "x"
1732
- * }
1733
- * },
1734
- * "web": {
1735
- * "uniVer": "√",
1736
- * "unixVer": "4.0"
1737
- * }
1738
- * }
1739
- */
1740
- fail?: GetLocationFailCallback | null,
1741
- /**
1742
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1743
- * @uniPlatform {
1744
- * "app": {
1745
- * "android": {
1746
- * "osVer": "5.0",
1747
- * "uniVer": "√",
1748
- * "unixVer": "3.9.0"
1749
- * },
1750
- * "ios": {
1751
- * "osVer": "12.0",
1752
- * "uniVer": "√",
1753
- * "unixVer": "4.11"
1754
- * },
1755
- * "harmony": {
1756
- * "osVer": "x",
1757
- * "uniVer": "4.25",
1758
- * "unixVer": "4.61"
1759
- * }
1760
- * },
1761
- * "mp": {
1762
- * "weixin": {
1763
- * "hostVer": "",
1764
- * "uniVer": "√",
1765
- * "unixVer": "4.41"
1766
- * },
1767
- * "alipay": {
1768
- * "hostVer": "",
1769
- * "uniVer": "√",
1770
- * "unixVer": "x"
1771
- * },
1772
- * "baidu": {
1773
- * "hostVer": "",
1774
- * "uniVer": "√",
1775
- * "unixVer": "x"
1776
- * },
1777
- * "toutiao": {
1778
- * "hostVer": "",
1779
- * "uniVer": "√",
1780
- * "unixVer": "x"
1781
- * },
1782
- * "lark": {
1783
- * "hostVer": "",
1784
- * "uniVer": "√",
1785
- * "unixVer": "x"
1786
- * },
1787
- * "qq": {
1788
- * "hostVer": "",
1789
- * "uniVer": "√",
1790
- * "unixVer": "x"
1791
- * },
1792
- * "kuaishou": {
1793
- * "hostVer": "",
1794
- * "uniVer": "√",
1795
- * "unixVer": "x"
1796
- * },
1797
- * "jd": {
1798
- * "hostVer": "",
1799
- * "uniVer": "√",
1800
- * "unixVer": "x"
1801
- * }
1802
- * },
1803
- * "web": {
1804
- * "uniVer": "√",
1805
- * "unixVer": "4.0"
1806
- * }
1807
- * }
1808
- */
1809
- complete?: GetLocationCompleteCallback | null
1810
- };
1
+ import { GetLocationFailImpl as GetLocationFailImplement } from './unierror.uts'
2
+
3
+ export type GetLocationFailImpl = GetLocationFailImplement
4
+
5
+ export interface UniLocationProvider extends Uni { }
6
+
7
+ export interface Uni {
8
+
9
+ /**
10
+ * @description 获取当前的地理位置、速度
11
+ * @param {GetLocation} option
12
+ * @example
13
+ * ```typescript
14
+ * uni.getLocation({
15
+ * type: 'wgs84',
16
+ * success: function (res) {
17
+ * console.log('当前位置的经度:' + res.longitude);
18
+ * console.log('当前位置的纬度:' + res.latitude);
19
+ * }
20
+ * });
21
+ * ```
22
+ * @tutorial http://uniapp.dcloud.io/api/location/location?id=getlocation
23
+ * @uniPlatform {
24
+ * "app": {
25
+ * "android": {
26
+ * "osVer": "5.0",
27
+ * "uniVer": "√",
28
+ * "unixVer": "3.9.0"
29
+ * },
30
+ * "ios": {
31
+ * "osVer": "12.0",
32
+ * "uniVer": "√",
33
+ * "unixVer": "4.11"
34
+ * },
35
+ * "harmony": {
36
+ * "osVer": "x",
37
+ * "uniVer": "4.25",
38
+ * "unixVer": "4.61"
39
+ * }
40
+ * },
41
+ * "mp": {
42
+ * "weixin": {
43
+ * "hostVer": "1.9.6",
44
+ * "uniVer": "√",
45
+ * "unixVer": "4.41"
46
+ * },
47
+ * "alipay": {
48
+ * "hostVer": "√",
49
+ * "uniVer": "√",
50
+ * "unixVer": "x"
51
+ * },
52
+ * "baidu": {
53
+ * "hostVer": "√",
54
+ * "uniVer": "√",
55
+ * "unixVer": "x"
56
+ * },
57
+ * "toutiao": {
58
+ * "hostVer": "√",
59
+ * "uniVer": "√",
60
+ * "unixVer": "x"
61
+ * },
62
+ * "lark": {
63
+ * "hostVer": "√",
64
+ * "uniVer": "√",
65
+ * "unixVer": "x"
66
+ * },
67
+ * "qq": {
68
+ * "hostVer": "√",
69
+ * "uniVer": "√",
70
+ * "unixVer": "x"
71
+ * },
72
+ * "kuaishou": {
73
+ * "hostVer": "√",
74
+ * "uniVer": "√",
75
+ * "unixVer": "x"
76
+ * },
77
+ * "jd": {
78
+ * "hostVer": "√",
79
+ * "uniVer": "√",
80
+ * "unixVer": "x"
81
+ * }
82
+ * },
83
+ * "web": {
84
+ * "uniVer": "√",
85
+ * "unixVer": "4.0"
86
+ * }
87
+ * }
88
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html
89
+ */
90
+ getLocation(options: GetLocationOptions): void;
91
+
92
+ }
93
+
94
+ /**
95
+ * 错误码
96
+ */
97
+ export type LocationErrorCode =
98
+ /**
99
+ * 缺失高精度权限授权(iOS特有)
100
+ * @deprecated 从4.25开始已经废弃
101
+ * @uniPlatform {
102
+ * "app": {
103
+ * "android": {
104
+ * "osVer": "5.0",
105
+ * "uniVer": "√",
106
+ * "unixVer": "3.9.0"
107
+ * },
108
+ * "ios": {
109
+ * "osVer": "12.0",
110
+ * "uniVer": "√",
111
+ * "unixVer": "4.11"
112
+ * },
113
+ * "harmony": {
114
+ * "osVer": "x",
115
+ * "uniVer": "4.25",
116
+ * "unixVer": "4.61"
117
+ * }
118
+ * },
119
+ * "web": {
120
+ * "uniVer": "√",
121
+ * "unixVer": "4.0"
122
+ * }
123
+ * }
124
+ */
125
+ 1505005 |
126
+ /**
127
+ * 超时
128
+ * @deprecated 从4.25开始已经废弃
129
+ * @uniPlatform {
130
+ * "app": {
131
+ * "android": {
132
+ * "osVer": "5.0",
133
+ * "uniVer": "√",
134
+ * "unixVer": "3.9.0"
135
+ * },
136
+ * "ios": {
137
+ * "osVer": "12.0",
138
+ * "uniVer": "√",
139
+ * "unixVer": "4.11"
140
+ * },
141
+ * "harmony": {
142
+ * "osVer": "x",
143
+ * "uniVer": "4.25",
144
+ * "unixVer": "4.61"
145
+ * }
146
+ * },
147
+ * "web": {
148
+ * "uniVer": "√",
149
+ * "unixVer": "4.0"
150
+ * }
151
+ * }
152
+ */
153
+ 1505021 |
154
+ /**
155
+ * 不支持的定位类型
156
+ * @deprecated 从4.25开始已经废弃
157
+ * @uniPlatform {
158
+ * "app": {
159
+ * "android": {
160
+ * "osVer": "5.0",
161
+ * "uniVer": "√",
162
+ * "unixVer": "3.9.0"
163
+ * },
164
+ * "ios": {
165
+ * "osVer": "12.0",
166
+ * "uniVer": "√",
167
+ * "unixVer": "4.11"
168
+ * },
169
+ * "harmony": {
170
+ * "osVer": "x",
171
+ * "uniVer": "4.25",
172
+ * "unixVer": "4.61"
173
+ * }
174
+ * },
175
+ * "web": {
176
+ * "uniVer": "√",
177
+ * "unixVer": "4.0"
178
+ * }
179
+ * }
180
+ */
181
+ 1505022 |
182
+ /**
183
+ * 不支持逆地理编码
184
+ * @uniPlatform {
185
+ * "app": {
186
+ * "android": {
187
+ * "osVer": "5.0",
188
+ * "uniVer": "√",
189
+ * "unixVer": "3.9.0"
190
+ * },
191
+ * "ios": {
192
+ * "osVer": "12.0",
193
+ * "uniVer": "√",
194
+ * "unixVer": "4.11"
195
+ * },
196
+ * "harmony": {
197
+ * "osVer": "x",
198
+ * "uniVer": "4.25",
199
+ * "unixVer": "4.61"
200
+ * }
201
+ * },
202
+ * "web": {
203
+ * "uniVer": "√",
204
+ * "unixVer": "4.0"
205
+ * }
206
+ * }
207
+ */
208
+ 1505023 |
209
+ /**
210
+ * 没有找到具体的定位引擎(GPS_PROVIDER,NETWORK_PROVIDER,PASSIVE_PROVIDER等),请定位开关是否已打开
211
+ * @deprecated 从4.25开始已经废弃
212
+ * @uniPlatform {
213
+ * "app": {
214
+ * "android": {
215
+ * "osVer": "5.0",
216
+ * "uniVer": "√",
217
+ * "unixVer": "3.9.0"
218
+ * },
219
+ * "ios": {
220
+ * "osVer": "12.0",
221
+ * "uniVer": "√",
222
+ * "unixVer": "4.11"
223
+ * },
224
+ * "harmony": {
225
+ * "osVer": "x",
226
+ * "uniVer": "4.25",
227
+ * "unixVer": "4.61"
228
+ * }
229
+ * },
230
+ * "web": {
231
+ * "uniVer": "√",
232
+ * "unixVer": "4.0"
233
+ * }
234
+ * }
235
+ */
236
+ 1505024 |
237
+ /**
238
+ * 逆地理编码捕获失败
239
+ * @deprecated 从4.25开始已经废弃
240
+ * @uniPlatform {
241
+ * "app": {
242
+ * "android": {
243
+ * "osVer": "5.0",
244
+ * "uniVer": "√",
245
+ * "unixVer": "3.9.0"
246
+ * },
247
+ * "ios": {
248
+ * "osVer": "12.0",
249
+ * "uniVer": "√",
250
+ * "unixVer": "4.11"
251
+ * },
252
+ * "harmony": {
253
+ * "osVer": "x",
254
+ * "uniVer": "4.25",
255
+ * "unixVer": "4.61"
256
+ * }
257
+ * },
258
+ * "web": {
259
+ * "uniVer": "√",
260
+ * "unixVer": "4.0"
261
+ * }
262
+ * }
263
+ */
264
+ 1505025 |
265
+ /**
266
+ * 捕获定位失败
267
+ * @deprecated 从4.25开始已经废弃
268
+ * @uniPlatform {
269
+ * "app": {
270
+ * "android": {
271
+ * "osVer": "5.0",
272
+ * "uniVer": "√",
273
+ * "unixVer": "3.9.0"
274
+ * },
275
+ * "ios": {
276
+ * "osVer": "12.0",
277
+ * "uniVer": "√",
278
+ * "unixVer": "4.11"
279
+ * },
280
+ * "harmony": {
281
+ * "osVer": "x",
282
+ * "uniVer": "4.25",
283
+ * "unixVer": "4.61"
284
+ * }
285
+ * },
286
+ * "web": {
287
+ * "uniVer": "√",
288
+ * "unixVer": "4.0"
289
+ * }
290
+ * }
291
+ */
292
+ 1505026 |
293
+ /**
294
+ * 系统定位未开启,请在系统设置中开启系统定位
295
+ * @uniPlatform {
296
+ * "app": {
297
+ * "android": {
298
+ * "osVer": "5.0",
299
+ * "uniVer": "√",
300
+ * "unixVer": "4.25"
301
+ * },
302
+ * "ios": {
303
+ * "osVer": "12.0",
304
+ * "uniVer": "√",
305
+ * "unixVer": "4.25"
306
+ * }
307
+ * }
308
+ * }
309
+ */
310
+ 1505003 |
311
+ /**
312
+ * 应用定位权限未开启
313
+ * @uniPlatform {
314
+ * "app": {
315
+ * "android": {
316
+ * "osVer": "5.0",
317
+ * "uniVer": "√",
318
+ * "unixVer": "4.25"
319
+ * },
320
+ * "ios": {
321
+ * "osVer": "12.0",
322
+ * "uniVer": "√",
323
+ * "unixVer": "4.25"
324
+ * }
325
+ * }
326
+ * }
327
+ */
328
+ 1505004 |
329
+ /**
330
+ * 超时
331
+ * @uniPlatform {
332
+ * "app": {
333
+ * "android": {
334
+ * "osVer": "5.0",
335
+ * "uniVer": "√",
336
+ * "unixVer": "4.25"
337
+ * },
338
+ * "ios": {
339
+ * "osVer": "12.0",
340
+ * "uniVer": "√",
341
+ * "unixVer": "4.25"
342
+ * }
343
+ * }
344
+ * }
345
+ */
346
+ 1505600 |
347
+ /**
348
+ * 不支持的定位类型
349
+ * @uniPlatform {
350
+ * "app": {
351
+ * "android": {
352
+ * "osVer": "5.0",
353
+ * "uniVer": "√",
354
+ * "unixVer": "4.25"
355
+ * },
356
+ * "ios": {
357
+ * "osVer": "12.0",
358
+ * "uniVer": "√",
359
+ * "unixVer": "4.25"
360
+ * }
361
+ * }
362
+ * }
363
+ */
364
+ 1505601 |
365
+ /**
366
+ * 捕获定位失败
367
+ * @uniPlatform {
368
+ * "app": {
369
+ * "android": {
370
+ * "osVer": "5.0",
371
+ * "uniVer": "√",
372
+ * "unixVer": "4.25"
373
+ * },
374
+ * "ios": {
375
+ * "osVer": "12.0",
376
+ * "uniVer": "√",
377
+ * "unixVer": "4.25"
378
+ * }
379
+ * }
380
+ * }
381
+ */
382
+ 1505602 |
383
+ /**
384
+ * 逆地理编码捕获失败
385
+ * @uniPlatform {
386
+ * "app": {
387
+ * "android": {
388
+ * "osVer": "5.0",
389
+ * "uniVer": "√",
390
+ * "unixVer": "4.25"
391
+ * },
392
+ * "ios": {
393
+ * "osVer": "12.0",
394
+ * "uniVer": "√",
395
+ * "unixVer": "4.25"
396
+ * }
397
+ * }
398
+ * }
399
+ */
400
+ 1505603 |
401
+ /**
402
+ * 服务供应商获取失败
403
+ * @uniPlatform {
404
+ * "app": {
405
+ * "android": {
406
+ * "osVer": "5.0",
407
+ * "uniVer": "√",
408
+ * "unixVer": "4.25"
409
+ * },
410
+ * "ios": {
411
+ * "osVer": "12.0",
412
+ * "uniVer": "√",
413
+ * "unixVer": "4.25"
414
+ * }
415
+ * }
416
+ * }
417
+ */
418
+ 1505604 |
419
+ /**
420
+ * 不支持逆地理编码
421
+ * @uniPlatform {
422
+ * "app": {
423
+ * "android": {
424
+ * "osVer": "5.0",
425
+ * "uniVer": "√",
426
+ * "unixVer": "4.25"
427
+ * },
428
+ * "ios": {
429
+ * "osVer": "12.0",
430
+ * "uniVer": "√",
431
+ * "unixVer": "4.25"
432
+ * }
433
+ * }
434
+ * }
435
+ */
436
+ 1505700 |
437
+ /**
438
+ * 没有找到具体的定位引擎(GPS_PROVIDER,NETWORK_PROVIDER,PASSIVE_PROVIDER等),请确定系统定位是否开启
439
+ * @uniPlatform {
440
+ * "app": {
441
+ * "android": {
442
+ * "osVer": "5.0",
443
+ * "uniVer": "√",
444
+ * "unixVer": "4.25"
445
+ * },
446
+ * "ios": {
447
+ * "osVer": "12.0",
448
+ * "uniVer": "√",
449
+ * "unixVer": "4.25"
450
+ * }
451
+ * }
452
+ * }
453
+ */
454
+ 1505701 |
455
+ /**
456
+ * 应用高精度定位权限未开启
457
+ * @uniPlatform {
458
+ * "app": {
459
+ * "android": {
460
+ * "osVer": "5.0",
461
+ * "uniVer": "√",
462
+ * "unixVer": "4.25"
463
+ * },
464
+ * "ios": {
465
+ * "osVer": "12.0",
466
+ * "uniVer": "√",
467
+ * "unixVer": "4.25"
468
+ * }
469
+ * }
470
+ * }
471
+ */
472
+ 1505800 |
473
+ /**
474
+ * 未通过配置预校验,通常是腾讯定位 api key 配置错误
475
+ * @uniPlatform {
476
+ * "app": {
477
+ * "android": {
478
+ * "osVer": "5.0",
479
+ * "uniVer": "√",
480
+ * "unixVer": "4.25"
481
+ * },
482
+ * "ios": {
483
+ * "osVer": "12.0",
484
+ * "uniVer": "√",
485
+ * "unixVer": "4.25"
486
+ * }
487
+ * }
488
+ * }
489
+ */
490
+ 1505605 |
491
+ /**
492
+ * 腾讯定位只支持GCJ-02
493
+ * @uniPlatform {
494
+ * "app": {
495
+ * "android": {
496
+ * "osVer": "5.0",
497
+ * "uniVer": "√",
498
+ * "unixVer": "4.25"
499
+ * },
500
+ * "ios": {
501
+ * "osVer": "12.0",
502
+ * "uniVer": "√",
503
+ * "unixVer": "4.25"
504
+ * }
505
+ * }
506
+ * }
507
+ */
508
+ 1505607;
509
+
510
+ /**
511
+ * 网络请求失败的错误回调参数
512
+ * @uniPlatform {
513
+ * "mp": {
514
+ * "weixin": {
515
+ * "hostVer": "√",
516
+ * "uniVer": "√",
517
+ * "unixVer": "4.41"
518
+ * },
519
+ * "alipay": {
520
+ * "hostVer": "-",
521
+ * "uniVer": "-",
522
+ * "unixVer": "-"
523
+ * },
524
+ * "baidu": {
525
+ * "hostVer": "-",
526
+ * "uniVer": "-",
527
+ * "unixVer": "-"
528
+ * },
529
+ * "toutiao": {
530
+ * "hostVer": "-",
531
+ * "uniVer": "-",
532
+ * "unixVer": "-"
533
+ * },
534
+ * "lark": {
535
+ * "hostVer": "-",
536
+ * "uniVer": "-",
537
+ * "unixVer": "-"
538
+ * },
539
+ * "qq": {
540
+ * "hostVer": "-",
541
+ * "uniVer": "-",
542
+ * "unixVer": "-"
543
+ * },
544
+ * "kuaishou": {
545
+ * "hostVer": "-",
546
+ * "uniVer": "-",
547
+ * "unixVer": "-"
548
+ * },
549
+ * "jd": {
550
+ * "hostVer": "-",
551
+ * "uniVer": "-",
552
+ * "unixVer": "-"
553
+ * }
554
+ * }
555
+ * }
556
+ */
557
+ export interface IGetLocationFail extends IUniError {
558
+ errCode: LocationErrorCode
559
+ };
560
+
561
+ export type GetLocationFail = IGetLocationFail
562
+
563
+
564
+ export type GetLocation = (options: GetLocationOptions) => void;
565
+ export type GetLocationSuccess = {
566
+ /**
567
+ * 纬度,浮点数,范围为-90~90,负数表示南纬
568
+ * @defaultValue 0
569
+ * @uniPlatform {
570
+ * "app": {
571
+ * "android": {
572
+ * "osVer": "5.0",
573
+ * "uniVer": "√",
574
+ * "unixVer": "3.9.0"
575
+ * },
576
+ * "ios": {
577
+ * "osVer": "12.0",
578
+ * "uniVer": "√",
579
+ * "unixVer": "4.11"
580
+ * },
581
+ * "harmony": {
582
+ * "osVer": "x",
583
+ * "uniVer": "4.25",
584
+ * "unixVer": "4.61"
585
+ * }
586
+ * },
587
+ * "web": {
588
+ * "uniVer": "√",
589
+ * "unixVer": "4.0"
590
+ * }
591
+ * }
592
+ */
593
+ latitude: number,
594
+ /**
595
+ * 经度,范围为-180~180,负数表示西经
596
+ * @defaultValue 0
597
+ * @uniPlatform {
598
+ * "app": {
599
+ * "android": {
600
+ * "osVer": "5.0",
601
+ * "uniVer": "√",
602
+ * "unixVer": "3.9.0"
603
+ * },
604
+ * "ios": {
605
+ * "osVer": "12.0",
606
+ * "uniVer": "√",
607
+ * "unixVer": "4.11"
608
+ * },
609
+ * "harmony": {
610
+ * "osVer": "x",
611
+ * "uniVer": "4.25",
612
+ * "unixVer": "4.61"
613
+ * }
614
+ * },
615
+ * "web": {
616
+ * "uniVer": "√",
617
+ * "unixVer": "4.0"
618
+ * }
619
+ * }
620
+ */
621
+ longitude: number,
622
+ /**
623
+ * 速度,浮点数,单位m/s
624
+ * @defaultValue 0
625
+ * @uniPlatform {
626
+ * "app": {
627
+ * "android": {
628
+ * "osVer": "5.0",
629
+ * "uniVer": "√",
630
+ * "unixVer": "3.9.0"
631
+ * },
632
+ * "ios": {
633
+ * "osVer": "12.0",
634
+ * "uniVer": "√",
635
+ * "unixVer": "4.11"
636
+ * },
637
+ * "harmony": {
638
+ * "osVer": "x",
639
+ * "uniVer": "4.25",
640
+ * "unixVer": "4.61"
641
+ * }
642
+ * },
643
+ * "mp": {
644
+ * "weixin": {
645
+ * "hostVer": "√",
646
+ * "uniVer": "√",
647
+ * "unixVer": "4.41"
648
+ * },
649
+ * "alipay": {
650
+ * "hostVer": "√",
651
+ * "uniVer": "√",
652
+ * "unixVer": "x"
653
+ * },
654
+ * "baidu": {
655
+ * "hostVer": "√",
656
+ * "uniVer": "√",
657
+ * "unixVer": "x"
658
+ * },
659
+ * "toutiao": {
660
+ * "hostVer": "√",
661
+ * "uniVer": "√",
662
+ * "unixVer": "x"
663
+ * },
664
+ * "lark": {
665
+ * "hostVer": "√",
666
+ * "uniVer": "√",
667
+ * "unixVer": "x"
668
+ * },
669
+ * "qq": {
670
+ * "hostVer": "√",
671
+ * "uniVer": "√",
672
+ * "unixVer": "x"
673
+ * },
674
+ * "kuaishou": {
675
+ * "hostVer": "√",
676
+ * "uniVer": "√",
677
+ * "unixVer": "x"
678
+ * },
679
+ * "jd": {
680
+ * "hostVer": "√",
681
+ * "uniVer": "√",
682
+ * "unixVer": "x"
683
+ * }
684
+ * },
685
+ * "web": {
686
+ * "uniVer": "√",
687
+ * "unixVer": "4.0"
688
+ * }
689
+ * }
690
+ */
691
+ speed: number,
692
+ /**
693
+ * 位置的精确度
694
+ * @uniPlatform {
695
+ * "app": {
696
+ * "android": {
697
+ * "osVer": "5.0",
698
+ * "uniVer": "√",
699
+ * "unixVer": "3.9.0"
700
+ * },
701
+ * "ios": {
702
+ * "osVer": "12.0",
703
+ * "uniVer": "√",
704
+ * "unixVer": "4.11"
705
+ * },
706
+ * "harmony": {
707
+ * "osVer": "x",
708
+ * "uniVer": "4.25",
709
+ * "unixVer": "4.61"
710
+ * }
711
+ * },
712
+ * "mp": {
713
+ * "weixin": {
714
+ * "hostVer": "√",
715
+ * "uniVer": "√",
716
+ * "unixVer": "4.41"
717
+ * },
718
+ * "alipay": {
719
+ * "hostVer": "√",
720
+ * "uniVer": "√",
721
+ * "unixVer": "x"
722
+ * },
723
+ * "baidu": {
724
+ * "hostVer": "√",
725
+ * "uniVer": "√",
726
+ * "unixVer": "x"
727
+ * },
728
+ * "toutiao": {
729
+ * "hostVer": "√",
730
+ * "uniVer": "√",
731
+ * "unixVer": "x"
732
+ * },
733
+ * "lark": {
734
+ * "hostVer": "√",
735
+ * "uniVer": "√",
736
+ * "unixVer": "x"
737
+ * },
738
+ * "qq": {
739
+ * "hostVer": "√",
740
+ * "uniVer": "√",
741
+ * "unixVer": "x"
742
+ * },
743
+ * "kuaishou": {
744
+ * "hostVer": "√",
745
+ * "uniVer": "√",
746
+ * "unixVer": "x"
747
+ * },
748
+ * "jd": {
749
+ * "hostVer": "√",
750
+ * "uniVer": "√",
751
+ * "unixVer": "x"
752
+ * }
753
+ * },
754
+ * "web": {
755
+ * "uniVer": "√",
756
+ * "unixVer": "4.0"
757
+ * }
758
+ * }
759
+ */
760
+ accuracy: number,
761
+ /**
762
+ * 高度,单位 m
763
+ * @defaultValue 0
764
+ * @uniPlatform {
765
+ * "app": {
766
+ * "android": {
767
+ * "osVer": "5.0",
768
+ * "uniVer": "√",
769
+ * "unixVer": "3.9.0"
770
+ * },
771
+ * "ios": {
772
+ * "osVer": "12.0",
773
+ * "uniVer": "√",
774
+ * "unixVer": "4.11"
775
+ * },
776
+ * "harmony": {
777
+ * "osVer": "x",
778
+ * "uniVer": "4.25",
779
+ * "unixVer": "4.61"
780
+ * }
781
+ * },
782
+ * "mp": {
783
+ * "weixin": {
784
+ * "hostVer": "√",
785
+ * "uniVer": "√",
786
+ * "unixVer": "4.41"
787
+ * },
788
+ * "alipay": {
789
+ * "hostVer": "√",
790
+ * "uniVer": "√",
791
+ * "unixVer": "x"
792
+ * },
793
+ * "baidu": {
794
+ * "hostVer": "√",
795
+ * "uniVer": "√",
796
+ * "unixVer": "x"
797
+ * },
798
+ * "toutiao": {
799
+ * "hostVer": "√",
800
+ * "uniVer": "√",
801
+ * "unixVer": "x"
802
+ * },
803
+ * "lark": {
804
+ * "hostVer": "√",
805
+ * "uniVer": "√",
806
+ * "unixVer": "x"
807
+ * },
808
+ * "qq": {
809
+ * "hostVer": "√",
810
+ * "uniVer": "√",
811
+ * "unixVer": "x"
812
+ * },
813
+ * "kuaishou": {
814
+ * "hostVer": "√",
815
+ * "uniVer": "√",
816
+ * "unixVer": "x"
817
+ * },
818
+ * "jd": {
819
+ * "hostVer": "√",
820
+ * "uniVer": "√",
821
+ * "unixVer": "x"
822
+ * }
823
+ * },
824
+ * "web": {
825
+ * "uniVer": "√",
826
+ * "unixVer": "4.0"
827
+ * }
828
+ * }
829
+ */
830
+ altitude: number,
831
+ /**
832
+ * 垂直精度,单位 m(Android 无法获取,返回 0)
833
+ * @defaultValue 0
834
+ * @uniPlatform {
835
+ * "app": {
836
+ * "android": {
837
+ * "osVer": "5.0",
838
+ * "uniVer": "√",
839
+ * "unixVer": "3.9.0"
840
+ * },
841
+ * "ios": {
842
+ * "osVer": "12.0",
843
+ * "uniVer": "√",
844
+ * "unixVer": "4.11"
845
+ * },
846
+ * "harmony": {
847
+ * "osVer": "x",
848
+ * "uniVer": "x",
849
+ * "unixVer": "x"
850
+ * }
851
+ * },
852
+ * "mp": {
853
+ * "weixin": {
854
+ * "hostVer": "√",
855
+ * "uniVer": "√",
856
+ * "unixVer": "4.41"
857
+ * },
858
+ * "alipay": {
859
+ * "hostVer": "√",
860
+ * "uniVer": "√",
861
+ * "unixVer": "x"
862
+ * },
863
+ * "baidu": {
864
+ * "hostVer": "√",
865
+ * "uniVer": "√",
866
+ * "unixVer": "x"
867
+ * },
868
+ * "toutiao": {
869
+ * "hostVer": "√",
870
+ * "uniVer": "√",
871
+ * "unixVer": "x"
872
+ * },
873
+ * "lark": {
874
+ * "hostVer": "√",
875
+ * "uniVer": "√",
876
+ * "unixVer": "x"
877
+ * },
878
+ * "qq": {
879
+ * "hostVer": "√",
880
+ * "uniVer": "√",
881
+ * "unixVer": "x"
882
+ * },
883
+ * "kuaishou": {
884
+ * "hostVer": "√",
885
+ * "uniVer": "√",
886
+ * "unixVer": "x"
887
+ * },
888
+ * "jd": {
889
+ * "hostVer": "√",
890
+ * "uniVer": "√",
891
+ * "unixVer": "x"
892
+ * }
893
+ * },
894
+ * "web": {
895
+ * "uniVer": "√",
896
+ * "unixVer": "4.0"
897
+ * }
898
+ * }
899
+ */
900
+ verticalAccuracy: number,
901
+ /**
902
+ * 水平精度,单位 m
903
+ * @defaultValue 0
904
+ * @uniPlatform {
905
+ * "app": {
906
+ * "android": {
907
+ * "osVer": "5.0",
908
+ * "uniVer": "√",
909
+ * "unixVer": "3.9.0"
910
+ * },
911
+ * "ios": {
912
+ * "osVer": "12.0",
913
+ * "uniVer": "√",
914
+ * "unixVer": "4.11"
915
+ * },
916
+ * "harmony": {
917
+ * "osVer": "x",
918
+ * "uniVer": "x",
919
+ * "unixVer": "x"
920
+ * }
921
+ * },
922
+ * "mp": {
923
+ * "weixin": {
924
+ * "hostVer": "√",
925
+ * "uniVer": "√",
926
+ * "unixVer": "4.41"
927
+ * },
928
+ * "alipay": {
929
+ * "hostVer": "√",
930
+ * "uniVer": "√",
931
+ * "unixVer": "x"
932
+ * },
933
+ * "baidu": {
934
+ * "hostVer": "√",
935
+ * "uniVer": "√",
936
+ * "unixVer": "x"
937
+ * },
938
+ * "toutiao": {
939
+ * "hostVer": "√",
940
+ * "uniVer": "√",
941
+ * "unixVer": "x"
942
+ * },
943
+ * "lark": {
944
+ * "hostVer": "√",
945
+ * "uniVer": "√",
946
+ * "unixVer": "x"
947
+ * },
948
+ * "qq": {
949
+ * "hostVer": "√",
950
+ * "uniVer": "√",
951
+ * "unixVer": "x"
952
+ * },
953
+ * "kuaishou": {
954
+ * "hostVer": "√",
955
+ * "uniVer": "√",
956
+ * "unixVer": "x"
957
+ * },
958
+ * "jd": {
959
+ * "hostVer": "√",
960
+ * "uniVer": "√",
961
+ * "unixVer": "x"
962
+ * }
963
+ * },
964
+ * "web": {
965
+ * "uniVer": "√",
966
+ * "unixVer": "4.0"
967
+ * }
968
+ * }
969
+ */
970
+ horizontalAccuracy: number,
971
+ /**
972
+ * 地址信息
973
+ * @defaultValue null
974
+ * @uniPlatform {
975
+ * "app": {
976
+ * "android": {
977
+ * "osVer": "5.0",
978
+ * "uniVer": "√",
979
+ * "unixVer": "3.9.0"
980
+ * },
981
+ * "ios": {
982
+ * "osVer": "12.0",
983
+ * "uniVer": "√",
984
+ * "unixVer": "4.11"
985
+ * },
986
+ * "harmony": {
987
+ * "osVer": "x",
988
+ * "uniVer": "x",
989
+ * "unixVer": "x"
990
+ * }
991
+ * },
992
+ * "mp": {
993
+ * "weixin": {
994
+ * "hostVer": "√",
995
+ * "uniVer": "x",
996
+ * "unixVer": "x"
997
+ * },
998
+ * "alipay": {
999
+ * "hostVer": "√",
1000
+ * "uniVer": "x",
1001
+ * "unixVer": "x"
1002
+ * },
1003
+ * "baidu": {
1004
+ * "hostVer": "√",
1005
+ * "uniVer": "x",
1006
+ * "unixVer": "x"
1007
+ * },
1008
+ * "toutiao": {
1009
+ * "hostVer": "√",
1010
+ * "uniVer": "x",
1011
+ * "unixVer": "x"
1012
+ * },
1013
+ * "lark": {
1014
+ * "hostVer": "√",
1015
+ * "uniVer": "x",
1016
+ * "unixVer": "x"
1017
+ * },
1018
+ * "qq": {
1019
+ * "hostVer": "√",
1020
+ * "uniVer": "x",
1021
+ * "unixVer": "x"
1022
+ * },
1023
+ * "kuaishou": {
1024
+ * "hostVer": "√",
1025
+ * "uniVer": "x",
1026
+ * "unixVer": "x"
1027
+ * },
1028
+ * "jd": {
1029
+ * "hostVer": "√",
1030
+ * "uniVer": "x",
1031
+ * "unixVer": "x"
1032
+ * }
1033
+ * },
1034
+ * "web": {
1035
+ * "uniVer": "x",
1036
+ * "unixVer": "x"
1037
+ * }
1038
+ * }
1039
+ */
1040
+ address: string | null
1041
+ };
1042
+ type GetLocationSuccessCallback = (result: GetLocationSuccess) => void;
1043
+ type GetLocationFailCallback = (result: GetLocationFail) => void;
1044
+ type GetLocationComplete = any;
1045
+ type GetLocationCompleteCallback = (result: GetLocationComplete) => void;
1046
+ export type GetLocationOptions = {
1047
+ /**
1048
+ * 定位服务提供商,通过 [uni.getProvider](https://doc.dcloud.net.cn/uni-app-x/api/provider.html) 获取,目前支持系统定位(system)、腾讯定位(tencent)
1049
+ * 腾讯定位是4.25版本后支持的;
1050
+ * web端暂不支持provider机制;
1051
+ * @defaultValue system
1052
+ * @uniPlatform {
1053
+ * "app": {
1054
+ * "android": {
1055
+ * "osVer": "5.0",
1056
+ * "uniVer": "√",
1057
+ * "unixVer": "4.25"
1058
+ * },
1059
+ * "ios": {
1060
+ * "osVer": "12.0",
1061
+ * "uniVer": "√",
1062
+ * "unixVer": "4.25"
1063
+ * },
1064
+ * "harmony": {
1065
+ * "osVer": "x",
1066
+ * "uniVer": "x",
1067
+ * "unixVer": "x"
1068
+ * }
1069
+ * },
1070
+ * "mp": {
1071
+ * "weixin": {
1072
+ * "hostVer": "√",
1073
+ * "uniVer": "x",
1074
+ * "unixVer": "x"
1075
+ * },
1076
+ * "alipay": {
1077
+ * "hostVer": "√",
1078
+ * "uniVer": "x",
1079
+ * "unixVer": "x"
1080
+ * },
1081
+ * "baidu": {
1082
+ * "hostVer": "√",
1083
+ * "uniVer": "x",
1084
+ * "unixVer": "x"
1085
+ * },
1086
+ * "toutiao": {
1087
+ * "hostVer": "√",
1088
+ * "uniVer": "x",
1089
+ * "unixVer": "x"
1090
+ * },
1091
+ * "lark": {
1092
+ * "hostVer": "√",
1093
+ * "uniVer": "x",
1094
+ * "unixVer": "x"
1095
+ * },
1096
+ * "qq": {
1097
+ * "hostVer": "√",
1098
+ * "uniVer": "x",
1099
+ * "unixVer": "x"
1100
+ * },
1101
+ * "kuaishou": {
1102
+ * "hostVer": "√",
1103
+ * "uniVer": "x",
1104
+ * "unixVer": "x"
1105
+ * },
1106
+ * "jd": {
1107
+ * "hostVer": "√",
1108
+ * "uniVer": "x",
1109
+ * "unixVer": "x"
1110
+ * }
1111
+ * },
1112
+ * "web": {
1113
+ * "uniVer": "x",
1114
+ * "unixVer": "x"
1115
+ * }
1116
+ * }
1117
+ */
1118
+ provider?: string | null,
1119
+ /**
1120
+ * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02;
1121
+ * @defaultValue wgs84
1122
+ * @uniPlatform {
1123
+ * "app": {
1124
+ * "android": {
1125
+ * "osVer": "5.0",
1126
+ * "uniVer": "√",
1127
+ * "unixVer": "3.9.0"
1128
+ * },
1129
+ * "ios": {
1130
+ * "osVer": "12.0",
1131
+ * "uniVer": "√",
1132
+ * "unixVer": "4.11"
1133
+ * },
1134
+ * "harmony": {
1135
+ * "osVer": "x",
1136
+ * "uniVer": "4.25",
1137
+ * "unixVer": "4.61"
1138
+ * }
1139
+ * },
1140
+ * "mp": {
1141
+ * "weixin": {
1142
+ * "hostVer": "√",
1143
+ * "uniVer": "√",
1144
+ * "unixVer": "4.41"
1145
+ * },
1146
+ * "alipay": {
1147
+ * "hostVer": "√",
1148
+ * "uniVer": "√",
1149
+ * "unixVer": "x"
1150
+ * },
1151
+ * "baidu": {
1152
+ * "hostVer": "√",
1153
+ * "uniVer": "√",
1154
+ * "unixVer": "x"
1155
+ * },
1156
+ * "toutiao": {
1157
+ * "hostVer": "√",
1158
+ * "uniVer": "√",
1159
+ * "unixVer": "x"
1160
+ * },
1161
+ * "lark": {
1162
+ * "hostVer": "√",
1163
+ * "uniVer": "√",
1164
+ * "unixVer": "x"
1165
+ * },
1166
+ * "qq": {
1167
+ * "hostVer": "√",
1168
+ * "uniVer": "√",
1169
+ * "unixVer": "x"
1170
+ * },
1171
+ * "kuaishou": {
1172
+ * "hostVer": "√",
1173
+ * "uniVer": "√",
1174
+ * "unixVer": "x"
1175
+ * },
1176
+ * "jd": {
1177
+ * "hostVer": "√",
1178
+ * "uniVer": "√",
1179
+ * "unixVer": "x"
1180
+ * }
1181
+ * },
1182
+ * "web": {
1183
+ * "uniVer": "√",
1184
+ * "unixVer": "4.0"
1185
+ * }
1186
+ * }
1187
+ */
1188
+ type?:
1189
+ /**
1190
+ * wgs84坐标系,系统定位默认取值wgs84,系统定位仅支持wgs84坐标系
1191
+ * @uniPlatform {
1192
+ * "app": {
1193
+ * "android": {
1194
+ * "osVer": "5.0",
1195
+ * "uniVer": "√",
1196
+ * "unixVer": "3.9.0"
1197
+ * },
1198
+ * "ios": {
1199
+ * "osVer": "12.0",
1200
+ * "uniVer": "√",
1201
+ * "unixVer": "4.11"
1202
+ * }
1203
+ * },
1204
+ * "mp": {
1205
+ * "weixin": {
1206
+ * "hostVer": "√",
1207
+ * "uniVer": "√",
1208
+ * "unixVer": "4.41"
1209
+ * },
1210
+ * "alipay": {
1211
+ * "hostVer": "√",
1212
+ * "uniVer": "√",
1213
+ * "unixVer": "x"
1214
+ * },
1215
+ * "baidu": {
1216
+ * "hostVer": "√",
1217
+ * "uniVer": "√",
1218
+ * "unixVer": "x"
1219
+ * },
1220
+ * "toutiao": {
1221
+ * "hostVer": "√",
1222
+ * "uniVer": "√",
1223
+ * "unixVer": "x"
1224
+ * },
1225
+ * "lark": {
1226
+ * "hostVer": "√",
1227
+ * "uniVer": "√",
1228
+ * "unixVer": "x"
1229
+ * },
1230
+ * "qq": {
1231
+ * "hostVer": "√",
1232
+ * "uniVer": "√",
1233
+ * "unixVer": "x"
1234
+ * },
1235
+ * "kuaishou": {
1236
+ * "hostVer": "√",
1237
+ * "uniVer": "√",
1238
+ * "unixVer": "x"
1239
+ * },
1240
+ * "jd": {
1241
+ * "hostVer": "√",
1242
+ * "uniVer": "√",
1243
+ * "unixVer": "x"
1244
+ * }
1245
+ * },
1246
+ * "web": {
1247
+ * "uniVer": "√",
1248
+ * "unixVer": "4.0"
1249
+ * }
1250
+ * }
1251
+ */
1252
+ "wgs84" |
1253
+ /**
1254
+ * gcj02坐标系,腾讯定位默认取值gcj02,腾讯定位仅支持gcj02坐标系
1255
+ * @uniPlatform {
1256
+ * "app": {
1257
+ * "android": {
1258
+ * "osVer": "5.0",
1259
+ * "uniVer": "√",
1260
+ * "unixVer": "3.9.0"
1261
+ * },
1262
+ * "ios": {
1263
+ * "osVer": "12.0",
1264
+ * "uniVer": "√",
1265
+ * "unixVer": "4.11"
1266
+ * }
1267
+ * },
1268
+ * "mp": {
1269
+ * "weixin": {
1270
+ * "hostVer": "√",
1271
+ * "uniVer": "√",
1272
+ * "unixVer": "4.41"
1273
+ * },
1274
+ * "alipay": {
1275
+ * "hostVer": "√",
1276
+ * "uniVer": "√",
1277
+ * "unixVer": "x"
1278
+ * },
1279
+ * "baidu": {
1280
+ * "hostVer": "√",
1281
+ * "uniVer": "√",
1282
+ * "unixVer": "x"
1283
+ * },
1284
+ * "toutiao": {
1285
+ * "hostVer": "√",
1286
+ * "uniVer": "√",
1287
+ * "unixVer": "x"
1288
+ * },
1289
+ * "lark": {
1290
+ * "hostVer": "√",
1291
+ * "uniVer": "√",
1292
+ * "unixVer": "x"
1293
+ * },
1294
+ * "qq": {
1295
+ * "hostVer": "√",
1296
+ * "uniVer": "√",
1297
+ * "unixVer": "x"
1298
+ * },
1299
+ * "kuaishou": {
1300
+ * "hostVer": "√",
1301
+ * "uniVer": "√",
1302
+ * "unixVer": "x"
1303
+ * },
1304
+ * "jd": {
1305
+ * "hostVer": "√",
1306
+ * "uniVer": "√",
1307
+ * "unixVer": "x"
1308
+ * }
1309
+ * },
1310
+ * "web": {
1311
+ * "uniVer": "√",
1312
+ * "unixVer": "4.0"
1313
+ * }
1314
+ * }
1315
+ */
1316
+ "gcj02" | null,
1317
+ /**
1318
+ * 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
1319
+ * @type boolean
1320
+ * @defaultValue false
1321
+ * @uniPlatform {
1322
+ * "app": {
1323
+ * "android": {
1324
+ * "osVer": "5.0",
1325
+ * "uniVer": "√",
1326
+ * "unixVer": "3.9.0"
1327
+ * },
1328
+ * "ios": {
1329
+ * "osVer": "12.0",
1330
+ * "uniVer": "√",
1331
+ * "unixVer": "4.11"
1332
+ * },
1333
+ * "harmony": {
1334
+ * "osVer": "x",
1335
+ * "uniVer": "4.25",
1336
+ * "unixVer": "4.61"
1337
+ * }
1338
+ * },
1339
+ * "mp": {
1340
+ * "weixin": {
1341
+ * "hostVer": "√",
1342
+ * "uniVer": "√",
1343
+ * "unixVer": "4.41"
1344
+ * },
1345
+ * "alipay": {
1346
+ * "hostVer": "√",
1347
+ * "uniVer": "√",
1348
+ * "unixVer": "x"
1349
+ * },
1350
+ * "baidu": {
1351
+ * "hostVer": "√",
1352
+ * "uniVer": "√",
1353
+ * "unixVer": "x"
1354
+ * },
1355
+ * "toutiao": {
1356
+ * "hostVer": "√",
1357
+ * "uniVer": "√",
1358
+ * "unixVer": "x"
1359
+ * },
1360
+ * "lark": {
1361
+ * "hostVer": "√",
1362
+ * "uniVer": "√",
1363
+ * "unixVer": "x"
1364
+ * },
1365
+ * "qq": {
1366
+ * "hostVer": "√",
1367
+ * "uniVer": "√",
1368
+ * "unixVer": "x"
1369
+ * },
1370
+ * "kuaishou": {
1371
+ * "hostVer": "√",
1372
+ * "uniVer": "√",
1373
+ * "unixVer": "x"
1374
+ * },
1375
+ * "jd": {
1376
+ * "hostVer": "√",
1377
+ * "uniVer": "√",
1378
+ * "unixVer": "x"
1379
+ * }
1380
+ * },
1381
+ * "web": {
1382
+ * "uniVer": "√",
1383
+ * "unixVer": "4.0"
1384
+ * }
1385
+ * }
1386
+ */
1387
+ altitude?: boolean | null,
1388
+ /**
1389
+ * 传入 true 会解析地址;
1390
+ * 使用系统定位时平台差异:iOS支持逆地理编码,Android不支持;
1391
+ * @type boolean
1392
+ * @defaultValue false
1393
+ * @uniPlatform {
1394
+ * "app": {
1395
+ * "android": {
1396
+ * "osVer": "5.0",
1397
+ * "uniVer": "√",
1398
+ * "unixVer": "3.9.0"
1399
+ * },
1400
+ * "ios": {
1401
+ * "osVer": "12.0",
1402
+ * "uniVer": "√",
1403
+ * "unixVer": "4.11"
1404
+ * },
1405
+ * "harmony": {
1406
+ * "osVer": "x",
1407
+ * "uniVer": "x",
1408
+ * "unixVer": "x"
1409
+ * }
1410
+ * },
1411
+ * "mp": {
1412
+ * "weixin": {
1413
+ * "hostVer": "√",
1414
+ * "uniVer": "x",
1415
+ * "unixVer": "x"
1416
+ * },
1417
+ * "alipay": {
1418
+ * "hostVer": "√",
1419
+ * "uniVer": "x",
1420
+ * "unixVer": "x"
1421
+ * },
1422
+ * "baidu": {
1423
+ * "hostVer": "√",
1424
+ * "uniVer": "x",
1425
+ * "unixVer": "x"
1426
+ * },
1427
+ * "toutiao": {
1428
+ * "hostVer": "√",
1429
+ * "uniVer": "x",
1430
+ * "unixVer": "x"
1431
+ * },
1432
+ * "lark": {
1433
+ * "hostVer": "√",
1434
+ * "uniVer": "x",
1435
+ * "unixVer": "x"
1436
+ * },
1437
+ * "qq": {
1438
+ * "hostVer": "√",
1439
+ * "uniVer": "x",
1440
+ * "unixVer": "x"
1441
+ * },
1442
+ * "kuaishou": {
1443
+ * "hostVer": "√",
1444
+ * "uniVer": "x",
1445
+ * "unixVer": "x"
1446
+ * },
1447
+ * "jd": {
1448
+ * "hostVer": "√",
1449
+ * "uniVer": "x",
1450
+ * "unixVer": "x"
1451
+ * }
1452
+ * },
1453
+ * "web": {
1454
+ * "uniVer": "x",
1455
+ * "unixVer": "x"
1456
+ * }
1457
+ * }
1458
+ */
1459
+ geocode?: boolean | null,
1460
+ /**
1461
+ * 高精度定位超时时间(ms),指定时间内返回最高精度,该值3000ms以上高精度定位才有效果
1462
+ * @defaultValue 3000
1463
+ * @uniPlatform {
1464
+ * "app": {
1465
+ * "android": {
1466
+ * "osVer": "5.0",
1467
+ * "uniVer": "√",
1468
+ * "unixVer": "3.9.0"
1469
+ * },
1470
+ * "ios": {
1471
+ * "osVer": "12.0",
1472
+ * "uniVer": "√",
1473
+ * "unixVer": "4.11"
1474
+ * },
1475
+ * "harmony": {
1476
+ * "osVer": "x",
1477
+ * "uniVer": "4.25",
1478
+ * "unixVer": "4.61"
1479
+ * }
1480
+ * },
1481
+ * "mp": {
1482
+ * "weixin": {
1483
+ * "hostVer": "√",
1484
+ * "uniVer": "√",
1485
+ * "unixVer": "4.41"
1486
+ * },
1487
+ * "alipay": {
1488
+ * "hostVer": "√",
1489
+ * "uniVer": "√",
1490
+ * "unixVer": "x"
1491
+ * },
1492
+ * "baidu": {
1493
+ * "hostVer": "√",
1494
+ * "uniVer": "√",
1495
+ * "unixVer": "x"
1496
+ * },
1497
+ * "toutiao": {
1498
+ * "hostVer": "√",
1499
+ * "uniVer": "√",
1500
+ * "unixVer": "x"
1501
+ * },
1502
+ * "lark": {
1503
+ * "hostVer": "√",
1504
+ * "uniVer": "√",
1505
+ * "unixVer": "x"
1506
+ * },
1507
+ * "qq": {
1508
+ * "hostVer": "√",
1509
+ * "uniVer": "√",
1510
+ * "unixVer": "x"
1511
+ * },
1512
+ * "kuaishou": {
1513
+ * "hostVer": "√",
1514
+ * "uniVer": "√",
1515
+ * "unixVer": "x"
1516
+ * },
1517
+ * "jd": {
1518
+ * "hostVer": "√",
1519
+ * "uniVer": "√",
1520
+ * "unixVer": "x"
1521
+ * }
1522
+ * },
1523
+ * "web": {
1524
+ * "uniVer": "x",
1525
+ * "unixVer": "x"
1526
+ * }
1527
+ * }
1528
+ */
1529
+ highAccuracyExpireTime?: number | null,
1530
+ /**
1531
+ * 开启高精度定位
1532
+ * @type boolean
1533
+ * @defaultValue false
1534
+ * @uniPlatform {
1535
+ * "app": {
1536
+ * "android": {
1537
+ * "osVer": "5.0",
1538
+ * "uniVer": "√",
1539
+ * "unixVer": "3.9.0"
1540
+ * },
1541
+ * "ios": {
1542
+ * "osVer": "12.0",
1543
+ * "uniVer": "√",
1544
+ * "unixVer": "4.11"
1545
+ * },
1546
+ * "harmony": {
1547
+ * "osVer": "x",
1548
+ * "uniVer": "4.25",
1549
+ * "unixVer": "4.61"
1550
+ * }
1551
+ * },
1552
+ * "mp": {
1553
+ * "weixin": {
1554
+ * "hostVer": "√",
1555
+ * "uniVer": "√",
1556
+ * "unixVer": "4.41"
1557
+ * },
1558
+ * "alipay": {
1559
+ * "hostVer": "√",
1560
+ * "uniVer": "√",
1561
+ * "unixVer": "x"
1562
+ * },
1563
+ * "baidu": {
1564
+ * "hostVer": "√",
1565
+ * "uniVer": "√",
1566
+ * "unixVer": "x"
1567
+ * },
1568
+ * "toutiao": {
1569
+ * "hostVer": "√",
1570
+ * "uniVer": "√",
1571
+ * "unixVer": "x"
1572
+ * },
1573
+ * "lark": {
1574
+ * "hostVer": "√",
1575
+ * "uniVer": "√",
1576
+ * "unixVer": "x"
1577
+ * },
1578
+ * "qq": {
1579
+ * "hostVer": "√",
1580
+ * "uniVer": "√",
1581
+ * "unixVer": "x"
1582
+ * },
1583
+ * "kuaishou": {
1584
+ * "hostVer": "√",
1585
+ * "uniVer": "√",
1586
+ * "unixVer": "x"
1587
+ * },
1588
+ * "jd": {
1589
+ * "hostVer": "√",
1590
+ * "uniVer": "√",
1591
+ * "unixVer": "x"
1592
+ * }
1593
+ * },
1594
+ * "web": {
1595
+ * "uniVer": "√",
1596
+ * "unixVer": "4.0"
1597
+ * }
1598
+ * }
1599
+ */
1600
+ isHighAccuracy?: boolean | null,
1601
+ /**
1602
+ * 接口调用成功的回调函数
1603
+ * @uniPlatform {
1604
+ * "app": {
1605
+ * "android": {
1606
+ * "osVer": "5.0",
1607
+ * "uniVer": "√",
1608
+ * "unixVer": "3.9.0"
1609
+ * },
1610
+ * "ios": {
1611
+ * "osVer": "12.0",
1612
+ * "uniVer": "√",
1613
+ * "unixVer": "4.11"
1614
+ * },
1615
+ * "harmony": {
1616
+ * "osVer": "x",
1617
+ * "uniVer": "4.25",
1618
+ * "unixVer": "4.61"
1619
+ * }
1620
+ * },
1621
+ * "mp": {
1622
+ * "weixin": {
1623
+ * "hostVer": "√",
1624
+ * "uniVer": "√",
1625
+ * "unixVer": "4.41"
1626
+ * },
1627
+ * "alipay": {
1628
+ * "hostVer": "√",
1629
+ * "uniVer": "√",
1630
+ * "unixVer": "x"
1631
+ * },
1632
+ * "baidu": {
1633
+ * "hostVer": "√",
1634
+ * "uniVer": "√",
1635
+ * "unixVer": "x"
1636
+ * },
1637
+ * "toutiao": {
1638
+ * "hostVer": "√",
1639
+ * "uniVer": "√",
1640
+ * "unixVer": "x"
1641
+ * },
1642
+ * "lark": {
1643
+ * "hostVer": "√",
1644
+ * "uniVer": "√",
1645
+ * "unixVer": "x"
1646
+ * },
1647
+ * "qq": {
1648
+ * "hostVer": "√",
1649
+ * "uniVer": "√",
1650
+ * "unixVer": "x"
1651
+ * },
1652
+ * "kuaishou": {
1653
+ * "hostVer": "√",
1654
+ * "uniVer": "√",
1655
+ * "unixVer": "x"
1656
+ * },
1657
+ * "jd": {
1658
+ * "hostVer": "√",
1659
+ * "uniVer": "√",
1660
+ * "unixVer": "x"
1661
+ * }
1662
+ * },
1663
+ * "web": {
1664
+ * "uniVer": "√",
1665
+ * "unixVer": "4.0"
1666
+ * }
1667
+ * }
1668
+ */
1669
+ success?: GetLocationSuccessCallback | null,
1670
+ /**
1671
+ * 接口调用失败的回调函数
1672
+ * @uniPlatform {
1673
+ * "app": {
1674
+ * "android": {
1675
+ * "osVer": "5.0",
1676
+ * "uniVer": "√",
1677
+ * "unixVer": "3.9.0"
1678
+ * },
1679
+ * "ios": {
1680
+ * "osVer": "12.0",
1681
+ * "uniVer": "√",
1682
+ * "unixVer": "4.11"
1683
+ * },
1684
+ * "harmony": {
1685
+ * "osVer": "x",
1686
+ * "uniVer": "4.25",
1687
+ * "unixVer": "4.61"
1688
+ * }
1689
+ * },
1690
+ * "mp": {
1691
+ * "weixin": {
1692
+ * "hostVer": "√",
1693
+ * "uniVer": "√",
1694
+ * "unixVer": "4.41"
1695
+ * },
1696
+ * "alipay": {
1697
+ * "hostVer": "√",
1698
+ * "uniVer": "√",
1699
+ * "unixVer": "x"
1700
+ * },
1701
+ * "baidu": {
1702
+ * "hostVer": "√",
1703
+ * "uniVer": "√",
1704
+ * "unixVer": "x"
1705
+ * },
1706
+ * "toutiao": {
1707
+ * "hostVer": "√",
1708
+ * "uniVer": "√",
1709
+ * "unixVer": "x"
1710
+ * },
1711
+ * "lark": {
1712
+ * "hostVer": "√",
1713
+ * "uniVer": "√",
1714
+ * "unixVer": "x"
1715
+ * },
1716
+ * "qq": {
1717
+ * "hostVer": "√",
1718
+ * "uniVer": "√",
1719
+ * "unixVer": "x"
1720
+ * },
1721
+ * "kuaishou": {
1722
+ * "hostVer": "√",
1723
+ * "uniVer": "√",
1724
+ * "unixVer": "x"
1725
+ * },
1726
+ * "jd": {
1727
+ * "hostVer": "√",
1728
+ * "uniVer": "√",
1729
+ * "unixVer": "x"
1730
+ * }
1731
+ * },
1732
+ * "web": {
1733
+ * "uniVer": "√",
1734
+ * "unixVer": "4.0"
1735
+ * }
1736
+ * }
1737
+ */
1738
+ fail?: GetLocationFailCallback | null,
1739
+ /**
1740
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1741
+ * @uniPlatform {
1742
+ * "app": {
1743
+ * "android": {
1744
+ * "osVer": "5.0",
1745
+ * "uniVer": "√",
1746
+ * "unixVer": "3.9.0"
1747
+ * },
1748
+ * "ios": {
1749
+ * "osVer": "12.0",
1750
+ * "uniVer": "√",
1751
+ * "unixVer": "4.11"
1752
+ * },
1753
+ * "harmony": {
1754
+ * "osVer": "x",
1755
+ * "uniVer": "4.25",
1756
+ * "unixVer": "4.61"
1757
+ * }
1758
+ * },
1759
+ * "mp": {
1760
+ * "weixin": {
1761
+ * "hostVer": "√",
1762
+ * "uniVer": "√",
1763
+ * "unixVer": "4.41"
1764
+ * },
1765
+ * "alipay": {
1766
+ * "hostVer": "√",
1767
+ * "uniVer": "√",
1768
+ * "unixVer": "x"
1769
+ * },
1770
+ * "baidu": {
1771
+ * "hostVer": "√",
1772
+ * "uniVer": "√",
1773
+ * "unixVer": "x"
1774
+ * },
1775
+ * "toutiao": {
1776
+ * "hostVer": "√",
1777
+ * "uniVer": "√",
1778
+ * "unixVer": "x"
1779
+ * },
1780
+ * "lark": {
1781
+ * "hostVer": "√",
1782
+ * "uniVer": "√",
1783
+ * "unixVer": "x"
1784
+ * },
1785
+ * "qq": {
1786
+ * "hostVer": "√",
1787
+ * "uniVer": "√",
1788
+ * "unixVer": "x"
1789
+ * },
1790
+ * "kuaishou": {
1791
+ * "hostVer": "√",
1792
+ * "uniVer": "√",
1793
+ * "unixVer": "x"
1794
+ * },
1795
+ * "jd": {
1796
+ * "hostVer": "√",
1797
+ * "uniVer": "√",
1798
+ * "unixVer": "x"
1799
+ * }
1800
+ * },
1801
+ * "web": {
1802
+ * "uniVer": "√",
1803
+ * "unixVer": "4.0"
1804
+ * }
1805
+ * }
1806
+ */
1807
+ complete?: GetLocationCompleteCallback | null
1808
+ };