@dcloudio/uni-app-x 0.7.39 → 0.7.41

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 (104) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +168 -22
  3. package/types/app.d.ts +178 -174
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/DOMRect.d.ts +430 -10
  6. package/types/native/DrawableContext.d.ts +1137 -45
  7. package/types/native/IUniElement.d.ts +1875 -93
  8. package/types/native/UniNativePage.d.ts +94 -0
  9. package/types/native/UniResizeObserver.d.ts +215 -5
  10. package/types/native/UniSafeArea.d.ts +185 -0
  11. package/types/native/UniVideoElement.d.ts +432 -0
  12. package/types/native/global.d.ts +7 -0
  13. package/types/native/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +12 -8
  15. package/types/uni/uts-plugin-api/global.d.ts +62 -61
  16. package/types/uni/uts-plugin-api/index.d.ts +62 -61
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  23. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
  30. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
  32. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
  33. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  35. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
  38. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
  39. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
  40. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
  41. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
  42. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
  43. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
  44. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
  45. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
  46. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  47. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
  50. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  51. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
  52. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
  53. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  54. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  55. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
  56. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
  57. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
  58. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
  59. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  60. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  61. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
  62. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
  63. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
  64. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
  65. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  66. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
  67. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  68. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
  69. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
  70. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
  71. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
  72. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
  73. package/types/uni/uts-plugin-biz/global.d.ts +6 -5
  74. package/types/uni/uts-plugin-biz/index.d.ts +6 -5
  75. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
  76. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
  79. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
  80. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
  81. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
  85. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
  87. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  90. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
  91. package/types/uni/uts-plugin-extend/global.d.ts +0 -4
  92. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  94. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
  95. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  96. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  98. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  99. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  103. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  104. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
@@ -1,11 +1,151 @@
1
1
  export interface IOpenLocationError extends IUniError {
2
2
  errCode: number
3
+ /**
4
+ * 错误信息
5
+ *
6
+ * @uniPlatform {
7
+ * "app": {
8
+ * "android": {
9
+ * "osVer": "5.0",
10
+ * "uniVer": "√",
11
+ * "unixVer": "4.41"
12
+ * },
13
+ * "ios": {
14
+ * "osVer": "12.0",
15
+ * "uniVer": "√",
16
+ * "unixVer": "4.41"
17
+ * },
18
+ * "harmony": {
19
+ * "osVer": "3.0",
20
+ * "uniVer": "4.25",
21
+ * "unixVer": "x"
22
+ * }
23
+ * },
24
+ * "mp": {
25
+ * "weixin": {
26
+ * "hostVer": "√",
27
+ * "uniVer": "√",
28
+ * "unixVer": "4.41"
29
+ * },
30
+ * "alipay": {
31
+ * "hostVer": "x",
32
+ * "uniVer": "x",
33
+ * "unixVer": "x"
34
+ * },
35
+ * "baidu": {
36
+ * "hostVer": "x",
37
+ * "uniVer": "x",
38
+ * "unixVer": "x"
39
+ * },
40
+ * "toutiao": {
41
+ * "hostVer": "x",
42
+ * "uniVer": "x",
43
+ * "unixVer": "x"
44
+ * },
45
+ * "lark": {
46
+ * "hostVer": "x",
47
+ * "uniVer": "x",
48
+ * "unixVer": "x"
49
+ * },
50
+ * "qq": {
51
+ * "hostVer": "x",
52
+ * "uniVer": "x",
53
+ * "unixVer": "x"
54
+ * },
55
+ * "kuaishou": {
56
+ * "hostVer": "x",
57
+ * "uniVer": "x",
58
+ * "unixVer": "x"
59
+ * },
60
+ * "jd": {
61
+ * "hostVer": "x",
62
+ * "uniVer": "x",
63
+ * "unixVer": "x"
64
+ * }
65
+ * },
66
+ * "web": {
67
+ * "uniVer": "√",
68
+ * "unixVer": "4.0"
69
+ * }
70
+ * }
71
+ */
72
+ errMsg?: string;
3
73
  }
4
74
 
5
75
  /**
6
76
  * uni.openLocation成功回调参数
7
77
  */
8
78
  export type OpenLocationSuccess = {
79
+ /**
80
+ * 错误信息
81
+ *
82
+ * @uniPlatform {
83
+ * "app": {
84
+ * "android": {
85
+ * "osVer": "5.0",
86
+ * "uniVer": "√",
87
+ * "unixVer": "4.41"
88
+ * },
89
+ * "ios": {
90
+ * "osVer": "12.0",
91
+ * "uniVer": "√",
92
+ * "unixVer": "4.41"
93
+ * },
94
+ * "harmony": {
95
+ * "osVer": "3.0",
96
+ * "uniVer": "4.25",
97
+ * "unixVer": "x"
98
+ * }
99
+ * },
100
+ * "mp": {
101
+ * "weixin": {
102
+ * "hostVer": "√",
103
+ * "uniVer": "√",
104
+ * "unixVer": "4.41"
105
+ * },
106
+ * "alipay": {
107
+ * "hostVer": "x",
108
+ * "uniVer": "x",
109
+ * "unixVer": "x"
110
+ * },
111
+ * "baidu": {
112
+ * "hostVer": "x",
113
+ * "uniVer": "x",
114
+ * "unixVer": "x"
115
+ * },
116
+ * "toutiao": {
117
+ * "hostVer": "x",
118
+ * "uniVer": "x",
119
+ * "unixVer": "x"
120
+ * },
121
+ * "lark": {
122
+ * "hostVer": "x",
123
+ * "uniVer": "x",
124
+ * "unixVer": "x"
125
+ * },
126
+ * "qq": {
127
+ * "hostVer": "x",
128
+ * "uniVer": "x",
129
+ * "unixVer": "x"
130
+ * },
131
+ * "kuaishou": {
132
+ * "hostVer": "x",
133
+ * "uniVer": "x",
134
+ * "unixVer": "x"
135
+ * },
136
+ * "jd": {
137
+ * "hostVer": "x",
138
+ * "uniVer": "x",
139
+ * "unixVer": "x"
140
+ * }
141
+ * },
142
+ * "web": {
143
+ * "uniVer": "√",
144
+ * "unixVer": "4.0"
145
+ * }
146
+ * }
147
+ */
148
+ errMsg?: string;
9
149
  }
10
150
 
11
151
  /**
@@ -15,14 +155,209 @@ export type OpenLocationFail = IOpenLocationError;
15
155
 
16
156
  /**
17
157
  * uni.openLocation成功回调函数定义
158
+ * @uniPlatform {
159
+ * "app": {
160
+ * "android": {
161
+ * "osVer": "5.0",
162
+ * "uniVer": "√",
163
+ * "unixVer": "4.41"
164
+ * },
165
+ * "ios": {
166
+ * "osVer": "12.0",
167
+ * "uniVer": "√",
168
+ * "unixVer": "4.41"
169
+ * },
170
+ * "harmony": {
171
+ * "osVer": "3.0",
172
+ * "uniVer": "4.25",
173
+ * "unixVer": "x"
174
+ * }
175
+ * },
176
+ * "mp": {
177
+ * "weixin": {
178
+ * "hostVer": "√",
179
+ * "uniVer": "√",
180
+ * "unixVer": "4.41"
181
+ * },
182
+ * "alipay": {
183
+ * "hostVer": "x",
184
+ * "uniVer": "x",
185
+ * "unixVer": "x"
186
+ * },
187
+ * "baidu": {
188
+ * "hostVer": "x",
189
+ * "uniVer": "x",
190
+ * "unixVer": "x"
191
+ * },
192
+ * "toutiao": {
193
+ * "hostVer": "x",
194
+ * "uniVer": "x",
195
+ * "unixVer": "x"
196
+ * },
197
+ * "lark": {
198
+ * "hostVer": "x",
199
+ * "uniVer": "x",
200
+ * "unixVer": "x"
201
+ * },
202
+ * "qq": {
203
+ * "hostVer": "x",
204
+ * "uniVer": "x",
205
+ * "unixVer": "x"
206
+ * },
207
+ * "kuaishou": {
208
+ * "hostVer": "x",
209
+ * "uniVer": "x",
210
+ * "unixVer": "x"
211
+ * },
212
+ * "jd": {
213
+ * "hostVer": "x",
214
+ * "uniVer": "x",
215
+ * "unixVer": "x"
216
+ * }
217
+ * },
218
+ * "web": {
219
+ * "uniVer": "√",
220
+ * "unixVer": "4.0"
221
+ * }
222
+ * }
18
223
  */
19
224
  export type OpenLocationSuccessCallback = (res: OpenLocationSuccess) => void
20
225
  /**
21
226
  * uni.openLocation失败回调函数定义
227
+ * @uniPlatform {
228
+ * "app": {
229
+ * "android": {
230
+ * "osVer": "5.0",
231
+ * "uniVer": "√",
232
+ * "unixVer": "4.41"
233
+ * },
234
+ * "ios": {
235
+ * "osVer": "12.0",
236
+ * "uniVer": "√",
237
+ * "unixVer": "4.41"
238
+ * },
239
+ * "harmony": {
240
+ * "osVer": "3.0",
241
+ * "uniVer": "4.25",
242
+ * "unixVer": "x"
243
+ * }
244
+ * },
245
+ * "mp": {
246
+ * "weixin": {
247
+ * "hostVer": "√",
248
+ * "uniVer": "√",
249
+ * "unixVer": "4.41"
250
+ * },
251
+ * "alipay": {
252
+ * "hostVer": "x",
253
+ * "uniVer": "x",
254
+ * "unixVer": "x"
255
+ * },
256
+ * "baidu": {
257
+ * "hostVer": "x",
258
+ * "uniVer": "x",
259
+ * "unixVer": "x"
260
+ * },
261
+ * "toutiao": {
262
+ * "hostVer": "x",
263
+ * "uniVer": "x",
264
+ * "unixVer": "x"
265
+ * },
266
+ * "lark": {
267
+ * "hostVer": "x",
268
+ * "uniVer": "x",
269
+ * "unixVer": "x"
270
+ * },
271
+ * "qq": {
272
+ * "hostVer": "x",
273
+ * "uniVer": "x",
274
+ * "unixVer": "x"
275
+ * },
276
+ * "kuaishou": {
277
+ * "hostVer": "x",
278
+ * "uniVer": "x",
279
+ * "unixVer": "x"
280
+ * },
281
+ * "jd": {
282
+ * "hostVer": "x",
283
+ * "uniVer": "x",
284
+ * "unixVer": "x"
285
+ * }
286
+ * },
287
+ * "web": {
288
+ * "uniVer": "√",
289
+ * "unixVer": "4.0"
290
+ * }
291
+ * }
22
292
  */
23
293
  export type OpenLocationFailCallback = (res: OpenLocationFail) => void
24
294
  /**
25
295
  * uni.openLocation完成回调函数定义
296
+ * @uniPlatform {
297
+ * "app": {
298
+ * "android": {
299
+ * "osVer": "5.0",
300
+ * "uniVer": "√",
301
+ * "unixVer": "4.41"
302
+ * },
303
+ * "ios": {
304
+ * "osVer": "12.0",
305
+ * "uniVer": "√",
306
+ * "unixVer": "4.41"
307
+ * },
308
+ * "harmony": {
309
+ * "osVer": "3.0",
310
+ * "uniVer": "4.25",
311
+ * "unixVer": "x"
312
+ * }
313
+ * },
314
+ * "mp": {
315
+ * "weixin": {
316
+ * "hostVer": "√",
317
+ * "uniVer": "√",
318
+ * "unixVer": "4.41"
319
+ * },
320
+ * "alipay": {
321
+ * "hostVer": "x",
322
+ * "uniVer": "x",
323
+ * "unixVer": "x"
324
+ * },
325
+ * "baidu": {
326
+ * "hostVer": "x",
327
+ * "uniVer": "x",
328
+ * "unixVer": "x"
329
+ * },
330
+ * "toutiao": {
331
+ * "hostVer": "x",
332
+ * "uniVer": "x",
333
+ * "unixVer": "x"
334
+ * },
335
+ * "lark": {
336
+ * "hostVer": "x",
337
+ * "uniVer": "x",
338
+ * "unixVer": "x"
339
+ * },
340
+ * "qq": {
341
+ * "hostVer": "x",
342
+ * "uniVer": "x",
343
+ * "unixVer": "x"
344
+ * },
345
+ * "kuaishou": {
346
+ * "hostVer": "x",
347
+ * "uniVer": "x",
348
+ * "unixVer": "x"
349
+ * },
350
+ * "jd": {
351
+ * "hostVer": "x",
352
+ * "uniVer": "x",
353
+ * "unixVer": "x"
354
+ * }
355
+ * },
356
+ * "web": {
357
+ * "uniVer": "√",
358
+ * "unixVer": "4.0"
359
+ * }
360
+ * }
26
361
  */
27
362
  export type OpenLocationCompleteCallback = (res: any) => void
28
363
 
@@ -32,34 +367,554 @@ export type OpenLocationCompleteCallback = (res: any) => void
32
367
  export type OpenLocationOptions = {
33
368
  /**
34
369
  * 纬度,范围为-90~90,负数表示南纬
35
- */
370
+ * @uniPlatform {
371
+ * "app": {
372
+ * "android": {
373
+ * "osVer": "5.0",
374
+ * "uniVer": "√",
375
+ * "unixVer": "4.41"
376
+ * },
377
+ * "ios": {
378
+ * "osVer": "12.0",
379
+ * "uniVer": "√",
380
+ * "unixVer": "4.41"
381
+ * },
382
+ * "harmony": {
383
+ * "osVer": "3.0",
384
+ * "uniVer": "4.25",
385
+ * "unixVer": "x"
386
+ * }
387
+ * },
388
+ * "mp": {
389
+ * "weixin": {
390
+ * "hostVer": "√",
391
+ * "uniVer": "√",
392
+ * "unixVer": "4.41"
393
+ * },
394
+ * "alipay": {
395
+ * "hostVer": "x",
396
+ * "uniVer": "x",
397
+ * "unixVer": "x"
398
+ * },
399
+ * "baidu": {
400
+ * "hostVer": "x",
401
+ * "uniVer": "x",
402
+ * "unixVer": "x"
403
+ * },
404
+ * "toutiao": {
405
+ * "hostVer": "x",
406
+ * "uniVer": "x",
407
+ * "unixVer": "x"
408
+ * },
409
+ * "lark": {
410
+ * "hostVer": "x",
411
+ * "uniVer": "x",
412
+ * "unixVer": "x"
413
+ * },
414
+ * "qq": {
415
+ * "hostVer": "x",
416
+ * "uniVer": "x",
417
+ * "unixVer": "x"
418
+ * },
419
+ * "kuaishou": {
420
+ * "hostVer": "x",
421
+ * "uniVer": "x",
422
+ * "unixVer": "x"
423
+ * },
424
+ * "jd": {
425
+ * "hostVer": "x",
426
+ * "uniVer": "x",
427
+ * "unixVer": "x"
428
+ * }
429
+ * },
430
+ * "web": {
431
+ * "uniVer": "√",
432
+ * "unixVer": "4.0"
433
+ * }
434
+ * }
435
+ */
36
436
  latitude: number;
37
437
  /**
38
438
  * 经度,范围为-180~180,负数表示西经
39
- */
439
+ * @uniPlatform {
440
+ * "app": {
441
+ * "android": {
442
+ * "osVer": "5.0",
443
+ * "uniVer": "√",
444
+ * "unixVer": "4.41"
445
+ * },
446
+ * "ios": {
447
+ * "osVer": "12.0",
448
+ * "uniVer": "√",
449
+ * "unixVer": "4.41"
450
+ * },
451
+ * "harmony": {
452
+ * "osVer": "3.0",
453
+ * "uniVer": "4.25",
454
+ * "unixVer": "x"
455
+ * }
456
+ * },
457
+ * "mp": {
458
+ * "weixin": {
459
+ * "hostVer": "√",
460
+ * "uniVer": "√",
461
+ * "unixVer": "4.41"
462
+ * },
463
+ * "alipay": {
464
+ * "hostVer": "x",
465
+ * "uniVer": "x",
466
+ * "unixVer": "x"
467
+ * },
468
+ * "baidu": {
469
+ * "hostVer": "x",
470
+ * "uniVer": "x",
471
+ * "unixVer": "x"
472
+ * },
473
+ * "toutiao": {
474
+ * "hostVer": "x",
475
+ * "uniVer": "x",
476
+ * "unixVer": "x"
477
+ * },
478
+ * "lark": {
479
+ * "hostVer": "x",
480
+ * "uniVer": "x",
481
+ * "unixVer": "x"
482
+ * },
483
+ * "qq": {
484
+ * "hostVer": "x",
485
+ * "uniVer": "x",
486
+ * "unixVer": "x"
487
+ * },
488
+ * "kuaishou": {
489
+ * "hostVer": "x",
490
+ * "uniVer": "x",
491
+ * "unixVer": "x"
492
+ * },
493
+ * "jd": {
494
+ * "hostVer": "x",
495
+ * "uniVer": "x",
496
+ * "unixVer": "x"
497
+ * }
498
+ * },
499
+ * "web": {
500
+ * "uniVer": "√",
501
+ * "unixVer": "4.0"
502
+ * }
503
+ * }
504
+ */
40
505
  longitude: number;
41
506
  /**
42
507
  * 缩放比例,范围5~18,默认为18
508
+ * @uniPlatform {
509
+ * "app": {
510
+ * "android": {
511
+ * "osVer": "5.0",
512
+ * "uniVer": "√",
513
+ * "unixVer": "4.41"
514
+ * },
515
+ * "ios": {
516
+ * "osVer": "12.0",
517
+ * "uniVer": "√",
518
+ * "unixVer": "4.41"
519
+ * },
520
+ * "harmony": {
521
+ * "osVer": "3.0",
522
+ * "uniVer": "4.25",
523
+ * "unixVer": "x"
524
+ * }
525
+ * },
526
+ * "mp": {
527
+ * "weixin": {
528
+ * "hostVer": "√",
529
+ * "uniVer": "√",
530
+ * "unixVer": "4.41"
531
+ * },
532
+ * "alipay": {
533
+ * "hostVer": "x",
534
+ * "uniVer": "x",
535
+ * "unixVer": "x"
536
+ * },
537
+ * "baidu": {
538
+ * "hostVer": "x",
539
+ * "uniVer": "x",
540
+ * "unixVer": "x"
541
+ * },
542
+ * "toutiao": {
543
+ * "hostVer": "x",
544
+ * "uniVer": "x",
545
+ * "unixVer": "x"
546
+ * },
547
+ * "lark": {
548
+ * "hostVer": "x",
549
+ * "uniVer": "x",
550
+ * "unixVer": "x"
551
+ * },
552
+ * "qq": {
553
+ * "hostVer": "x",
554
+ * "uniVer": "x",
555
+ * "unixVer": "x"
556
+ * },
557
+ * "kuaishou": {
558
+ * "hostVer": "x",
559
+ * "uniVer": "x",
560
+ * "unixVer": "x"
561
+ * },
562
+ * "jd": {
563
+ * "hostVer": "x",
564
+ * "uniVer": "x",
565
+ * "unixVer": "x"
566
+ * }
567
+ * },
568
+ * "web": {
569
+ * "uniVer": "√",
570
+ * "unixVer": "4.0"
571
+ * }
572
+ * }
43
573
  */
44
574
  scale?: number;
45
575
  /**
46
576
  * 位置名称
577
+ * @uniPlatform {
578
+ * "app": {
579
+ * "android": {
580
+ * "osVer": "5.0",
581
+ * "uniVer": "√",
582
+ * "unixVer": "4.41"
583
+ * },
584
+ * "ios": {
585
+ * "osVer": "12.0",
586
+ * "uniVer": "√",
587
+ * "unixVer": "4.41"
588
+ * },
589
+ * "harmony": {
590
+ * "osVer": "3.0",
591
+ * "uniVer": "4.25",
592
+ * "unixVer": "x"
593
+ * }
594
+ * },
595
+ * "mp": {
596
+ * "weixin": {
597
+ * "hostVer": "√",
598
+ * "uniVer": "√",
599
+ * "unixVer": "4.41"
600
+ * },
601
+ * "alipay": {
602
+ * "hostVer": "x",
603
+ * "uniVer": "x",
604
+ * "unixVer": "x"
605
+ * },
606
+ * "baidu": {
607
+ * "hostVer": "x",
608
+ * "uniVer": "x",
609
+ * "unixVer": "x"
610
+ * },
611
+ * "toutiao": {
612
+ * "hostVer": "x",
613
+ * "uniVer": "x",
614
+ * "unixVer": "x"
615
+ * },
616
+ * "lark": {
617
+ * "hostVer": "x",
618
+ * "uniVer": "x",
619
+ * "unixVer": "x"
620
+ * },
621
+ * "qq": {
622
+ * "hostVer": "x",
623
+ * "uniVer": "x",
624
+ * "unixVer": "x"
625
+ * },
626
+ * "kuaishou": {
627
+ * "hostVer": "x",
628
+ * "uniVer": "x",
629
+ * "unixVer": "x"
630
+ * },
631
+ * "jd": {
632
+ * "hostVer": "x",
633
+ * "uniVer": "x",
634
+ * "unixVer": "x"
635
+ * }
636
+ * },
637
+ * "web": {
638
+ * "uniVer": "√",
639
+ * "unixVer": "4.0"
640
+ * }
641
+ * }
47
642
  */
48
643
  name?: string;
49
644
  /**
50
645
  * 地址的详细说明
646
+ * @uniPlatform {
647
+ * "app": {
648
+ * "android": {
649
+ * "osVer": "5.0",
650
+ * "uniVer": "√",
651
+ * "unixVer": "4.41"
652
+ * },
653
+ * "ios": {
654
+ * "osVer": "12.0",
655
+ * "uniVer": "√",
656
+ * "unixVer": "4.41"
657
+ * },
658
+ * "harmony": {
659
+ * "osVer": "3.0",
660
+ * "uniVer": "4.25",
661
+ * "unixVer": "x"
662
+ * }
663
+ * },
664
+ * "mp": {
665
+ * "weixin": {
666
+ * "hostVer": "√",
667
+ * "uniVer": "√",
668
+ * "unixVer": "4.41"
669
+ * },
670
+ * "alipay": {
671
+ * "hostVer": "x",
672
+ * "uniVer": "x",
673
+ * "unixVer": "x"
674
+ * },
675
+ * "baidu": {
676
+ * "hostVer": "x",
677
+ * "uniVer": "x",
678
+ * "unixVer": "x"
679
+ * },
680
+ * "toutiao": {
681
+ * "hostVer": "x",
682
+ * "uniVer": "x",
683
+ * "unixVer": "x"
684
+ * },
685
+ * "lark": {
686
+ * "hostVer": "x",
687
+ * "uniVer": "x",
688
+ * "unixVer": "x"
689
+ * },
690
+ * "qq": {
691
+ * "hostVer": "x",
692
+ * "uniVer": "x",
693
+ * "unixVer": "x"
694
+ * },
695
+ * "kuaishou": {
696
+ * "hostVer": "x",
697
+ * "uniVer": "x",
698
+ * "unixVer": "x"
699
+ * },
700
+ * "jd": {
701
+ * "hostVer": "x",
702
+ * "uniVer": "x",
703
+ * "unixVer": "x"
704
+ * }
705
+ * },
706
+ * "web": {
707
+ * "uniVer": "√",
708
+ * "unixVer": "4.0"
709
+ * }
710
+ * }
51
711
  */
52
712
  address?: string;
53
713
  /**
54
714
  * 成功返回的回调函数
715
+ * @uniPlatform {
716
+ * "app": {
717
+ * "android": {
718
+ * "osVer": "5.0",
719
+ * "uniVer": "√",
720
+ * "unixVer": "4.41"
721
+ * },
722
+ * "ios": {
723
+ * "osVer": "12.0",
724
+ * "uniVer": "√",
725
+ * "unixVer": "4.41"
726
+ * },
727
+ * "harmony": {
728
+ * "osVer": "3.0",
729
+ * "uniVer": "4.25",
730
+ * "unixVer": "x"
731
+ * }
732
+ * },
733
+ * "mp": {
734
+ * "weixin": {
735
+ * "hostVer": "√",
736
+ * "uniVer": "√",
737
+ * "unixVer": "4.41"
738
+ * },
739
+ * "alipay": {
740
+ * "hostVer": "x",
741
+ * "uniVer": "x",
742
+ * "unixVer": "x"
743
+ * },
744
+ * "baidu": {
745
+ * "hostVer": "x",
746
+ * "uniVer": "x",
747
+ * "unixVer": "x"
748
+ * },
749
+ * "toutiao": {
750
+ * "hostVer": "x",
751
+ * "uniVer": "x",
752
+ * "unixVer": "x"
753
+ * },
754
+ * "lark": {
755
+ * "hostVer": "x",
756
+ * "uniVer": "x",
757
+ * "unixVer": "x"
758
+ * },
759
+ * "qq": {
760
+ * "hostVer": "x",
761
+ * "uniVer": "x",
762
+ * "unixVer": "x"
763
+ * },
764
+ * "kuaishou": {
765
+ * "hostVer": "x",
766
+ * "uniVer": "x",
767
+ * "unixVer": "x"
768
+ * },
769
+ * "jd": {
770
+ * "hostVer": "x",
771
+ * "uniVer": "x",
772
+ * "unixVer": "x"
773
+ * }
774
+ * },
775
+ * "web": {
776
+ * "uniVer": "√",
777
+ * "unixVer": "4.0"
778
+ * }
779
+ * }
55
780
  */
56
781
  success?: OpenLocationSuccessCallback;
57
782
  /**
58
783
  * 失败的回调函数
784
+ * @uniPlatform {
785
+ * "app": {
786
+ * "android": {
787
+ * "osVer": "5.0",
788
+ * "uniVer": "√",
789
+ * "unixVer": "4.41"
790
+ * },
791
+ * "ios": {
792
+ * "osVer": "12.0",
793
+ * "uniVer": "√",
794
+ * "unixVer": "4.41"
795
+ * },
796
+ * "harmony": {
797
+ * "osVer": "3.0",
798
+ * "uniVer": "4.25",
799
+ * "unixVer": "x"
800
+ * }
801
+ * },
802
+ * "mp": {
803
+ * "weixin": {
804
+ * "hostVer": "√",
805
+ * "uniVer": "√",
806
+ * "unixVer": "4.41"
807
+ * },
808
+ * "alipay": {
809
+ * "hostVer": "x",
810
+ * "uniVer": "x",
811
+ * "unixVer": "x"
812
+ * },
813
+ * "baidu": {
814
+ * "hostVer": "x",
815
+ * "uniVer": "x",
816
+ * "unixVer": "x"
817
+ * },
818
+ * "toutiao": {
819
+ * "hostVer": "x",
820
+ * "uniVer": "x",
821
+ * "unixVer": "x"
822
+ * },
823
+ * "lark": {
824
+ * "hostVer": "x",
825
+ * "uniVer": "x",
826
+ * "unixVer": "x"
827
+ * },
828
+ * "qq": {
829
+ * "hostVer": "x",
830
+ * "uniVer": "x",
831
+ * "unixVer": "x"
832
+ * },
833
+ * "kuaishou": {
834
+ * "hostVer": "x",
835
+ * "uniVer": "x",
836
+ * "unixVer": "x"
837
+ * },
838
+ * "jd": {
839
+ * "hostVer": "x",
840
+ * "uniVer": "x",
841
+ * "unixVer": "x"
842
+ * }
843
+ * },
844
+ * "web": {
845
+ * "uniVer": "√",
846
+ * "unixVer": "4.0"
847
+ * }
848
+ * }
59
849
  */
60
850
  fail?: OpenLocationFailCallback;
61
851
  /**
62
852
  * 结束的回调函数(调用成功、失败都会执行)
853
+ * @uniPlatform {
854
+ * "app": {
855
+ * "android": {
856
+ * "osVer": "5.0",
857
+ * "uniVer": "√",
858
+ * "unixVer": "4.41"
859
+ * },
860
+ * "ios": {
861
+ * "osVer": "12.0",
862
+ * "uniVer": "√",
863
+ * "unixVer": "4.41"
864
+ * },
865
+ * "harmony": {
866
+ * "osVer": "3.0",
867
+ * "uniVer": "4.25",
868
+ * "unixVer": "x"
869
+ * }
870
+ * },
871
+ * "mp": {
872
+ * "weixin": {
873
+ * "hostVer": "√",
874
+ * "uniVer": "√",
875
+ * "unixVer": "4.41"
876
+ * },
877
+ * "alipay": {
878
+ * "hostVer": "x",
879
+ * "uniVer": "x",
880
+ * "unixVer": "x"
881
+ * },
882
+ * "baidu": {
883
+ * "hostVer": "x",
884
+ * "uniVer": "x",
885
+ * "unixVer": "x"
886
+ * },
887
+ * "toutiao": {
888
+ * "hostVer": "x",
889
+ * "uniVer": "x",
890
+ * "unixVer": "x"
891
+ * },
892
+ * "lark": {
893
+ * "hostVer": "x",
894
+ * "uniVer": "x",
895
+ * "unixVer": "x"
896
+ * },
897
+ * "qq": {
898
+ * "hostVer": "x",
899
+ * "uniVer": "x",
900
+ * "unixVer": "x"
901
+ * },
902
+ * "kuaishou": {
903
+ * "hostVer": "x",
904
+ * "uniVer": "x",
905
+ * "unixVer": "x"
906
+ * },
907
+ * "jd": {
908
+ * "hostVer": "x",
909
+ * "uniVer": "x",
910
+ * "unixVer": "x"
911
+ * }
912
+ * },
913
+ * "web": {
914
+ * "uniVer": "√",
915
+ * "unixVer": "4.0"
916
+ * }
917
+ * }
63
918
  */
64
919
  complete?: OpenLocationCompleteCallback;
65
920
  }
@@ -72,72 +927,73 @@ export interface Uni {
72
927
  * 使用地图查看位置
73
928
  *
74
929
  * @tutorial https://uniapp.dcloud.io/api/location/open-location.html
75
- * @tutorial-uni-app https://uniapp.dcloud.io/api/location/open-location.html
930
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/location/open-location.html
76
931
  * @uniPlatform {
77
- * "app": {
78
- * "android": {
79
- * "osVer": "5.0",
80
- * "uniVer": "√",
81
- * "unixVer": "x"
82
- * },
83
- * "ios": {
84
- * "osVer": "12.0",
85
- * "uniVer": "√",
86
- * "unixVer": "x"
87
- * },
88
- * "harmony": {
89
- * "osVer": "3.0",
90
- * "uniVer": "4.25",
91
- * "unixVer": "x"
92
- * }
93
- * },
94
- * "mp": {
95
- * "weixin": {
96
- * "hostVer": "",
97
- * "uniVer": "√",
98
- * "unixVer": "4.41"
99
- * },
100
- * "alipay": {
101
- * "hostVer": "√",
102
- * "uniVer": "√",
103
- * "unixVer": "x"
104
- * },
105
- * "baidu": {
106
- * "hostVer": "√",
107
- * "uniVer": "√",
108
- * "unixVer": "x"
109
- * },
110
- * "toutiao": {
111
- * "hostVer": "√",
112
- * "uniVer": "√",
113
- * "unixVer": "x"
114
- * },
115
- * "lark": {
116
- * "hostVer": "√",
117
- * "uniVer": "√",
118
- * "unixVer": "x"
119
- * },
120
- * "qq": {
121
- * "hostVer": "x",
122
- * "uniVer": "x",
123
- * "unixVer": "x"
124
- * },
125
- * "kuaishou": {
126
- * "hostVer": "x",
127
- * "uniVer": "x",
128
- * "unixVer": "x"
129
- * },
130
- * "jd": {
131
- * "hostVer": "x",
132
- * "uniVer": "x",
133
- * "unixVer": "x"
134
- * }
135
- * },
136
- * "web": {
137
- * "uniVer": "√",
138
- * "unixVer": "4.0"
139
- * }
932
+ * "app": {
933
+ * "android": {
934
+ * "osVer": "5.0",
935
+ * "uniVer": "√",
936
+ * "unixVer": "4.41"
937
+ * },
938
+ * "ios": {
939
+ * "osVer": "12.0",
940
+ * "uniVer": "√",
941
+ * "unixVer": "4.41"
942
+ * },
943
+ * "harmony": {
944
+ * "osVer": "3.0",
945
+ * "uniVer": "4.25",
946
+ * "unixVer": "x"
947
+ * }
948
+ * },
949
+ * "mp": {
950
+ * "weixin": {
951
+ * "hostVer": "1.9.6",
952
+ * "uniVer": "√",
953
+ * "unixVer": "4.41"
954
+ * },
955
+ * "alipay": {
956
+ * "hostVer": "√",
957
+ * "uniVer": "√",
958
+ * "unixVer": "x"
959
+ * },
960
+ * "baidu": {
961
+ * "hostVer": "√",
962
+ * "uniVer": "√",
963
+ * "unixVer": "x"
964
+ * },
965
+ * "toutiao": {
966
+ * "hostVer": "√",
967
+ * "uniVer": "√",
968
+ * "unixVer": "x"
969
+ * },
970
+ * "lark": {
971
+ * "hostVer": "√",
972
+ * "uniVer": "√",
973
+ * "unixVer": "x"
974
+ * },
975
+ * "qq": {
976
+ * "hostVer": "x",
977
+ * "uniVer": "x",
978
+ * "unixVer": "x"
979
+ * },
980
+ * "kuaishou": {
981
+ * "hostVer": "x",
982
+ * "uniVer": "x",
983
+ * "unixVer": "x"
984
+ * },
985
+ * "jd": {
986
+ * "hostVer": "x",
987
+ * "uniVer": "x",
988
+ * "unixVer": "x"
989
+ * }
990
+ * },
991
+ * "web": {
992
+ * "uniVer": "√",
993
+ * "unixVer": "4.0"
994
+ * }
140
995
  * }
141
- */
996
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html
997
+ */
142
998
  openLocation(options: OpenLocationOptions): void
143
999
  }