@dcloudio/uni-app-x 0.7.31 → 0.7.33

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 (32) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +45 -11
  3. package/types/native/CSSStyleDeclaration.d.ts +72 -0
  4. package/types/native/DOMRect.d.ts +180 -0
  5. package/types/native/DrawableContext.d.ts +471 -4
  6. package/types/native/IUniElement.d.ts +3 -3
  7. package/types/native/SnapshotOptions.d.ts +0 -1
  8. package/types/native/UniElement.d.ts +1 -0
  9. package/types/native/UniEvent.d.ts +23 -1
  10. package/types/page.d.ts +98 -83
  11. package/types/uni/uts-plugin-api/global.d.ts +2 -0
  12. package/types/uni/uts-plugin-api/index.d.ts +2 -0
  13. package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/global.d.ts +20 -0
  14. package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/index.d.ts +9 -0
  15. package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/interface.d.ts +48 -0
  16. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +6 -6
  17. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +20 -20
  18. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +22 -0
  19. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -0
  20. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +781 -0
  21. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -5
  22. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +4 -4
  23. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +33 -33
  24. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +2 -2
  25. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -1
  26. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +3 -4
  27. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -5
  28. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +14 -8
  29. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +7 -4
  30. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +1788 -183
  31. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +686 -661
  32. package/types/uni-cloud/interface.d.ts +1 -1
@@ -0,0 +1,781 @@
1
+ import { GetLocationFailImpl as GetLocationFailImplement } from './unierror.uts'
2
+
3
+ export type GetLocationFailImpl = GetLocationFailImplement
4
+
5
+ export interface Uni {
6
+
7
+ /**
8
+ * @description 获取当前的地理位置、速度
9
+ * @param {GetLocation} option
10
+ * @example
11
+ * ```typescript
12
+ * uni.getLocation({
13
+ * type: 'wgs84',
14
+ * success: function (res) {
15
+ * console.log('当前位置的经度:' + res.longitude);
16
+ * console.log('当前位置的纬度:' + res.latitude);
17
+ * }
18
+ * });
19
+ * ```
20
+ * @tutorial http://uniapp.dcloud.io/api/location/location?id=getlocation
21
+ * @uniPlatform {
22
+ * "app": {
23
+ * "android": {
24
+ * "osVer": "5.0",
25
+ * "uniVer": "√",
26
+ * "unixVer": "3.9.0"
27
+ * },
28
+ * "ios": {
29
+ * "osVer": "12.0",
30
+ * "uniVer": "√",
31
+ * "unixVer": "4.11"
32
+ * },
33
+ * "harmony": {
34
+ * "osVer": "x",
35
+ * "uniVer": "4.25",
36
+ * "unixVer": "x"
37
+ * }
38
+ * },
39
+ * "web": {
40
+ * "uniVer": "√",
41
+ * "unixVer": "4.0"
42
+ * }
43
+ * }
44
+ *
45
+ */
46
+ getLocation(options : GetLocationOptions) : void;
47
+
48
+ }
49
+
50
+ /**
51
+ * 错误码
52
+ */
53
+ export type LocationErrorCode =
54
+ /**
55
+ * 系统定位未开启,请在系统设置中开启系统定位
56
+ * @uniPlatform {
57
+ * "app": {
58
+ * "android": {
59
+ * "osVer": "5.0",
60
+ * "uniVer": "4.31",
61
+ * "unixVer": "4.25"
62
+ * },
63
+ * "ios": {
64
+ * "osVer": "12.0",
65
+ * "uniVer": "4.31",
66
+ * "unixVer": "4.25"
67
+ * }
68
+ * }
69
+ * }
70
+ */
71
+ 1505003 |
72
+ /**
73
+ * 应用定位权限未开启
74
+ * @uniPlatform {
75
+ * "app": {
76
+ * "android": {
77
+ * "osVer": "5.0",
78
+ * "uniVer": "4.31",
79
+ * "unixVer": "4.25"
80
+ * },
81
+ * "ios": {
82
+ * "osVer": "12.0",
83
+ * "uniVer": "4.31",
84
+ * "unixVer": "4.25"
85
+ * }
86
+ * }
87
+ * }
88
+ */
89
+ 1505004 |
90
+ /**
91
+ * 超时
92
+ * @uniPlatform {
93
+ * "app": {
94
+ * "android": {
95
+ * "osVer": "5.0",
96
+ * "uniVer": "4.31",
97
+ * "unixVer": "4.25"
98
+ * },
99
+ * "ios": {
100
+ * "osVer": "12.0",
101
+ * "uniVer": "4.31",
102
+ * "unixVer": "4.25"
103
+ * }
104
+ * }
105
+ * }
106
+ */
107
+ 1505600 |
108
+ /**
109
+ * 不支持的定位类型
110
+ * @uniPlatform {
111
+ * "app": {
112
+ * "android": {
113
+ * "osVer": "5.0",
114
+ * "uniVer": "4.31",
115
+ * "unixVer": "4.25"
116
+ * },
117
+ * "ios": {
118
+ * "osVer": "12.0",
119
+ * "uniVer": "4.31",
120
+ * "unixVer": "4.25"
121
+ * }
122
+ * }
123
+ * }
124
+ */
125
+ 1505601 |
126
+ /**
127
+ * 捕获定位失败
128
+ * @uniPlatform {
129
+ * "app": {
130
+ * "android": {
131
+ * "osVer": "5.0",
132
+ * "uniVer": "4.31",
133
+ * "unixVer": "4.25"
134
+ * },
135
+ * "ios": {
136
+ * "osVer": "12.0",
137
+ * "uniVer": "4.31",
138
+ * "unixVer": "4.25"
139
+ * }
140
+ * }
141
+ * }
142
+ */
143
+ 1505602 |
144
+ /**
145
+ * 逆地理编码捕获失败
146
+ * @uniPlatform {
147
+ * "app": {
148
+ * "android": {
149
+ * "osVer": "5.0",
150
+ * "uniVer": "4.31",
151
+ * "unixVer": "4.25"
152
+ * },
153
+ * "ios": {
154
+ * "osVer": "12.0",
155
+ * "uniVer": "4.31",
156
+ * "unixVer": "4.25"
157
+ * }
158
+ * }
159
+ * }
160
+ */
161
+ 1505603 |
162
+ /**
163
+ * 服务供应商获取失败
164
+ * @uniPlatform {
165
+ * "app": {
166
+ * "android": {
167
+ * "osVer": "5.0",
168
+ * "uniVer": "4.31",
169
+ * "unixVer": "4.25"
170
+ * },
171
+ * "ios": {
172
+ * "osVer": "12.0",
173
+ * "uniVer": "4.31",
174
+ * "unixVer": "4.25"
175
+ * }
176
+ * }
177
+ * }
178
+ */
179
+ 1505604 |
180
+ /**
181
+ * 不支持逆地理编码
182
+ * @uniPlatform {
183
+ * "app": {
184
+ * "android": {
185
+ * "osVer": "5.0",
186
+ * "uniVer": "4.31",
187
+ * "unixVer": "4.25"
188
+ * },
189
+ * "ios": {
190
+ * "osVer": "12.0",
191
+ * "uniVer": "4.31",
192
+ * "unixVer": "4.25"
193
+ * }
194
+ * }
195
+ * }
196
+ */
197
+ 1505700 |
198
+ /**
199
+ * 没有找到具体的定位引擎(GPS_PROVIDER,NETWORK_PROVIDER,PASSIVE_PROVIDER等),请确定系统定位是否开启
200
+ * @uniPlatform {
201
+ * "app": {
202
+ * "android": {
203
+ * "osVer": "5.0",
204
+ * "uniVer": "4.31",
205
+ * "unixVer": "4.25"
206
+ * },
207
+ * "ios": {
208
+ * "osVer": "12.0",
209
+ * "uniVer": "4.31",
210
+ * "unixVer": "4.25"
211
+ * }
212
+ * }
213
+ * }
214
+ */
215
+ 1505701 |
216
+ /**
217
+ * 应用高精度定位权限未开启
218
+ * @uniPlatform {
219
+ * "app": {
220
+ * "android": {
221
+ * "osVer": "5.0",
222
+ * "uniVer": "4.31",
223
+ * "unixVer": "4.25"
224
+ * },
225
+ * "ios": {
226
+ * "osVer": "12.0",
227
+ * "uniVer": "4.31",
228
+ * "unixVer": "4.25"
229
+ * }
230
+ * }
231
+ * }
232
+ */
233
+ 1505800 |
234
+ /**
235
+ * 未通过配置预校验,通常是腾讯定位 api key 配置错误
236
+ * @uniPlatform {
237
+ * "app": {
238
+ * "android": {
239
+ * "osVer": "5.0",
240
+ * "uniVer": "4.31",
241
+ * "unixVer": "4.25"
242
+ * },
243
+ * "ios": {
244
+ * "osVer": "12.0",
245
+ * "uniVer": "4.31",
246
+ * "unixVer": "4.25"
247
+ * }
248
+ * }
249
+ * }
250
+ */
251
+ 1505605 |
252
+ /**
253
+ * 腾讯定位只支持GCJ-02
254
+ * @uniPlatform {
255
+ * "app": {
256
+ * "android": {
257
+ * "osVer": "5.0",
258
+ * "uniVer": "4.31",
259
+ * "unixVer": "4.25"
260
+ * },
261
+ * "ios": {
262
+ * "osVer": "12.0",
263
+ * "uniVer": "4.31",
264
+ * "unixVer": "4.25"
265
+ * }
266
+ * }
267
+ * }
268
+ */
269
+ 1505607;
270
+
271
+ /**
272
+ * 网络请求失败的错误回调参数
273
+ */
274
+ export interface IGetLocationFail extends IUniError {
275
+ errCode : LocationErrorCode
276
+ };
277
+
278
+ export type GetLocationFail = IGetLocationFail
279
+
280
+
281
+ export type GetLocation = (options : GetLocationOptions) => void;
282
+ export type GetLocationSuccess = {
283
+ /**
284
+ * 纬度,浮点数,范围为-90~90,负数表示南纬
285
+ * @defaultValue 0
286
+ * @uniPlatform {
287
+ * "app": {
288
+ * "android": {
289
+ * "osVer": "5.0",
290
+ * "uniVer": "√",
291
+ * "unixVer": "3.9.0"
292
+ * },
293
+ * "ios": {
294
+ * "osVer": "12.0",
295
+ * "uniVer": "√",
296
+ * "unixVer": "4.11"
297
+ * },
298
+ * "harmony": {
299
+ * "osVer": "x",
300
+ * "uniVer": "4.25",
301
+ * "unixVer": "x"
302
+ * }
303
+ * },
304
+ * "web": {
305
+ * "uniVer": "√",
306
+ * "unixVer": "4.0"
307
+ * }
308
+ * }
309
+ */
310
+ latitude : number,
311
+ /**
312
+ * 经度,范围为-180~180,负数表示西经
313
+ * @defaultValue 0
314
+ * @uniPlatform {
315
+ * "app": {
316
+ * "android": {
317
+ * "osVer": "5.0",
318
+ * "uniVer": "√",
319
+ * "unixVer": "3.9.0"
320
+ * },
321
+ * "ios": {
322
+ * "osVer": "12.0",
323
+ * "uniVer": "√",
324
+ * "unixVer": "4.11"
325
+ * },
326
+ * "harmony": {
327
+ * "osVer": "x",
328
+ * "uniVer": "4.25",
329
+ * "unixVer": "x"
330
+ * }
331
+ * },
332
+ * "web": {
333
+ * "uniVer": "√",
334
+ * "unixVer": "4.0"
335
+ * }
336
+ * }
337
+ */
338
+ longitude : number,
339
+ /**
340
+ * 速度,浮点数,单位m/s
341
+ * @defaultValue 0
342
+ * @uniPlatform {
343
+ * "app": {
344
+ * "android": {
345
+ * "osVer": "5.0",
346
+ * "uniVer": "√",
347
+ * "unixVer": "3.9.0"
348
+ * },
349
+ * "ios": {
350
+ * "osVer": "12.0",
351
+ * "uniVer": "√",
352
+ * "unixVer": "4.11"
353
+ * },
354
+ * "harmony": {
355
+ * "osVer": "x",
356
+ * "uniVer": "4.25",
357
+ * "unixVer": "x"
358
+ * }
359
+ * },
360
+ * "web": {
361
+ * "uniVer": "√",
362
+ * "unixVer": "4.0"
363
+ * }
364
+ * }
365
+ */
366
+ speed : number,
367
+ /**
368
+ * 位置的精确度
369
+ * @uniPlatform {
370
+ * "app": {
371
+ * "android": {
372
+ * "osVer": "5.0",
373
+ * "uniVer": "√",
374
+ * "unixVer": "3.9.0"
375
+ * },
376
+ * "ios": {
377
+ * "osVer": "12.0",
378
+ * "uniVer": "√",
379
+ * "unixVer": "4.11"
380
+ * },
381
+ * "harmony": {
382
+ * "osVer": "x",
383
+ * "uniVer": "4.25",
384
+ * "unixVer": "x"
385
+ * }
386
+ * },
387
+ * "web": {
388
+ * "uniVer": "√",
389
+ * "unixVer": "4.0"
390
+ * }
391
+ * }
392
+ */
393
+ accuracy : number,
394
+ /**
395
+ * 高度,单位 m
396
+ * @defaultValue 0
397
+ * @uniPlatform {
398
+ * "app": {
399
+ * "android": {
400
+ * "osVer": "5.0",
401
+ * "uniVer": "√",
402
+ * "unixVer": "3.9.0"
403
+ * },
404
+ * "ios": {
405
+ * "osVer": "12.0",
406
+ * "uniVer": "√",
407
+ * "unixVer": "4.11"
408
+ * },
409
+ * "harmony": {
410
+ * "osVer": "x",
411
+ * "uniVer": "4.25",
412
+ * "unixVer": "x"
413
+ * }
414
+ * },
415
+ * "web": {
416
+ * "uniVer": "√",
417
+ * "unixVer": "4.0"
418
+ * }
419
+ * }
420
+ */
421
+ altitude : number,
422
+ /**
423
+ * 垂直精度,单位 m(Android 无法获取,返回 0)
424
+ * @defaultValue 0
425
+ * @uniPlatform {
426
+ * "app": {
427
+ * "android": {
428
+ * "osVer": "5.0",
429
+ * "uniVer": "√",
430
+ * "unixVer": "3.9.0"
431
+ * },
432
+ * "ios": {
433
+ * "osVer": "12.0",
434
+ * "uniVer": "√",
435
+ * "unixVer": "4.11"
436
+ * },
437
+ * "harmony": {
438
+ * "osVer": "x",
439
+ * "uniVer": "x",
440
+ * "unixVer": "x"
441
+ * }
442
+ * },
443
+ * "web": {
444
+ * "uniVer": "√",
445
+ * "unixVer": "4.0"
446
+ * }
447
+ * }
448
+ */
449
+ verticalAccuracy : number,
450
+ /**
451
+ * 水平精度,单位 m
452
+ * @defaultValue 0
453
+ * @uniPlatform {
454
+ * "app": {
455
+ * "android": {
456
+ * "osVer": "5.0",
457
+ * "uniVer": "√",
458
+ * "unixVer": "3.9.0"
459
+ * },
460
+ * "ios": {
461
+ * "osVer": "12.0",
462
+ * "uniVer": "√",
463
+ * "unixVer": "4.11"
464
+ * },
465
+ * "harmony": {
466
+ * "osVer": "x",
467
+ * "uniVer": "x",
468
+ * "unixVer": "x"
469
+ * }
470
+ * },
471
+ * "web": {
472
+ * "uniVer": "√",
473
+ * "unixVer": "4.0"
474
+ * }
475
+ * }
476
+ */
477
+ horizontalAccuracy : number,
478
+ /**
479
+ * 地址信息
480
+ * @defaultValue null
481
+ * @uniPlatform {
482
+ * "app": {
483
+ * "android": {
484
+ * "osVer": "5.0",
485
+ * "uniVer": "√",
486
+ * "unixVer": "3.9.0"
487
+ * },
488
+ * "ios": {
489
+ * "osVer": "12.0",
490
+ * "uniVer": "√",
491
+ * "unixVer": "4.11"
492
+ * },
493
+ * "harmony": {
494
+ * "osVer": "x",
495
+ * "uniVer": "x",
496
+ * "unixVer": "x"
497
+ * }
498
+ * },
499
+ * "web": {
500
+ * "uniVer": "√",
501
+ * "unixVer": "4.0"
502
+ * }
503
+ * }
504
+ */
505
+ address : string | null
506
+ };
507
+ type GetLocationSuccessCallback = (result : GetLocationSuccess) => void;
508
+ type GetLocationFailCallback = (result : GetLocationFail) => void;
509
+ type GetLocationComplete = any;
510
+ type GetLocationCompleteCallback = (result : GetLocationComplete) => void;
511
+ export type GetLocationOptions = {
512
+ /**
513
+ * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02;
514
+ * @defaultValue wgs84
515
+ * @uniPlatform {
516
+ * "app": {
517
+ * "android": {
518
+ * "osVer": "5.0",
519
+ * "uniVer": "√",
520
+ * "unixVer": "3.9.0"
521
+ * },
522
+ * "ios": {
523
+ * "osVer": "12.0",
524
+ * "uniVer": "√",
525
+ * "unixVer": "4.11"
526
+ * },
527
+ * "harmony": {
528
+ * "osVer": "x",
529
+ * "uniVer": "4.25",
530
+ * "unixVer": "x"
531
+ * }
532
+ * },
533
+ * "web": {
534
+ * "uniVer": "√",
535
+ * "unixVer": "4.0"
536
+ * }
537
+ * }
538
+ */
539
+ type ?:
540
+ /**
541
+ * wgs84坐标系,系统定位默认取值wgs84,系统定位仅支持wgs84坐标系
542
+ * @uniPlatform {
543
+ * "app": {
544
+ * "android": {
545
+ * "osVer": "5.0",
546
+ * "uniVer": "√",
547
+ * "unixVer": "3.9.0"
548
+ * },
549
+ * "ios": {
550
+ * "osVer": "12.0",
551
+ * "uniVer": "√",
552
+ * "unixVer": "4.11"
553
+ * }
554
+ * },
555
+ * "web": {
556
+ * "uniVer": "√",
557
+ * "unixVer": "4.0"
558
+ * }
559
+ * }
560
+ */
561
+ "wgs84" |
562
+ /**
563
+ * gcj02坐标系,腾讯定位默认取值gcj02,腾讯定位仅支持gcj02坐标系
564
+ * @uniPlatform {
565
+ * "app": {
566
+ * "android": {
567
+ * "osVer": "5.0",
568
+ * "uniVer": "√",
569
+ * "unixVer": "3.9.0"
570
+ * },
571
+ * "ios": {
572
+ * "osVer": "12.0",
573
+ * "uniVer": "√",
574
+ * "unixVer": "4.11"
575
+ * }
576
+ * },
577
+ * "web": {
578
+ * "uniVer": "√",
579
+ * "unixVer": "4.0"
580
+ * }
581
+ * }
582
+ */
583
+ "gcj02" | null,
584
+ /**
585
+ * 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
586
+ * @type boolean
587
+ * @defaultValue false
588
+ * @uniPlatform {
589
+ * "app": {
590
+ * "android": {
591
+ * "osVer": "5.0",
592
+ * "uniVer": "√",
593
+ * "unixVer": "3.9.0"
594
+ * },
595
+ * "ios": {
596
+ * "osVer": "12.0",
597
+ * "uniVer": "√",
598
+ * "unixVer": "4.11"
599
+ * },
600
+ * "harmony": {
601
+ * "osVer": "x",
602
+ * "uniVer": "4.25",
603
+ * "unixVer": "x"
604
+ * }
605
+ * },
606
+ * "web": {
607
+ * "uniVer": "√",
608
+ * "unixVer": "4.0"
609
+ * }
610
+ * }
611
+ */
612
+ altitude ?: boolean | null,
613
+ /**
614
+ * 传入 true 会解析地址;
615
+ * 使用系统定位时平台差异:iOS支持逆地理编码,Android不支持;
616
+ * @type boolean
617
+ * @defaultValue false
618
+ * @uniPlatform {
619
+ * "app": {
620
+ * "android": {
621
+ * "osVer": "5.0",
622
+ * "uniVer": "√",
623
+ * "unixVer": "3.9.0"
624
+ * },
625
+ * "ios": {
626
+ * "osVer": "12.0",
627
+ * "uniVer": "√",
628
+ * "unixVer": "4.11"
629
+ * },
630
+ * "harmony": {
631
+ * "osVer": "x",
632
+ * "uniVer": "x",
633
+ * "unixVer": "x"
634
+ * }
635
+ * },
636
+ * "web": {
637
+ * "uniVer": "x",
638
+ * "unixVer": "x"
639
+ * }
640
+ * }
641
+ */
642
+ geocode ?: boolean | null,
643
+ /**
644
+ * 高精度定位超时时间(ms),指定时间内返回最高精度,该值3000ms以上高精度定位才有效果
645
+ * @defaultValue 3000
646
+ * @uniPlatform {
647
+ * "app": {
648
+ * "android": {
649
+ * "osVer": "5.0",
650
+ * "uniVer": "√",
651
+ * "unixVer": "3.9.0"
652
+ * },
653
+ * "ios": {
654
+ * "osVer": "12.0",
655
+ * "uniVer": "√",
656
+ * "unixVer": "4.11"
657
+ * },
658
+ * "harmony": {
659
+ * "osVer": "x",
660
+ * "uniVer": "4.25",
661
+ * "unixVer": "x"
662
+ * }
663
+ * },
664
+ * "web": {
665
+ * "uniVer": "x",
666
+ * "unixVer": "x"
667
+ * }
668
+ * }
669
+ */
670
+ highAccuracyExpireTime ?: number | null,
671
+ /**
672
+ * 开启高精度定位
673
+ * @type boolean
674
+ * @defaultValue false
675
+ * @uniPlatform {
676
+ * "app": {
677
+ * "android": {
678
+ * "osVer": "5.0",
679
+ * "uniVer": "√",
680
+ * "unixVer": "3.9.0"
681
+ * },
682
+ * "ios": {
683
+ * "osVer": "12.0",
684
+ * "uniVer": "√",
685
+ * "unixVer": "4.11"
686
+ * },
687
+ * "harmony": {
688
+ * "osVer": "x",
689
+ * "uniVer": "4.25",
690
+ * "unixVer": "x"
691
+ * }
692
+ * },
693
+ * "web": {
694
+ * "uniVer": "√",
695
+ * "unixVer": "4.0"
696
+ * }
697
+ * }
698
+ */
699
+ isHighAccuracy ?: boolean | null,
700
+ /**
701
+ * 接口调用成功的回调函数
702
+ * @uniPlatform {
703
+ * "app": {
704
+ * "android": {
705
+ * "osVer": "5.0",
706
+ * "uniVer": "√",
707
+ * "unixVer": "3.9.0"
708
+ * },
709
+ * "ios": {
710
+ * "osVer": "12.0",
711
+ * "uniVer": "√",
712
+ * "unixVer": "4.11"
713
+ * },
714
+ * "harmony": {
715
+ * "osVer": "x",
716
+ * "uniVer": "4.25",
717
+ * "unixVer": "x"
718
+ * }
719
+ * },
720
+ * "web": {
721
+ * "uniVer": "√",
722
+ * "unixVer": "4.0"
723
+ * }
724
+ * }
725
+ */
726
+ success ?: GetLocationSuccessCallback | null,
727
+ /**
728
+ * 接口调用失败的回调函数
729
+ * @uniPlatform {
730
+ * "app": {
731
+ * "android": {
732
+ * "osVer": "5.0",
733
+ * "uniVer": "√",
734
+ * "unixVer": "3.9.0"
735
+ * },
736
+ * "ios": {
737
+ * "osVer": "12.0",
738
+ * "uniVer": "√",
739
+ * "unixVer": "4.11"
740
+ * },
741
+ * "harmony": {
742
+ * "osVer": "x",
743
+ * "uniVer": "4.25",
744
+ * "unixVer": "x"
745
+ * }
746
+ * },
747
+ * "web": {
748
+ * "uniVer": "√",
749
+ * "unixVer": "4.0"
750
+ * }
751
+ * }
752
+ */
753
+ fail ?: GetLocationFailCallback | null,
754
+ /**
755
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
756
+ * @uniPlatform {
757
+ * "app": {
758
+ * "android": {
759
+ * "osVer": "5.0",
760
+ * "uniVer": "√",
761
+ * "unixVer": "3.9.0"
762
+ * },
763
+ * "ios": {
764
+ * "osVer": "12.0",
765
+ * "uniVer": "√",
766
+ * "unixVer": "4.11"
767
+ * },
768
+ * "harmony": {
769
+ * "osVer": "x",
770
+ * "uniVer": "4.25",
771
+ * "unixVer": "x"
772
+ * }
773
+ * },
774
+ * "web": {
775
+ * "uniVer": "√",
776
+ * "unixVer": "4.0"
777
+ * }
778
+ * }
779
+ */
780
+ complete ?: GetLocationCompleteCallback | null
781
+ };