@dcloudio/uni-app-x 0.7.58 → 0.7.59

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 (138) hide show
  1. package/package.json +6 -2
  2. package/types/index.d.ts +1 -0
  3. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  4. package/types/native/DOMRect.d.ts +60 -10
  5. package/types/native/IUniElement.d.ts +459 -0
  6. package/types/native/UniElement.d.ts +3 -2
  7. package/types/native/UniPage.d.ts +2 -2
  8. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  9. package/types/native/UniWebViewElement.d.ts +3 -1
  10. package/types/native/global.d.ts +8 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +5 -5
  13. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
  14. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
  15. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
  16. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
  17. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
  18. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
  19. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
  20. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
  21. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
  22. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
  23. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
  24. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
  25. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
  26. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
  27. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
  28. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
  29. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
  30. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
  31. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
  32. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
  33. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
  34. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
  35. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
  36. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
  37. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
  38. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
  39. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
  40. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
  41. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
  42. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
  43. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
  44. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
  45. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
  46. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
  47. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
  48. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
  49. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
  50. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
  51. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
  52. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
  53. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
  54. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
  55. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
  56. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
  57. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
  58. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
  59. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
  60. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
  61. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
  62. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
  63. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
  64. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
  65. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
  66. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
  67. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
  68. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
  69. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
  70. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
  71. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
  72. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
  73. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
  74. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
  75. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
  76. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
  77. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
  78. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
  79. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
  80. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
  81. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
  82. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
  83. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
  84. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  85. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  86. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  87. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  88. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  89. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  91. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
  92. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  93. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  94. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  95. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
  96. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  97. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
  98. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  99. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
  100. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
  101. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
  102. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
  103. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  104. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  105. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
  106. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
  107. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  108. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  109. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
  110. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  111. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  112. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  113. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  114. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  115. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
  116. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  117. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  118. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  119. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  120. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  121. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  122. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  123. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  124. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
  125. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
  126. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
  127. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
  128. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
  129. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
  130. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
  131. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
  132. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
  133. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
  137. package/types/uni-cloud/interface.d.ts +229 -0
  138. package/types/vite.d.ts +269 -0
@@ -0,0 +1,1764 @@
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": "√",
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
+ *
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
+ */
513
+ export interface IGetLocationFail extends IUniError {
514
+ errCode: LocationErrorCode
515
+ };
516
+
517
+ export type GetLocationFail = IGetLocationFail
518
+
519
+
520
+ export type GetLocation = (options: GetLocationOptions) => void;
521
+ export type GetLocationSuccess = {
522
+ /**
523
+ * 纬度,浮点数,范围为-90~90,负数表示南纬
524
+ * @defaultValue 0
525
+ * @uniPlatform {
526
+ * "app": {
527
+ * "android": {
528
+ * "osVer": "5.0",
529
+ * "uniVer": "√",
530
+ * "unixVer": "3.9.0"
531
+ * },
532
+ * "ios": {
533
+ * "osVer": "12.0",
534
+ * "uniVer": "√",
535
+ * "unixVer": "4.11"
536
+ * },
537
+ * "harmony": {
538
+ * "osVer": "x",
539
+ * "uniVer": "4.25",
540
+ * "unixVer": "4.61"
541
+ * }
542
+ * },
543
+ * "web": {
544
+ * "uniVer": "√",
545
+ * "unixVer": "4.0"
546
+ * }
547
+ * }
548
+ */
549
+ latitude: number,
550
+ /**
551
+ * 经度,范围为-180~180,负数表示西经
552
+ * @defaultValue 0
553
+ * @uniPlatform {
554
+ * "app": {
555
+ * "android": {
556
+ * "osVer": "5.0",
557
+ * "uniVer": "√",
558
+ * "unixVer": "3.9.0"
559
+ * },
560
+ * "ios": {
561
+ * "osVer": "12.0",
562
+ * "uniVer": "√",
563
+ * "unixVer": "4.11"
564
+ * },
565
+ * "harmony": {
566
+ * "osVer": "x",
567
+ * "uniVer": "4.25",
568
+ * "unixVer": "4.61"
569
+ * }
570
+ * },
571
+ * "web": {
572
+ * "uniVer": "√",
573
+ * "unixVer": "4.0"
574
+ * }
575
+ * }
576
+ */
577
+ longitude: number,
578
+ /**
579
+ * 速度,浮点数,单位m/s
580
+ * @defaultValue 0
581
+ * @uniPlatform {
582
+ * "app": {
583
+ * "android": {
584
+ * "osVer": "5.0",
585
+ * "uniVer": "√",
586
+ * "unixVer": "3.9.0"
587
+ * },
588
+ * "ios": {
589
+ * "osVer": "12.0",
590
+ * "uniVer": "√",
591
+ * "unixVer": "4.11"
592
+ * },
593
+ * "harmony": {
594
+ * "osVer": "x",
595
+ * "uniVer": "4.25",
596
+ * "unixVer": "4.61"
597
+ * }
598
+ * },
599
+ * "mp": {
600
+ * "weixin": {
601
+ * "hostVer": "√",
602
+ * "uniVer": "√",
603
+ * "unixVer": "4.41"
604
+ * },
605
+ * "alipay": {
606
+ * "hostVer": "√",
607
+ * "uniVer": "√",
608
+ * "unixVer": "x"
609
+ * },
610
+ * "baidu": {
611
+ * "hostVer": "√",
612
+ * "uniVer": "√",
613
+ * "unixVer": "x"
614
+ * },
615
+ * "toutiao": {
616
+ * "hostVer": "√",
617
+ * "uniVer": "√",
618
+ * "unixVer": "x"
619
+ * },
620
+ * "lark": {
621
+ * "hostVer": "√",
622
+ * "uniVer": "√",
623
+ * "unixVer": "x"
624
+ * },
625
+ * "qq": {
626
+ * "hostVer": "√",
627
+ * "uniVer": "√",
628
+ * "unixVer": "x"
629
+ * },
630
+ * "kuaishou": {
631
+ * "hostVer": "√",
632
+ * "uniVer": "√",
633
+ * "unixVer": "x"
634
+ * },
635
+ * "jd": {
636
+ * "hostVer": "√",
637
+ * "uniVer": "√",
638
+ * "unixVer": "x"
639
+ * }
640
+ * },
641
+ * "web": {
642
+ * "uniVer": "√",
643
+ * "unixVer": "4.0"
644
+ * }
645
+ * }
646
+ */
647
+ speed: number,
648
+ /**
649
+ * 位置的精确度
650
+ * @uniPlatform {
651
+ * "app": {
652
+ * "android": {
653
+ * "osVer": "5.0",
654
+ * "uniVer": "√",
655
+ * "unixVer": "3.9.0"
656
+ * },
657
+ * "ios": {
658
+ * "osVer": "12.0",
659
+ * "uniVer": "√",
660
+ * "unixVer": "4.11"
661
+ * },
662
+ * "harmony": {
663
+ * "osVer": "x",
664
+ * "uniVer": "4.25",
665
+ * "unixVer": "4.61"
666
+ * }
667
+ * },
668
+ * "mp": {
669
+ * "weixin": {
670
+ * "hostVer": "√",
671
+ * "uniVer": "√",
672
+ * "unixVer": "4.41"
673
+ * },
674
+ * "alipay": {
675
+ * "hostVer": "√",
676
+ * "uniVer": "√",
677
+ * "unixVer": "x"
678
+ * },
679
+ * "baidu": {
680
+ * "hostVer": "√",
681
+ * "uniVer": "√",
682
+ * "unixVer": "x"
683
+ * },
684
+ * "toutiao": {
685
+ * "hostVer": "√",
686
+ * "uniVer": "√",
687
+ * "unixVer": "x"
688
+ * },
689
+ * "lark": {
690
+ * "hostVer": "√",
691
+ * "uniVer": "√",
692
+ * "unixVer": "x"
693
+ * },
694
+ * "qq": {
695
+ * "hostVer": "√",
696
+ * "uniVer": "√",
697
+ * "unixVer": "x"
698
+ * },
699
+ * "kuaishou": {
700
+ * "hostVer": "√",
701
+ * "uniVer": "√",
702
+ * "unixVer": "x"
703
+ * },
704
+ * "jd": {
705
+ * "hostVer": "√",
706
+ * "uniVer": "√",
707
+ * "unixVer": "x"
708
+ * }
709
+ * },
710
+ * "web": {
711
+ * "uniVer": "√",
712
+ * "unixVer": "4.0"
713
+ * }
714
+ * }
715
+ */
716
+ accuracy: number,
717
+ /**
718
+ * 高度,单位 m
719
+ * @defaultValue 0
720
+ * @uniPlatform {
721
+ * "app": {
722
+ * "android": {
723
+ * "osVer": "5.0",
724
+ * "uniVer": "√",
725
+ * "unixVer": "3.9.0"
726
+ * },
727
+ * "ios": {
728
+ * "osVer": "12.0",
729
+ * "uniVer": "√",
730
+ * "unixVer": "4.11"
731
+ * },
732
+ * "harmony": {
733
+ * "osVer": "x",
734
+ * "uniVer": "4.25",
735
+ * "unixVer": "4.61"
736
+ * }
737
+ * },
738
+ * "mp": {
739
+ * "weixin": {
740
+ * "hostVer": "√",
741
+ * "uniVer": "√",
742
+ * "unixVer": "4.41"
743
+ * },
744
+ * "alipay": {
745
+ * "hostVer": "√",
746
+ * "uniVer": "√",
747
+ * "unixVer": "x"
748
+ * },
749
+ * "baidu": {
750
+ * "hostVer": "√",
751
+ * "uniVer": "√",
752
+ * "unixVer": "x"
753
+ * },
754
+ * "toutiao": {
755
+ * "hostVer": "√",
756
+ * "uniVer": "√",
757
+ * "unixVer": "x"
758
+ * },
759
+ * "lark": {
760
+ * "hostVer": "√",
761
+ * "uniVer": "√",
762
+ * "unixVer": "x"
763
+ * },
764
+ * "qq": {
765
+ * "hostVer": "√",
766
+ * "uniVer": "√",
767
+ * "unixVer": "x"
768
+ * },
769
+ * "kuaishou": {
770
+ * "hostVer": "√",
771
+ * "uniVer": "√",
772
+ * "unixVer": "x"
773
+ * },
774
+ * "jd": {
775
+ * "hostVer": "√",
776
+ * "uniVer": "√",
777
+ * "unixVer": "x"
778
+ * }
779
+ * },
780
+ * "web": {
781
+ * "uniVer": "√",
782
+ * "unixVer": "4.0"
783
+ * }
784
+ * }
785
+ */
786
+ altitude: number,
787
+ /**
788
+ * 垂直精度,单位 m(Android 无法获取,返回 0)
789
+ * @defaultValue 0
790
+ * @uniPlatform {
791
+ * "app": {
792
+ * "android": {
793
+ * "osVer": "5.0",
794
+ * "uniVer": "√",
795
+ * "unixVer": "3.9.0"
796
+ * },
797
+ * "ios": {
798
+ * "osVer": "12.0",
799
+ * "uniVer": "√",
800
+ * "unixVer": "4.11"
801
+ * },
802
+ * "harmony": {
803
+ * "osVer": "x",
804
+ * "uniVer": "x",
805
+ * "unixVer": "x"
806
+ * }
807
+ * },
808
+ * "mp": {
809
+ * "weixin": {
810
+ * "hostVer": "√",
811
+ * "uniVer": "√",
812
+ * "unixVer": "4.41"
813
+ * },
814
+ * "alipay": {
815
+ * "hostVer": "√",
816
+ * "uniVer": "√",
817
+ * "unixVer": "x"
818
+ * },
819
+ * "baidu": {
820
+ * "hostVer": "√",
821
+ * "uniVer": "√",
822
+ * "unixVer": "x"
823
+ * },
824
+ * "toutiao": {
825
+ * "hostVer": "√",
826
+ * "uniVer": "√",
827
+ * "unixVer": "x"
828
+ * },
829
+ * "lark": {
830
+ * "hostVer": "√",
831
+ * "uniVer": "√",
832
+ * "unixVer": "x"
833
+ * },
834
+ * "qq": {
835
+ * "hostVer": "√",
836
+ * "uniVer": "√",
837
+ * "unixVer": "x"
838
+ * },
839
+ * "kuaishou": {
840
+ * "hostVer": "√",
841
+ * "uniVer": "√",
842
+ * "unixVer": "x"
843
+ * },
844
+ * "jd": {
845
+ * "hostVer": "√",
846
+ * "uniVer": "√",
847
+ * "unixVer": "x"
848
+ * }
849
+ * },
850
+ * "web": {
851
+ * "uniVer": "√",
852
+ * "unixVer": "4.0"
853
+ * }
854
+ * }
855
+ */
856
+ verticalAccuracy: number,
857
+ /**
858
+ * 水平精度,单位 m
859
+ * @defaultValue 0
860
+ * @uniPlatform {
861
+ * "app": {
862
+ * "android": {
863
+ * "osVer": "5.0",
864
+ * "uniVer": "√",
865
+ * "unixVer": "3.9.0"
866
+ * },
867
+ * "ios": {
868
+ * "osVer": "12.0",
869
+ * "uniVer": "√",
870
+ * "unixVer": "4.11"
871
+ * },
872
+ * "harmony": {
873
+ * "osVer": "x",
874
+ * "uniVer": "x",
875
+ * "unixVer": "x"
876
+ * }
877
+ * },
878
+ * "mp": {
879
+ * "weixin": {
880
+ * "hostVer": "√",
881
+ * "uniVer": "√",
882
+ * "unixVer": "4.41"
883
+ * },
884
+ * "alipay": {
885
+ * "hostVer": "√",
886
+ * "uniVer": "√",
887
+ * "unixVer": "x"
888
+ * },
889
+ * "baidu": {
890
+ * "hostVer": "√",
891
+ * "uniVer": "√",
892
+ * "unixVer": "x"
893
+ * },
894
+ * "toutiao": {
895
+ * "hostVer": "√",
896
+ * "uniVer": "√",
897
+ * "unixVer": "x"
898
+ * },
899
+ * "lark": {
900
+ * "hostVer": "√",
901
+ * "uniVer": "√",
902
+ * "unixVer": "x"
903
+ * },
904
+ * "qq": {
905
+ * "hostVer": "√",
906
+ * "uniVer": "√",
907
+ * "unixVer": "x"
908
+ * },
909
+ * "kuaishou": {
910
+ * "hostVer": "√",
911
+ * "uniVer": "√",
912
+ * "unixVer": "x"
913
+ * },
914
+ * "jd": {
915
+ * "hostVer": "√",
916
+ * "uniVer": "√",
917
+ * "unixVer": "x"
918
+ * }
919
+ * },
920
+ * "web": {
921
+ * "uniVer": "√",
922
+ * "unixVer": "4.0"
923
+ * }
924
+ * }
925
+ */
926
+ horizontalAccuracy: number,
927
+ /**
928
+ * 地址信息
929
+ * @defaultValue null
930
+ * @uniPlatform {
931
+ * "app": {
932
+ * "android": {
933
+ * "osVer": "5.0",
934
+ * "uniVer": "√",
935
+ * "unixVer": "3.9.0"
936
+ * },
937
+ * "ios": {
938
+ * "osVer": "12.0",
939
+ * "uniVer": "√",
940
+ * "unixVer": "4.11"
941
+ * },
942
+ * "harmony": {
943
+ * "osVer": "x",
944
+ * "uniVer": "x",
945
+ * "unixVer": "x"
946
+ * }
947
+ * },
948
+ * "mp": {
949
+ * "weixin": {
950
+ * "hostVer": "√",
951
+ * "uniVer": "x",
952
+ * "unixVer": "x"
953
+ * },
954
+ * "alipay": {
955
+ * "hostVer": "√",
956
+ * "uniVer": "x",
957
+ * "unixVer": "x"
958
+ * },
959
+ * "baidu": {
960
+ * "hostVer": "√",
961
+ * "uniVer": "x",
962
+ * "unixVer": "x"
963
+ * },
964
+ * "toutiao": {
965
+ * "hostVer": "√",
966
+ * "uniVer": "x",
967
+ * "unixVer": "x"
968
+ * },
969
+ * "lark": {
970
+ * "hostVer": "√",
971
+ * "uniVer": "x",
972
+ * "unixVer": "x"
973
+ * },
974
+ * "qq": {
975
+ * "hostVer": "√",
976
+ * "uniVer": "x",
977
+ * "unixVer": "x"
978
+ * },
979
+ * "kuaishou": {
980
+ * "hostVer": "√",
981
+ * "uniVer": "x",
982
+ * "unixVer": "x"
983
+ * },
984
+ * "jd": {
985
+ * "hostVer": "√",
986
+ * "uniVer": "x",
987
+ * "unixVer": "x"
988
+ * }
989
+ * },
990
+ * "web": {
991
+ * "uniVer": "x",
992
+ * "unixVer": "x"
993
+ * }
994
+ * }
995
+ */
996
+ address: string | null
997
+ };
998
+ type GetLocationSuccessCallback = (result: GetLocationSuccess) => void;
999
+ type GetLocationFailCallback = (result: GetLocationFail) => void;
1000
+ type GetLocationComplete = any;
1001
+ type GetLocationCompleteCallback = (result: GetLocationComplete) => void;
1002
+ export type GetLocationOptions = {
1003
+ /**
1004
+ * 定位服务提供商,通过 [uni.getProvider](https://doc.dcloud.net.cn/uni-app-x/api/provider.html) 获取,目前支持系统定位(system)、腾讯定位(tencent)
1005
+ * 腾讯定位是4.25版本后支持的;
1006
+ * web端暂不支持provider机制;
1007
+ * @defaultValue system
1008
+ * @uniPlatform {
1009
+ * "app": {
1010
+ * "android": {
1011
+ * "osVer": "5.0",
1012
+ * "uniVer": "√",
1013
+ * "unixVer": "4.25"
1014
+ * },
1015
+ * "ios": {
1016
+ * "osVer": "12.0",
1017
+ * "uniVer": "√",
1018
+ * "unixVer": "4.25"
1019
+ * },
1020
+ * "harmony": {
1021
+ * "osVer": "x",
1022
+ * "uniVer": "x",
1023
+ * "unixVer": "x"
1024
+ * }
1025
+ * },
1026
+ * "mp": {
1027
+ * "weixin": {
1028
+ * "hostVer": "√",
1029
+ * "uniVer": "x",
1030
+ * "unixVer": "x"
1031
+ * },
1032
+ * "alipay": {
1033
+ * "hostVer": "√",
1034
+ * "uniVer": "x",
1035
+ * "unixVer": "x"
1036
+ * },
1037
+ * "baidu": {
1038
+ * "hostVer": "√",
1039
+ * "uniVer": "x",
1040
+ * "unixVer": "x"
1041
+ * },
1042
+ * "toutiao": {
1043
+ * "hostVer": "√",
1044
+ * "uniVer": "x",
1045
+ * "unixVer": "x"
1046
+ * },
1047
+ * "lark": {
1048
+ * "hostVer": "√",
1049
+ * "uniVer": "x",
1050
+ * "unixVer": "x"
1051
+ * },
1052
+ * "qq": {
1053
+ * "hostVer": "√",
1054
+ * "uniVer": "x",
1055
+ * "unixVer": "x"
1056
+ * },
1057
+ * "kuaishou": {
1058
+ * "hostVer": "√",
1059
+ * "uniVer": "x",
1060
+ * "unixVer": "x"
1061
+ * },
1062
+ * "jd": {
1063
+ * "hostVer": "√",
1064
+ * "uniVer": "x",
1065
+ * "unixVer": "x"
1066
+ * }
1067
+ * },
1068
+ * "web": {
1069
+ * "uniVer": "x",
1070
+ * "unixVer": "x"
1071
+ * }
1072
+ * }
1073
+ */
1074
+ provider?: string | null,
1075
+ /**
1076
+ * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02;
1077
+ * @defaultValue wgs84
1078
+ * @uniPlatform {
1079
+ * "app": {
1080
+ * "android": {
1081
+ * "osVer": "5.0",
1082
+ * "uniVer": "√",
1083
+ * "unixVer": "3.9.0"
1084
+ * },
1085
+ * "ios": {
1086
+ * "osVer": "12.0",
1087
+ * "uniVer": "√",
1088
+ * "unixVer": "4.11"
1089
+ * },
1090
+ * "harmony": {
1091
+ * "osVer": "x",
1092
+ * "uniVer": "4.25",
1093
+ * "unixVer": "4.61"
1094
+ * }
1095
+ * },
1096
+ * "mp": {
1097
+ * "weixin": {
1098
+ * "hostVer": "√",
1099
+ * "uniVer": "√",
1100
+ * "unixVer": "4.41"
1101
+ * },
1102
+ * "alipay": {
1103
+ * "hostVer": "√",
1104
+ * "uniVer": "√",
1105
+ * "unixVer": "x"
1106
+ * },
1107
+ * "baidu": {
1108
+ * "hostVer": "√",
1109
+ * "uniVer": "√",
1110
+ * "unixVer": "x"
1111
+ * },
1112
+ * "toutiao": {
1113
+ * "hostVer": "√",
1114
+ * "uniVer": "√",
1115
+ * "unixVer": "x"
1116
+ * },
1117
+ * "lark": {
1118
+ * "hostVer": "√",
1119
+ * "uniVer": "√",
1120
+ * "unixVer": "x"
1121
+ * },
1122
+ * "qq": {
1123
+ * "hostVer": "√",
1124
+ * "uniVer": "√",
1125
+ * "unixVer": "x"
1126
+ * },
1127
+ * "kuaishou": {
1128
+ * "hostVer": "√",
1129
+ * "uniVer": "√",
1130
+ * "unixVer": "x"
1131
+ * },
1132
+ * "jd": {
1133
+ * "hostVer": "√",
1134
+ * "uniVer": "√",
1135
+ * "unixVer": "x"
1136
+ * }
1137
+ * },
1138
+ * "web": {
1139
+ * "uniVer": "√",
1140
+ * "unixVer": "4.0"
1141
+ * }
1142
+ * }
1143
+ */
1144
+ type?:
1145
+ /**
1146
+ * wgs84坐标系,系统定位默认取值wgs84,系统定位仅支持wgs84坐标系
1147
+ * @uniPlatform {
1148
+ * "app": {
1149
+ * "android": {
1150
+ * "osVer": "5.0",
1151
+ * "uniVer": "√",
1152
+ * "unixVer": "3.9.0"
1153
+ * },
1154
+ * "ios": {
1155
+ * "osVer": "12.0",
1156
+ * "uniVer": "√",
1157
+ * "unixVer": "4.11"
1158
+ * }
1159
+ * },
1160
+ * "mp": {
1161
+ * "weixin": {
1162
+ * "hostVer": "√",
1163
+ * "uniVer": "√",
1164
+ * "unixVer": "4.41"
1165
+ * },
1166
+ * "alipay": {
1167
+ * "hostVer": "√",
1168
+ * "uniVer": "√",
1169
+ * "unixVer": "x"
1170
+ * },
1171
+ * "baidu": {
1172
+ * "hostVer": "√",
1173
+ * "uniVer": "√",
1174
+ * "unixVer": "x"
1175
+ * },
1176
+ * "toutiao": {
1177
+ * "hostVer": "√",
1178
+ * "uniVer": "√",
1179
+ * "unixVer": "x"
1180
+ * },
1181
+ * "lark": {
1182
+ * "hostVer": "√",
1183
+ * "uniVer": "√",
1184
+ * "unixVer": "x"
1185
+ * },
1186
+ * "qq": {
1187
+ * "hostVer": "√",
1188
+ * "uniVer": "√",
1189
+ * "unixVer": "x"
1190
+ * },
1191
+ * "kuaishou": {
1192
+ * "hostVer": "√",
1193
+ * "uniVer": "√",
1194
+ * "unixVer": "x"
1195
+ * },
1196
+ * "jd": {
1197
+ * "hostVer": "√",
1198
+ * "uniVer": "√",
1199
+ * "unixVer": "x"
1200
+ * }
1201
+ * },
1202
+ * "web": {
1203
+ * "uniVer": "√",
1204
+ * "unixVer": "4.0"
1205
+ * }
1206
+ * }
1207
+ */
1208
+ "wgs84" |
1209
+ /**
1210
+ * gcj02坐标系,腾讯定位默认取值gcj02,腾讯定位仅支持gcj02坐标系
1211
+ * @uniPlatform {
1212
+ * "app": {
1213
+ * "android": {
1214
+ * "osVer": "5.0",
1215
+ * "uniVer": "√",
1216
+ * "unixVer": "3.9.0"
1217
+ * },
1218
+ * "ios": {
1219
+ * "osVer": "12.0",
1220
+ * "uniVer": "√",
1221
+ * "unixVer": "4.11"
1222
+ * }
1223
+ * },
1224
+ * "mp": {
1225
+ * "weixin": {
1226
+ * "hostVer": "√",
1227
+ * "uniVer": "√",
1228
+ * "unixVer": "4.41"
1229
+ * },
1230
+ * "alipay": {
1231
+ * "hostVer": "√",
1232
+ * "uniVer": "√",
1233
+ * "unixVer": "x"
1234
+ * },
1235
+ * "baidu": {
1236
+ * "hostVer": "√",
1237
+ * "uniVer": "√",
1238
+ * "unixVer": "x"
1239
+ * },
1240
+ * "toutiao": {
1241
+ * "hostVer": "√",
1242
+ * "uniVer": "√",
1243
+ * "unixVer": "x"
1244
+ * },
1245
+ * "lark": {
1246
+ * "hostVer": "√",
1247
+ * "uniVer": "√",
1248
+ * "unixVer": "x"
1249
+ * },
1250
+ * "qq": {
1251
+ * "hostVer": "√",
1252
+ * "uniVer": "√",
1253
+ * "unixVer": "x"
1254
+ * },
1255
+ * "kuaishou": {
1256
+ * "hostVer": "√",
1257
+ * "uniVer": "√",
1258
+ * "unixVer": "x"
1259
+ * },
1260
+ * "jd": {
1261
+ * "hostVer": "√",
1262
+ * "uniVer": "√",
1263
+ * "unixVer": "x"
1264
+ * }
1265
+ * },
1266
+ * "web": {
1267
+ * "uniVer": "√",
1268
+ * "unixVer": "4.0"
1269
+ * }
1270
+ * }
1271
+ */
1272
+ "gcj02" | null,
1273
+ /**
1274
+ * 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
1275
+ * @type boolean
1276
+ * @defaultValue false
1277
+ * @uniPlatform {
1278
+ * "app": {
1279
+ * "android": {
1280
+ * "osVer": "5.0",
1281
+ * "uniVer": "√",
1282
+ * "unixVer": "3.9.0"
1283
+ * },
1284
+ * "ios": {
1285
+ * "osVer": "12.0",
1286
+ * "uniVer": "√",
1287
+ * "unixVer": "4.11"
1288
+ * },
1289
+ * "harmony": {
1290
+ * "osVer": "x",
1291
+ * "uniVer": "4.25",
1292
+ * "unixVer": "4.61"
1293
+ * }
1294
+ * },
1295
+ * "mp": {
1296
+ * "weixin": {
1297
+ * "hostVer": "√",
1298
+ * "uniVer": "√",
1299
+ * "unixVer": "4.41"
1300
+ * },
1301
+ * "alipay": {
1302
+ * "hostVer": "√",
1303
+ * "uniVer": "√",
1304
+ * "unixVer": "x"
1305
+ * },
1306
+ * "baidu": {
1307
+ * "hostVer": "√",
1308
+ * "uniVer": "√",
1309
+ * "unixVer": "x"
1310
+ * },
1311
+ * "toutiao": {
1312
+ * "hostVer": "√",
1313
+ * "uniVer": "√",
1314
+ * "unixVer": "x"
1315
+ * },
1316
+ * "lark": {
1317
+ * "hostVer": "√",
1318
+ * "uniVer": "√",
1319
+ * "unixVer": "x"
1320
+ * },
1321
+ * "qq": {
1322
+ * "hostVer": "√",
1323
+ * "uniVer": "√",
1324
+ * "unixVer": "x"
1325
+ * },
1326
+ * "kuaishou": {
1327
+ * "hostVer": "√",
1328
+ * "uniVer": "√",
1329
+ * "unixVer": "x"
1330
+ * },
1331
+ * "jd": {
1332
+ * "hostVer": "√",
1333
+ * "uniVer": "√",
1334
+ * "unixVer": "x"
1335
+ * }
1336
+ * },
1337
+ * "web": {
1338
+ * "uniVer": "√",
1339
+ * "unixVer": "4.0"
1340
+ * }
1341
+ * }
1342
+ */
1343
+ altitude?: boolean | null,
1344
+ /**
1345
+ * 传入 true 会解析地址;
1346
+ * 使用系统定位时平台差异:iOS支持逆地理编码,Android不支持;
1347
+ * @type boolean
1348
+ * @defaultValue false
1349
+ * @uniPlatform {
1350
+ * "app": {
1351
+ * "android": {
1352
+ * "osVer": "5.0",
1353
+ * "uniVer": "√",
1354
+ * "unixVer": "3.9.0"
1355
+ * },
1356
+ * "ios": {
1357
+ * "osVer": "12.0",
1358
+ * "uniVer": "√",
1359
+ * "unixVer": "4.11"
1360
+ * },
1361
+ * "harmony": {
1362
+ * "osVer": "x",
1363
+ * "uniVer": "x",
1364
+ * "unixVer": "x"
1365
+ * }
1366
+ * },
1367
+ * "mp": {
1368
+ * "weixin": {
1369
+ * "hostVer": "√",
1370
+ * "uniVer": "x",
1371
+ * "unixVer": "x"
1372
+ * },
1373
+ * "alipay": {
1374
+ * "hostVer": "√",
1375
+ * "uniVer": "x",
1376
+ * "unixVer": "x"
1377
+ * },
1378
+ * "baidu": {
1379
+ * "hostVer": "√",
1380
+ * "uniVer": "x",
1381
+ * "unixVer": "x"
1382
+ * },
1383
+ * "toutiao": {
1384
+ * "hostVer": "√",
1385
+ * "uniVer": "x",
1386
+ * "unixVer": "x"
1387
+ * },
1388
+ * "lark": {
1389
+ * "hostVer": "√",
1390
+ * "uniVer": "x",
1391
+ * "unixVer": "x"
1392
+ * },
1393
+ * "qq": {
1394
+ * "hostVer": "√",
1395
+ * "uniVer": "x",
1396
+ * "unixVer": "x"
1397
+ * },
1398
+ * "kuaishou": {
1399
+ * "hostVer": "√",
1400
+ * "uniVer": "x",
1401
+ * "unixVer": "x"
1402
+ * },
1403
+ * "jd": {
1404
+ * "hostVer": "√",
1405
+ * "uniVer": "x",
1406
+ * "unixVer": "x"
1407
+ * }
1408
+ * },
1409
+ * "web": {
1410
+ * "uniVer": "x",
1411
+ * "unixVer": "x"
1412
+ * }
1413
+ * }
1414
+ */
1415
+ geocode?: boolean | null,
1416
+ /**
1417
+ * 高精度定位超时时间(ms),指定时间内返回最高精度,该值3000ms以上高精度定位才有效果
1418
+ * @defaultValue 3000
1419
+ * @uniPlatform {
1420
+ * "app": {
1421
+ * "android": {
1422
+ * "osVer": "5.0",
1423
+ * "uniVer": "√",
1424
+ * "unixVer": "3.9.0"
1425
+ * },
1426
+ * "ios": {
1427
+ * "osVer": "12.0",
1428
+ * "uniVer": "√",
1429
+ * "unixVer": "4.11"
1430
+ * },
1431
+ * "harmony": {
1432
+ * "osVer": "x",
1433
+ * "uniVer": "4.25",
1434
+ * "unixVer": "4.61"
1435
+ * }
1436
+ * },
1437
+ * "mp": {
1438
+ * "weixin": {
1439
+ * "hostVer": "√",
1440
+ * "uniVer": "√",
1441
+ * "unixVer": "4.41"
1442
+ * },
1443
+ * "alipay": {
1444
+ * "hostVer": "√",
1445
+ * "uniVer": "√",
1446
+ * "unixVer": "x"
1447
+ * },
1448
+ * "baidu": {
1449
+ * "hostVer": "√",
1450
+ * "uniVer": "√",
1451
+ * "unixVer": "x"
1452
+ * },
1453
+ * "toutiao": {
1454
+ * "hostVer": "√",
1455
+ * "uniVer": "√",
1456
+ * "unixVer": "x"
1457
+ * },
1458
+ * "lark": {
1459
+ * "hostVer": "√",
1460
+ * "uniVer": "√",
1461
+ * "unixVer": "x"
1462
+ * },
1463
+ * "qq": {
1464
+ * "hostVer": "√",
1465
+ * "uniVer": "√",
1466
+ * "unixVer": "x"
1467
+ * },
1468
+ * "kuaishou": {
1469
+ * "hostVer": "√",
1470
+ * "uniVer": "√",
1471
+ * "unixVer": "x"
1472
+ * },
1473
+ * "jd": {
1474
+ * "hostVer": "√",
1475
+ * "uniVer": "√",
1476
+ * "unixVer": "x"
1477
+ * }
1478
+ * },
1479
+ * "web": {
1480
+ * "uniVer": "x",
1481
+ * "unixVer": "x"
1482
+ * }
1483
+ * }
1484
+ */
1485
+ highAccuracyExpireTime?: number | null,
1486
+ /**
1487
+ * 开启高精度定位
1488
+ * @type boolean
1489
+ * @defaultValue false
1490
+ * @uniPlatform {
1491
+ * "app": {
1492
+ * "android": {
1493
+ * "osVer": "5.0",
1494
+ * "uniVer": "√",
1495
+ * "unixVer": "3.9.0"
1496
+ * },
1497
+ * "ios": {
1498
+ * "osVer": "12.0",
1499
+ * "uniVer": "√",
1500
+ * "unixVer": "4.11"
1501
+ * },
1502
+ * "harmony": {
1503
+ * "osVer": "x",
1504
+ * "uniVer": "4.25",
1505
+ * "unixVer": "4.61"
1506
+ * }
1507
+ * },
1508
+ * "mp": {
1509
+ * "weixin": {
1510
+ * "hostVer": "√",
1511
+ * "uniVer": "√",
1512
+ * "unixVer": "4.41"
1513
+ * },
1514
+ * "alipay": {
1515
+ * "hostVer": "√",
1516
+ * "uniVer": "√",
1517
+ * "unixVer": "x"
1518
+ * },
1519
+ * "baidu": {
1520
+ * "hostVer": "√",
1521
+ * "uniVer": "√",
1522
+ * "unixVer": "x"
1523
+ * },
1524
+ * "toutiao": {
1525
+ * "hostVer": "√",
1526
+ * "uniVer": "√",
1527
+ * "unixVer": "x"
1528
+ * },
1529
+ * "lark": {
1530
+ * "hostVer": "√",
1531
+ * "uniVer": "√",
1532
+ * "unixVer": "x"
1533
+ * },
1534
+ * "qq": {
1535
+ * "hostVer": "√",
1536
+ * "uniVer": "√",
1537
+ * "unixVer": "x"
1538
+ * },
1539
+ * "kuaishou": {
1540
+ * "hostVer": "√",
1541
+ * "uniVer": "√",
1542
+ * "unixVer": "x"
1543
+ * },
1544
+ * "jd": {
1545
+ * "hostVer": "√",
1546
+ * "uniVer": "√",
1547
+ * "unixVer": "x"
1548
+ * }
1549
+ * },
1550
+ * "web": {
1551
+ * "uniVer": "√",
1552
+ * "unixVer": "4.0"
1553
+ * }
1554
+ * }
1555
+ */
1556
+ isHighAccuracy?: boolean | null,
1557
+ /**
1558
+ * 接口调用成功的回调函数
1559
+ * @uniPlatform {
1560
+ * "app": {
1561
+ * "android": {
1562
+ * "osVer": "5.0",
1563
+ * "uniVer": "√",
1564
+ * "unixVer": "3.9.0"
1565
+ * },
1566
+ * "ios": {
1567
+ * "osVer": "12.0",
1568
+ * "uniVer": "√",
1569
+ * "unixVer": "4.11"
1570
+ * },
1571
+ * "harmony": {
1572
+ * "osVer": "x",
1573
+ * "uniVer": "4.25",
1574
+ * "unixVer": "4.61"
1575
+ * }
1576
+ * },
1577
+ * "mp": {
1578
+ * "weixin": {
1579
+ * "hostVer": "√",
1580
+ * "uniVer": "√",
1581
+ * "unixVer": "4.41"
1582
+ * },
1583
+ * "alipay": {
1584
+ * "hostVer": "√",
1585
+ * "uniVer": "√",
1586
+ * "unixVer": "x"
1587
+ * },
1588
+ * "baidu": {
1589
+ * "hostVer": "√",
1590
+ * "uniVer": "√",
1591
+ * "unixVer": "x"
1592
+ * },
1593
+ * "toutiao": {
1594
+ * "hostVer": "√",
1595
+ * "uniVer": "√",
1596
+ * "unixVer": "x"
1597
+ * },
1598
+ * "lark": {
1599
+ * "hostVer": "√",
1600
+ * "uniVer": "√",
1601
+ * "unixVer": "x"
1602
+ * },
1603
+ * "qq": {
1604
+ * "hostVer": "√",
1605
+ * "uniVer": "√",
1606
+ * "unixVer": "x"
1607
+ * },
1608
+ * "kuaishou": {
1609
+ * "hostVer": "√",
1610
+ * "uniVer": "√",
1611
+ * "unixVer": "x"
1612
+ * },
1613
+ * "jd": {
1614
+ * "hostVer": "√",
1615
+ * "uniVer": "√",
1616
+ * "unixVer": "x"
1617
+ * }
1618
+ * },
1619
+ * "web": {
1620
+ * "uniVer": "√",
1621
+ * "unixVer": "4.0"
1622
+ * }
1623
+ * }
1624
+ */
1625
+ success?: GetLocationSuccessCallback | null,
1626
+ /**
1627
+ * 接口调用失败的回调函数
1628
+ * @uniPlatform {
1629
+ * "app": {
1630
+ * "android": {
1631
+ * "osVer": "5.0",
1632
+ * "uniVer": "√",
1633
+ * "unixVer": "3.9.0"
1634
+ * },
1635
+ * "ios": {
1636
+ * "osVer": "12.0",
1637
+ * "uniVer": "√",
1638
+ * "unixVer": "4.11"
1639
+ * },
1640
+ * "harmony": {
1641
+ * "osVer": "x",
1642
+ * "uniVer": "4.25",
1643
+ * "unixVer": "4.61"
1644
+ * }
1645
+ * },
1646
+ * "mp": {
1647
+ * "weixin": {
1648
+ * "hostVer": "√",
1649
+ * "uniVer": "√",
1650
+ * "unixVer": "4.41"
1651
+ * },
1652
+ * "alipay": {
1653
+ * "hostVer": "√",
1654
+ * "uniVer": "√",
1655
+ * "unixVer": "x"
1656
+ * },
1657
+ * "baidu": {
1658
+ * "hostVer": "√",
1659
+ * "uniVer": "√",
1660
+ * "unixVer": "x"
1661
+ * },
1662
+ * "toutiao": {
1663
+ * "hostVer": "√",
1664
+ * "uniVer": "√",
1665
+ * "unixVer": "x"
1666
+ * },
1667
+ * "lark": {
1668
+ * "hostVer": "√",
1669
+ * "uniVer": "√",
1670
+ * "unixVer": "x"
1671
+ * },
1672
+ * "qq": {
1673
+ * "hostVer": "√",
1674
+ * "uniVer": "√",
1675
+ * "unixVer": "x"
1676
+ * },
1677
+ * "kuaishou": {
1678
+ * "hostVer": "√",
1679
+ * "uniVer": "√",
1680
+ * "unixVer": "x"
1681
+ * },
1682
+ * "jd": {
1683
+ * "hostVer": "√",
1684
+ * "uniVer": "√",
1685
+ * "unixVer": "x"
1686
+ * }
1687
+ * },
1688
+ * "web": {
1689
+ * "uniVer": "√",
1690
+ * "unixVer": "4.0"
1691
+ * }
1692
+ * }
1693
+ */
1694
+ fail?: GetLocationFailCallback | null,
1695
+ /**
1696
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1697
+ * @uniPlatform {
1698
+ * "app": {
1699
+ * "android": {
1700
+ * "osVer": "5.0",
1701
+ * "uniVer": "√",
1702
+ * "unixVer": "3.9.0"
1703
+ * },
1704
+ * "ios": {
1705
+ * "osVer": "12.0",
1706
+ * "uniVer": "√",
1707
+ * "unixVer": "4.11"
1708
+ * },
1709
+ * "harmony": {
1710
+ * "osVer": "x",
1711
+ * "uniVer": "4.25",
1712
+ * "unixVer": "4.61"
1713
+ * }
1714
+ * },
1715
+ * "mp": {
1716
+ * "weixin": {
1717
+ * "hostVer": "√",
1718
+ * "uniVer": "√",
1719
+ * "unixVer": "4.41"
1720
+ * },
1721
+ * "alipay": {
1722
+ * "hostVer": "√",
1723
+ * "uniVer": "√",
1724
+ * "unixVer": "x"
1725
+ * },
1726
+ * "baidu": {
1727
+ * "hostVer": "√",
1728
+ * "uniVer": "√",
1729
+ * "unixVer": "x"
1730
+ * },
1731
+ * "toutiao": {
1732
+ * "hostVer": "√",
1733
+ * "uniVer": "√",
1734
+ * "unixVer": "x"
1735
+ * },
1736
+ * "lark": {
1737
+ * "hostVer": "√",
1738
+ * "uniVer": "√",
1739
+ * "unixVer": "x"
1740
+ * },
1741
+ * "qq": {
1742
+ * "hostVer": "√",
1743
+ * "uniVer": "√",
1744
+ * "unixVer": "x"
1745
+ * },
1746
+ * "kuaishou": {
1747
+ * "hostVer": "√",
1748
+ * "uniVer": "√",
1749
+ * "unixVer": "x"
1750
+ * },
1751
+ * "jd": {
1752
+ * "hostVer": "√",
1753
+ * "uniVer": "√",
1754
+ * "unixVer": "x"
1755
+ * }
1756
+ * },
1757
+ * "web": {
1758
+ * "uniVer": "√",
1759
+ * "unixVer": "4.0"
1760
+ * }
1761
+ * }
1762
+ */
1763
+ complete?: GetLocationCompleteCallback | null
1764
+ };