@dcloudio/uni-app-x 0.7.55 → 0.7.57

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