@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,10 +1,108 @@
1
1
  export interface ICompassError extends IUniError {
2
2
  errCode: number
3
+ /**
4
+ * 错误信息
5
+ *
6
+ * @uniPlatform {
7
+ * "mp": {
8
+ * "weixin": {
9
+ * "hostVer": "√",
10
+ * "uniVer": "√",
11
+ * "unixVer": "4.41"
12
+ * },
13
+ * "alipay": {
14
+ * "hostVer": "x",
15
+ * "uniVer": "x",
16
+ * "unixVer": "x"
17
+ * },
18
+ * "baidu": {
19
+ * "hostVer": "x",
20
+ * "uniVer": "x",
21
+ * "unixVer": "x"
22
+ * },
23
+ * "toutiao": {
24
+ * "hostVer": "x",
25
+ * "uniVer": "x",
26
+ * "unixVer": "x"
27
+ * },
28
+ * "lark": {
29
+ * "hostVer": "x",
30
+ * "uniVer": "x",
31
+ * "unixVer": "x"
32
+ * },
33
+ * "qq": {
34
+ * "hostVer": "x",
35
+ * "uniVer": "x",
36
+ * "unixVer": "x"
37
+ * },
38
+ * "kuaishou": {
39
+ * "hostVer": "x",
40
+ * "uniVer": "x",
41
+ * "unixVer": "x"
42
+ * },
43
+ * "jd": {
44
+ * "hostVer": "x",
45
+ * "uniVer": "x",
46
+ * "unixVer": "x"
47
+ * }
48
+ * }
49
+ * }
50
+ */
51
+ errMsg?: string;
3
52
  }
4
53
  /**
5
54
  * uni.startCompass成功回调参数
6
55
  */
7
56
  export type CompassSuccess = {
57
+ /**
58
+ * 错误信息
59
+ *
60
+ * @uniPlatform {
61
+ * "mp": {
62
+ * "weixin": {
63
+ * "hostVer": "√",
64
+ * "uniVer": "√",
65
+ * "unixVer": "4.41"
66
+ * },
67
+ * "alipay": {
68
+ * "hostVer": "x",
69
+ * "uniVer": "x",
70
+ * "unixVer": "x"
71
+ * },
72
+ * "baidu": {
73
+ * "hostVer": "x",
74
+ * "uniVer": "x",
75
+ * "unixVer": "x"
76
+ * },
77
+ * "toutiao": {
78
+ * "hostVer": "x",
79
+ * "uniVer": "x",
80
+ * "unixVer": "x"
81
+ * },
82
+ * "lark": {
83
+ * "hostVer": "x",
84
+ * "uniVer": "x",
85
+ * "unixVer": "x"
86
+ * },
87
+ * "qq": {
88
+ * "hostVer": "x",
89
+ * "uniVer": "x",
90
+ * "unixVer": "x"
91
+ * },
92
+ * "kuaishou": {
93
+ * "hostVer": "x",
94
+ * "uniVer": "x",
95
+ * "unixVer": "x"
96
+ * },
97
+ * "jd": {
98
+ * "hostVer": "x",
99
+ * "uniVer": "x",
100
+ * "unixVer": "x"
101
+ * }
102
+ * }
103
+ * }
104
+ */
105
+ errMsg?: string;
8
106
  }
9
107
  /**
10
108
  * uni.startCompass失败回调参数
@@ -12,33 +110,341 @@ export type CompassSuccess = {
12
110
  export type CompassFail = ICompassError;
13
111
  /**
14
112
  * uni.startCompass成功回调函数定义
113
+ * @uniPlatform {
114
+ * "mp": {
115
+ * "weixin": {
116
+ * "hostVer": "√",
117
+ * "uniVer": "√",
118
+ * "unixVer": "4.41"
119
+ * },
120
+ * "alipay": {
121
+ * "hostVer": "x",
122
+ * "uniVer": "x",
123
+ * "unixVer": "x"
124
+ * },
125
+ * "baidu": {
126
+ * "hostVer": "x",
127
+ * "uniVer": "x",
128
+ * "unixVer": "x"
129
+ * },
130
+ * "toutiao": {
131
+ * "hostVer": "x",
132
+ * "uniVer": "x",
133
+ * "unixVer": "x"
134
+ * },
135
+ * "lark": {
136
+ * "hostVer": "x",
137
+ * "uniVer": "x",
138
+ * "unixVer": "x"
139
+ * },
140
+ * "qq": {
141
+ * "hostVer": "x",
142
+ * "uniVer": "x",
143
+ * "unixVer": "x"
144
+ * },
145
+ * "kuaishou": {
146
+ * "hostVer": "x",
147
+ * "uniVer": "x",
148
+ * "unixVer": "x"
149
+ * },
150
+ * "jd": {
151
+ * "hostVer": "x",
152
+ * "uniVer": "x",
153
+ * "unixVer": "x"
154
+ * }
155
+ * }
156
+ * }
15
157
  */
16
158
  export type CompassSuccessCallback = (res: CompassSuccess) => void
17
159
  /**
18
160
  * uni.startCompass失败回调函数定义
161
+ * @uniPlatform {
162
+ * "mp": {
163
+ * "weixin": {
164
+ * "hostVer": "√",
165
+ * "uniVer": "√",
166
+ * "unixVer": "4.41"
167
+ * },
168
+ * "alipay": {
169
+ * "hostVer": "x",
170
+ * "uniVer": "x",
171
+ * "unixVer": "x"
172
+ * },
173
+ * "baidu": {
174
+ * "hostVer": "x",
175
+ * "uniVer": "x",
176
+ * "unixVer": "x"
177
+ * },
178
+ * "toutiao": {
179
+ * "hostVer": "x",
180
+ * "uniVer": "x",
181
+ * "unixVer": "x"
182
+ * },
183
+ * "lark": {
184
+ * "hostVer": "x",
185
+ * "uniVer": "x",
186
+ * "unixVer": "x"
187
+ * },
188
+ * "qq": {
189
+ * "hostVer": "x",
190
+ * "uniVer": "x",
191
+ * "unixVer": "x"
192
+ * },
193
+ * "kuaishou": {
194
+ * "hostVer": "x",
195
+ * "uniVer": "x",
196
+ * "unixVer": "x"
197
+ * },
198
+ * "jd": {
199
+ * "hostVer": "x",
200
+ * "uniVer": "x",
201
+ * "unixVer": "x"
202
+ * }
203
+ * }
204
+ * }
19
205
  */
20
206
  export type CompassFailCallback = (res: CompassFail) => void
21
207
  /**
22
208
  * uni.startCompass完成回调函数定义
209
+ * @uniPlatform {
210
+ * "mp": {
211
+ * "weixin": {
212
+ * "hostVer": "√",
213
+ * "uniVer": "√",
214
+ * "unixVer": "4.41"
215
+ * },
216
+ * "alipay": {
217
+ * "hostVer": "x",
218
+ * "uniVer": "x",
219
+ * "unixVer": "x"
220
+ * },
221
+ * "baidu": {
222
+ * "hostVer": "x",
223
+ * "uniVer": "x",
224
+ * "unixVer": "x"
225
+ * },
226
+ * "toutiao": {
227
+ * "hostVer": "x",
228
+ * "uniVer": "x",
229
+ * "unixVer": "x"
230
+ * },
231
+ * "lark": {
232
+ * "hostVer": "x",
233
+ * "uniVer": "x",
234
+ * "unixVer": "x"
235
+ * },
236
+ * "qq": {
237
+ * "hostVer": "x",
238
+ * "uniVer": "x",
239
+ * "unixVer": "x"
240
+ * },
241
+ * "kuaishou": {
242
+ * "hostVer": "x",
243
+ * "uniVer": "x",
244
+ * "unixVer": "x"
245
+ * },
246
+ * "jd": {
247
+ * "hostVer": "x",
248
+ * "uniVer": "x",
249
+ * "unixVer": "x"
250
+ * }
251
+ * }
252
+ * }
23
253
  */
24
254
  export type CompassCompleteCallback = (res: any) => void
25
255
 
26
256
 
27
257
  /**
28
258
  * uni.startCompass
259
+ * @uniPlatform {
260
+ * "mp": {
261
+ * "weixin": {
262
+ * "hostVer": "√",
263
+ * "uniVer": "√",
264
+ * "unixVer": "4.41"
265
+ * },
266
+ * "alipay": {
267
+ * "hostVer": "x",
268
+ * "uniVer": "x",
269
+ * "unixVer": "x"
270
+ * },
271
+ * "baidu": {
272
+ * "hostVer": "x",
273
+ * "uniVer": "x",
274
+ * "unixVer": "x"
275
+ * },
276
+ * "toutiao": {
277
+ * "hostVer": "x",
278
+ * "uniVer": "x",
279
+ * "unixVer": "x"
280
+ * },
281
+ * "lark": {
282
+ * "hostVer": "x",
283
+ * "uniVer": "x",
284
+ * "unixVer": "x"
285
+ * },
286
+ * "qq": {
287
+ * "hostVer": "x",
288
+ * "uniVer": "x",
289
+ * "unixVer": "x"
290
+ * },
291
+ * "kuaishou": {
292
+ * "hostVer": "x",
293
+ * "uniVer": "x",
294
+ * "unixVer": "x"
295
+ * },
296
+ * "jd": {
297
+ * "hostVer": "x",
298
+ * "uniVer": "x",
299
+ * "unixVer": "x"
300
+ * }
301
+ * }
302
+ * }
29
303
  */
30
304
  interface StartCompassOptions {
31
305
  /**
32
306
  * 成功返回的回调函数
33
- */
307
+ * @uniPlatform {
308
+ * "mp": {
309
+ * "weixin": {
310
+ * "hostVer": "√",
311
+ * "uniVer": "√",
312
+ * "unixVer": "4.41"
313
+ * },
314
+ * "alipay": {
315
+ * "hostVer": "x",
316
+ * "uniVer": "x",
317
+ * "unixVer": "x"
318
+ * },
319
+ * "baidu": {
320
+ * "hostVer": "x",
321
+ * "uniVer": "x",
322
+ * "unixVer": "x"
323
+ * },
324
+ * "toutiao": {
325
+ * "hostVer": "x",
326
+ * "uniVer": "x",
327
+ * "unixVer": "x"
328
+ * },
329
+ * "lark": {
330
+ * "hostVer": "x",
331
+ * "uniVer": "x",
332
+ * "unixVer": "x"
333
+ * },
334
+ * "qq": {
335
+ * "hostVer": "x",
336
+ * "uniVer": "x",
337
+ * "unixVer": "x"
338
+ * },
339
+ * "kuaishou": {
340
+ * "hostVer": "x",
341
+ * "uniVer": "x",
342
+ * "unixVer": "x"
343
+ * },
344
+ * "jd": {
345
+ * "hostVer": "x",
346
+ * "uniVer": "x",
347
+ * "unixVer": "x"
348
+ * }
349
+ * }
350
+ * }
351
+ */
34
352
  success?: CompassSuccessCallback;
35
353
  /**
36
354
  * 失败的回调函数
37
- */
355
+ * @uniPlatform {
356
+ * "mp": {
357
+ * "weixin": {
358
+ * "hostVer": "√",
359
+ * "uniVer": "√",
360
+ * "unixVer": "4.41"
361
+ * },
362
+ * "alipay": {
363
+ * "hostVer": "x",
364
+ * "uniVer": "x",
365
+ * "unixVer": "x"
366
+ * },
367
+ * "baidu": {
368
+ * "hostVer": "x",
369
+ * "uniVer": "x",
370
+ * "unixVer": "x"
371
+ * },
372
+ * "toutiao": {
373
+ * "hostVer": "x",
374
+ * "uniVer": "x",
375
+ * "unixVer": "x"
376
+ * },
377
+ * "lark": {
378
+ * "hostVer": "x",
379
+ * "uniVer": "x",
380
+ * "unixVer": "x"
381
+ * },
382
+ * "qq": {
383
+ * "hostVer": "x",
384
+ * "uniVer": "x",
385
+ * "unixVer": "x"
386
+ * },
387
+ * "kuaishou": {
388
+ * "hostVer": "x",
389
+ * "uniVer": "x",
390
+ * "unixVer": "x"
391
+ * },
392
+ * "jd": {
393
+ * "hostVer": "x",
394
+ * "uniVer": "x",
395
+ * "unixVer": "x"
396
+ * }
397
+ * }
398
+ * }
399
+ */
38
400
  fail?: CompassFailCallback;
39
401
  /**
40
402
  * 结束的回调函数(调用成功、失败都会执行)
41
- */
403
+ * @uniPlatform {
404
+ * "mp": {
405
+ * "weixin": {
406
+ * "hostVer": "√",
407
+ * "uniVer": "√",
408
+ * "unixVer": "4.41"
409
+ * },
410
+ * "alipay": {
411
+ * "hostVer": "x",
412
+ * "uniVer": "x",
413
+ * "unixVer": "x"
414
+ * },
415
+ * "baidu": {
416
+ * "hostVer": "x",
417
+ * "uniVer": "x",
418
+ * "unixVer": "x"
419
+ * },
420
+ * "toutiao": {
421
+ * "hostVer": "x",
422
+ * "uniVer": "x",
423
+ * "unixVer": "x"
424
+ * },
425
+ * "lark": {
426
+ * "hostVer": "x",
427
+ * "uniVer": "x",
428
+ * "unixVer": "x"
429
+ * },
430
+ * "qq": {
431
+ * "hostVer": "x",
432
+ * "uniVer": "x",
433
+ * "unixVer": "x"
434
+ * },
435
+ * "kuaishou": {
436
+ * "hostVer": "x",
437
+ * "uniVer": "x",
438
+ * "unixVer": "x"
439
+ * },
440
+ * "jd": {
441
+ * "hostVer": "x",
442
+ * "uniVer": "x",
443
+ * "unixVer": "x"
444
+ * }
445
+ * }
446
+ * }
447
+ */
42
448
  complete?: CompassCompleteCallback;
43
449
  }
44
450
 
@@ -46,26 +452,348 @@ interface StartCompassOptions {
46
452
  interface StopCompassOptions {
47
453
  /**
48
454
  * 成功返回的回调函数
49
- */
455
+ * @uniPlatform {
456
+ * "mp": {
457
+ * "weixin": {
458
+ * "hostVer": "√",
459
+ * "uniVer": "√",
460
+ * "unixVer": "4.41"
461
+ * },
462
+ * "alipay": {
463
+ * "hostVer": "x",
464
+ * "uniVer": "x",
465
+ * "unixVer": "x"
466
+ * },
467
+ * "baidu": {
468
+ * "hostVer": "x",
469
+ * "uniVer": "x",
470
+ * "unixVer": "x"
471
+ * },
472
+ * "toutiao": {
473
+ * "hostVer": "x",
474
+ * "uniVer": "x",
475
+ * "unixVer": "x"
476
+ * },
477
+ * "lark": {
478
+ * "hostVer": "x",
479
+ * "uniVer": "x",
480
+ * "unixVer": "x"
481
+ * },
482
+ * "qq": {
483
+ * "hostVer": "x",
484
+ * "uniVer": "x",
485
+ * "unixVer": "x"
486
+ * },
487
+ * "kuaishou": {
488
+ * "hostVer": "x",
489
+ * "uniVer": "x",
490
+ * "unixVer": "x"
491
+ * },
492
+ * "jd": {
493
+ * "hostVer": "x",
494
+ * "uniVer": "x",
495
+ * "unixVer": "x"
496
+ * }
497
+ * }
498
+ * }
499
+ */
50
500
  success?: CompassSuccessCallback;
51
501
  /**
52
502
  * 失败的回调函数
53
- */
503
+ * @uniPlatform {
504
+ * "mp": {
505
+ * "weixin": {
506
+ * "hostVer": "√",
507
+ * "uniVer": "√",
508
+ * "unixVer": "4.41"
509
+ * },
510
+ * "alipay": {
511
+ * "hostVer": "x",
512
+ * "uniVer": "x",
513
+ * "unixVer": "x"
514
+ * },
515
+ * "baidu": {
516
+ * "hostVer": "x",
517
+ * "uniVer": "x",
518
+ * "unixVer": "x"
519
+ * },
520
+ * "toutiao": {
521
+ * "hostVer": "x",
522
+ * "uniVer": "x",
523
+ * "unixVer": "x"
524
+ * },
525
+ * "lark": {
526
+ * "hostVer": "x",
527
+ * "uniVer": "x",
528
+ * "unixVer": "x"
529
+ * },
530
+ * "qq": {
531
+ * "hostVer": "x",
532
+ * "uniVer": "x",
533
+ * "unixVer": "x"
534
+ * },
535
+ * "kuaishou": {
536
+ * "hostVer": "x",
537
+ * "uniVer": "x",
538
+ * "unixVer": "x"
539
+ * },
540
+ * "jd": {
541
+ * "hostVer": "x",
542
+ * "uniVer": "x",
543
+ * "unixVer": "x"
544
+ * }
545
+ * }
546
+ * }
547
+ */
54
548
  fail?: CompassFailCallback;
55
549
  /**
56
550
  * 结束的回调函数(调用成功、失败都会执行)
57
- */
551
+ * @uniPlatform {
552
+ * "mp": {
553
+ * "weixin": {
554
+ * "hostVer": "√",
555
+ * "uniVer": "√",
556
+ * "unixVer": "4.41"
557
+ * },
558
+ * "alipay": {
559
+ * "hostVer": "x",
560
+ * "uniVer": "x",
561
+ * "unixVer": "x"
562
+ * },
563
+ * "baidu": {
564
+ * "hostVer": "x",
565
+ * "uniVer": "x",
566
+ * "unixVer": "x"
567
+ * },
568
+ * "toutiao": {
569
+ * "hostVer": "x",
570
+ * "uniVer": "x",
571
+ * "unixVer": "x"
572
+ * },
573
+ * "lark": {
574
+ * "hostVer": "x",
575
+ * "uniVer": "x",
576
+ * "unixVer": "x"
577
+ * },
578
+ * "qq": {
579
+ * "hostVer": "x",
580
+ * "uniVer": "x",
581
+ * "unixVer": "x"
582
+ * },
583
+ * "kuaishou": {
584
+ * "hostVer": "x",
585
+ * "uniVer": "x",
586
+ * "unixVer": "x"
587
+ * },
588
+ * "jd": {
589
+ * "hostVer": "x",
590
+ * "uniVer": "x",
591
+ * "unixVer": "x"
592
+ * }
593
+ * }
594
+ * }
595
+ */
58
596
  complete?: CompassCompleteCallback;
59
597
  }
60
598
 
61
599
  /**
62
600
  * uni.onCompassChange
601
+ * @uniPlatform {
602
+ * "mp": {
603
+ * "weixin": {
604
+ * "hostVer": "√",
605
+ * "uniVer": "√",
606
+ * "unixVer": "4.41"
607
+ * },
608
+ * "alipay": {
609
+ * "hostVer": "x",
610
+ * "uniVer": "x",
611
+ * "unixVer": "x"
612
+ * },
613
+ * "baidu": {
614
+ * "hostVer": "x",
615
+ * "uniVer": "x",
616
+ * "unixVer": "x"
617
+ * },
618
+ * "toutiao": {
619
+ * "hostVer": "x",
620
+ * "uniVer": "x",
621
+ * "unixVer": "x"
622
+ * },
623
+ * "lark": {
624
+ * "hostVer": "x",
625
+ * "uniVer": "x",
626
+ * "unixVer": "x"
627
+ * },
628
+ * "qq": {
629
+ * "hostVer": "x",
630
+ * "uniVer": "x",
631
+ * "unixVer": "x"
632
+ * },
633
+ * "kuaishou": {
634
+ * "hostVer": "x",
635
+ * "uniVer": "x",
636
+ * "unixVer": "x"
637
+ * },
638
+ * "jd": {
639
+ * "hostVer": "x",
640
+ * "uniVer": "x",
641
+ * "unixVer": "x"
642
+ * }
643
+ * }
644
+ * }
63
645
  */
64
646
  interface OnCompassChangeSuccess {
65
647
  /**
66
648
  * 面对的方向度数
67
- */
649
+ * @uniPlatform {
650
+ * "mp": {
651
+ * "weixin": {
652
+ * "hostVer": "√",
653
+ * "uniVer": "√",
654
+ * "unixVer": "4.41"
655
+ * },
656
+ * "alipay": {
657
+ * "hostVer": "x",
658
+ * "uniVer": "x",
659
+ * "unixVer": "x"
660
+ * },
661
+ * "baidu": {
662
+ * "hostVer": "x",
663
+ * "uniVer": "x",
664
+ * "unixVer": "x"
665
+ * },
666
+ * "toutiao": {
667
+ * "hostVer": "x",
668
+ * "uniVer": "x",
669
+ * "unixVer": "x"
670
+ * },
671
+ * "lark": {
672
+ * "hostVer": "x",
673
+ * "uniVer": "x",
674
+ * "unixVer": "x"
675
+ * },
676
+ * "qq": {
677
+ * "hostVer": "x",
678
+ * "uniVer": "x",
679
+ * "unixVer": "x"
680
+ * },
681
+ * "kuaishou": {
682
+ * "hostVer": "x",
683
+ * "uniVer": "x",
684
+ * "unixVer": "x"
685
+ * },
686
+ * "jd": {
687
+ * "hostVer": "x",
688
+ * "uniVer": "x",
689
+ * "unixVer": "x"
690
+ * }
691
+ * }
692
+ * }
693
+ */
68
694
  direction: number;
695
+ /**
696
+ * 需要基础库: `2.4.0`
697
+ *
698
+ * 精度
699
+ *
700
+ * @uniPlatform {
701
+ * "mp": {
702
+ * "weixin": {
703
+ * "hostVer": "2.4.0",
704
+ * "uniVer": "√",
705
+ * "unixVer": "4.41"
706
+ * },
707
+ * "alipay": {
708
+ * "hostVer": "x",
709
+ * "uniVer": "x",
710
+ * "unixVer": "x"
711
+ * },
712
+ * "baidu": {
713
+ * "hostVer": "x",
714
+ * "uniVer": "x",
715
+ * "unixVer": "x"
716
+ * },
717
+ * "toutiao": {
718
+ * "hostVer": "x",
719
+ * "uniVer": "x",
720
+ * "unixVer": "x"
721
+ * },
722
+ * "lark": {
723
+ * "hostVer": "x",
724
+ * "uniVer": "x",
725
+ * "unixVer": "x"
726
+ * },
727
+ * "qq": {
728
+ * "hostVer": "x",
729
+ * "uniVer": "x",
730
+ * "unixVer": "x"
731
+ * },
732
+ * "kuaishou": {
733
+ * "hostVer": "x",
734
+ * "uniVer": "x",
735
+ * "unixVer": "x"
736
+ * },
737
+ * "jd": {
738
+ * "hostVer": "x",
739
+ * "uniVer": "x",
740
+ * "unixVer": "x"
741
+ * }
742
+ * }
743
+ * }
744
+ *
745
+ * @type any
746
+ */
747
+ accuracy?: any;
748
+ /**
749
+ * 错误信息
750
+ *
751
+ * @uniPlatform {
752
+ * "mp": {
753
+ * "weixin": {
754
+ * "hostVer": "√",
755
+ * "uniVer": "√",
756
+ * "unixVer": "4.41"
757
+ * },
758
+ * "alipay": {
759
+ * "hostVer": "x",
760
+ * "uniVer": "x",
761
+ * "unixVer": "x"
762
+ * },
763
+ * "baidu": {
764
+ * "hostVer": "x",
765
+ * "uniVer": "x",
766
+ * "unixVer": "x"
767
+ * },
768
+ * "toutiao": {
769
+ * "hostVer": "x",
770
+ * "uniVer": "x",
771
+ * "unixVer": "x"
772
+ * },
773
+ * "lark": {
774
+ * "hostVer": "x",
775
+ * "uniVer": "x",
776
+ * "unixVer": "x"
777
+ * },
778
+ * "qq": {
779
+ * "hostVer": "x",
780
+ * "uniVer": "x",
781
+ * "unixVer": "x"
782
+ * },
783
+ * "kuaishou": {
784
+ * "hostVer": "x",
785
+ * "uniVer": "x",
786
+ * "unixVer": "x"
787
+ * },
788
+ * "jd": {
789
+ * "hostVer": "x",
790
+ * "uniVer": "x",
791
+ * "unixVer": "x"
792
+ * }
793
+ * }
794
+ * }
795
+ */
796
+ errMsg?: string;
69
797
  }
70
798
 
71
799
  export type OnCompassChange = (result: OnCompassChangeSuccess) => void
@@ -76,288 +804,292 @@ export interface Uni {
76
804
  * 监听罗盘数据
77
805
  *
78
806
  * @tutorial https://uniapp.dcloud.io/api/system/compass.html#oncompasschange
79
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/compass.html#oncompasschange
807
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/compass.html#oncompasschange
80
808
  * @uniPlatform {
81
- * "app": {
82
- * "android": {
83
- * "osVer": "5.0",
84
- * "uniVer": "√",
85
- * "unixVer": "x"
86
- * },
87
- * "ios": {
88
- * "osVer": "12.0",
89
- * "uniVer": "√",
90
- * "unixVer": "x"
91
- * },
92
- * "harmony": {
93
- * "osVer": "x",
94
- * "uniVer": "x",
95
- * "unixVer": "x"
96
- * }
97
- * },
98
- * "mp": {
99
- * "weixin": {
100
- * "hostVer": "√",
101
- * "uniVer": "√",
102
- * "unixVer": "4.41"
103
- * },
104
- * "alipay": {
105
- * "hostVer": "√",
106
- * "uniVer": "x",
107
- * "unixVer": "x"
108
- * },
109
- * "baidu": {
110
- * "hostVer": "√",
111
- * "uniVer": "x",
112
- * "unixVer": "x"
113
- * },
114
- * "toutiao": {
115
- * "hostVer": "√",
116
- * "uniVer": "x",
117
- * "unixVer": "x"
118
- * },
119
- * "lark": {
120
- * "hostVer": "√",
121
- * "uniVer": "x",
122
- * "unixVer": "x"
123
- * },
124
- * "qq": {
125
- * "hostVer": "√",
126
- * "uniVer": "x",
127
- * "unixVer": "x"
128
- * },
129
- * "kuaishou": {
130
- * "hostVer": "√",
131
- * "uniVer": "√",
132
- * "unixVer": "x"
133
- * },
134
- * "jd": {
135
- * "hostVer": "√",
136
- * "uniVer": "x",
137
- * "unixVer": "x"
138
- * }
139
- * },
140
- * "web": {
141
- * "uniVer": "√",
142
- * "unixVer": "4.0"
143
- * }
809
+ * "app": {
810
+ * "android": {
811
+ * "osVer": "5.0",
812
+ * "uniVer": "√",
813
+ * "unixVer": "x"
814
+ * },
815
+ * "ios": {
816
+ * "osVer": "12.0",
817
+ * "uniVer": "√",
818
+ * "unixVer": "x"
819
+ * },
820
+ * "harmony": {
821
+ * "osVer": "x",
822
+ * "uniVer": "x",
823
+ * "unixVer": "x"
824
+ * }
825
+ * },
826
+ * "mp": {
827
+ * "weixin": {
828
+ * "hostVer": "√",
829
+ * "uniVer": "√",
830
+ * "unixVer": "4.41"
831
+ * },
832
+ * "alipay": {
833
+ * "hostVer": "√",
834
+ * "uniVer": "x",
835
+ * "unixVer": "x"
836
+ * },
837
+ * "baidu": {
838
+ * "hostVer": "√",
839
+ * "uniVer": "x",
840
+ * "unixVer": "x"
841
+ * },
842
+ * "toutiao": {
843
+ * "hostVer": "√",
844
+ * "uniVer": "x",
845
+ * "unixVer": "x"
846
+ * },
847
+ * "lark": {
848
+ * "hostVer": "√",
849
+ * "uniVer": "x",
850
+ * "unixVer": "x"
851
+ * },
852
+ * "qq": {
853
+ * "hostVer": "√",
854
+ * "uniVer": "x",
855
+ * "unixVer": "x"
856
+ * },
857
+ * "kuaishou": {
858
+ * "hostVer": "√",
859
+ * "uniVer": "√",
860
+ * "unixVer": "x"
861
+ * },
862
+ * "jd": {
863
+ * "hostVer": "√",
864
+ * "uniVer": "x",
865
+ * "unixVer": "x"
866
+ * }
867
+ * },
868
+ * "web": {
869
+ * "uniVer": "√",
870
+ * "unixVer": "4.0"
871
+ * }
144
872
  * }
145
- */
873
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.onCompassChange.html
874
+ */
146
875
  onCompassChange(callback: OnCompassChange): void;
147
876
  /**
148
877
  * 取消监听罗盘数据
149
878
  *
150
879
  * @tutorial https://uniapp.dcloud.io/api/system/compass.html#offcompasschange
151
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/compass.html#offcompasschange
880
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/compass.html#offcompasschange
152
881
  * @uniPlatform {
153
- * "app": {
154
- * "android": {
155
- * "osVer": "5.0",
156
- * "uniVer": "√",
157
- * "unixVer": "x"
158
- * },
159
- * "ios": {
160
- * "osVer": "12.0",
161
- * "uniVer": "√",
162
- * "unixVer": "x"
163
- * },
164
- * "harmony": {
165
- * "osVer": "x",
166
- * "uniVer": "x",
167
- * "unixVer": "x"
168
- * }
169
- * },
170
- * "mp": {
171
- * "weixin": {
172
- * "hostVer": "",
173
- * "uniVer": "√",
174
- * "unixVer": "x"
175
- * },
176
- * "alipay": {
177
- * "hostVer": "√",
178
- * "uniVer": "x",
179
- * "unixVer": "x"
180
- * },
181
- * "baidu": {
182
- * "hostVer": "√",
183
- * "uniVer": "x",
184
- * "unixVer": "x"
185
- * },
186
- * "toutiao": {
187
- * "hostVer": "√",
188
- * "uniVer": "x",
189
- * "unixVer": "x"
190
- * },
191
- * "lark": {
192
- * "hostVer": "√",
193
- * "uniVer": "x",
194
- * "unixVer": "x"
195
- * },
196
- * "qq": {
197
- * "hostVer": "√",
198
- * "uniVer": "x",
199
- * "unixVer": "x"
200
- * },
201
- * "kuaishou": {
202
- * "hostVer": "√",
203
- * "uniVer": "√",
204
- * "unixVer": "x"
205
- * },
206
- * "jd": {
207
- * "hostVer": "√",
208
- * "uniVer": "x",
209
- * "unixVer": "x"
210
- * }
211
- * },
212
- * "web": {
213
- * "uniVer": "√",
214
- * "unixVer": "4.0"
215
- * }
882
+ * "app": {
883
+ * "android": {
884
+ * "osVer": "5.0",
885
+ * "uniVer": "√",
886
+ * "unixVer": "x"
887
+ * },
888
+ * "ios": {
889
+ * "osVer": "12.0",
890
+ * "uniVer": "√",
891
+ * "unixVer": "x"
892
+ * },
893
+ * "harmony": {
894
+ * "osVer": "x",
895
+ * "uniVer": "x",
896
+ * "unixVer": "x"
897
+ * }
898
+ * },
899
+ * "mp": {
900
+ * "weixin": {
901
+ * "hostVer": "2.9.3",
902
+ * "uniVer": "√",
903
+ * "unixVer": "4.41"
904
+ * },
905
+ * "alipay": {
906
+ * "hostVer": "√",
907
+ * "uniVer": "x",
908
+ * "unixVer": "x"
909
+ * },
910
+ * "baidu": {
911
+ * "hostVer": "√",
912
+ * "uniVer": "x",
913
+ * "unixVer": "x"
914
+ * },
915
+ * "toutiao": {
916
+ * "hostVer": "√",
917
+ * "uniVer": "x",
918
+ * "unixVer": "x"
919
+ * },
920
+ * "lark": {
921
+ * "hostVer": "√",
922
+ * "uniVer": "x",
923
+ * "unixVer": "x"
924
+ * },
925
+ * "qq": {
926
+ * "hostVer": "√",
927
+ * "uniVer": "x",
928
+ * "unixVer": "x"
929
+ * },
930
+ * "kuaishou": {
931
+ * "hostVer": "√",
932
+ * "uniVer": "√",
933
+ * "unixVer": "x"
934
+ * },
935
+ * "jd": {
936
+ * "hostVer": "√",
937
+ * "uniVer": "x",
938
+ * "unixVer": "x"
939
+ * }
940
+ * },
941
+ * "web": {
942
+ * "uniVer": "√",
943
+ * "unixVer": "4.0"
944
+ * }
216
945
  * }
217
- */
218
- offCompassChange(callback: (result: any) => void): void;
946
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.offCompassChange.html
947
+ */
948
+ offCompassChange(callback: OnCompassChange): void;
219
949
  /**
220
950
  * 开始监听罗盘数据
221
951
  *
222
952
  * @tutorial https://uniapp.dcloud.io/api/system/compass.html#startcompass
223
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/compass.html#startcompass
953
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/compass.html#startcompass
224
954
  * @uniPlatform {
225
- * "app": {
226
- * "android": {
227
- * "osVer": "5.0",
228
- * "uniVer": "√",
229
- * "unixVer": "x"
230
- * },
231
- * "ios": {
232
- * "osVer": "12.0",
233
- * "uniVer": "√",
234
- * "unixVer": "x"
235
- * },
236
- * "harmony": {
237
- * "osVer": "x",
238
- * "uniVer": "x",
239
- * "unixVer": "x"
240
- * }
241
- * },
242
- * "mp": {
243
- * "weixin": {
244
- * "hostVer": "",
245
- * "uniVer": "√",
246
- * "unixVer": "x"
247
- * },
248
- * "alipay": {
249
- * "hostVer": "√",
250
- * "uniVer": "x",
251
- * "unixVer": "x"
252
- * },
253
- * "baidu": {
254
- * "hostVer": "√",
255
- * "uniVer": "√",
256
- * "unixVer": "x"
257
- * },
258
- * "toutiao": {
259
- * "hostVer": "√",
260
- * "uniVer": "√",
261
- * "unixVer": "x"
262
- * },
263
- * "lark": {
264
- * "hostVer": "√",
265
- * "uniVer": "√",
266
- * "unixVer": "x"
267
- * },
268
- * "qq": {
269
- * "hostVer": "√",
270
- * "uniVer": "√",
271
- * "unixVer": "x"
272
- * },
273
- * "kuaishou": {
274
- * "hostVer": "√",
275
- * "uniVer": "√",
276
- * "unixVer": "x"
277
- * },
278
- * "jd": {
279
- * "hostVer": "√",
280
- * "uniVer": "x",
281
- * "unixVer": "x"
282
- * }
283
- * },
284
- * "web": {
285
- * "uniVer": "√",
286
- * "unixVer": "4.0"
287
- * }
955
+ * "app": {
956
+ * "android": {
957
+ * "osVer": "5.0",
958
+ * "uniVer": "√",
959
+ * "unixVer": "x"
960
+ * },
961
+ * "ios": {
962
+ * "osVer": "12.0",
963
+ * "uniVer": "√",
964
+ * "unixVer": "x"
965
+ * },
966
+ * "harmony": {
967
+ * "osVer": "x",
968
+ * "uniVer": "x",
969
+ * "unixVer": "x"
970
+ * }
971
+ * },
972
+ * "mp": {
973
+ * "weixin": {
974
+ * "hostVer": "1.1.0",
975
+ * "uniVer": "√",
976
+ * "unixVer": "4.41"
977
+ * },
978
+ * "alipay": {
979
+ * "hostVer": "√",
980
+ * "uniVer": "x",
981
+ * "unixVer": "x"
982
+ * },
983
+ * "baidu": {
984
+ * "hostVer": "√",
985
+ * "uniVer": "√",
986
+ * "unixVer": "x"
987
+ * },
988
+ * "toutiao": {
989
+ * "hostVer": "√",
990
+ * "uniVer": "√",
991
+ * "unixVer": "x"
992
+ * },
993
+ * "lark": {
994
+ * "hostVer": "√",
995
+ * "uniVer": "√",
996
+ * "unixVer": "x"
997
+ * },
998
+ * "qq": {
999
+ * "hostVer": "√",
1000
+ * "uniVer": "√",
1001
+ * "unixVer": "x"
1002
+ * },
1003
+ * "kuaishou": {
1004
+ * "hostVer": "√",
1005
+ * "uniVer": "√",
1006
+ * "unixVer": "x"
1007
+ * },
1008
+ * "jd": {
1009
+ * "hostVer": "√",
1010
+ * "uniVer": "x",
1011
+ * "unixVer": "x"
1012
+ * }
1013
+ * },
1014
+ * "web": {
1015
+ * "uniVer": "√",
1016
+ * "unixVer": "4.0"
1017
+ * }
288
1018
  * }
289
- */
1019
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.startCompass.html
1020
+ */
290
1021
  startCompass(options?: StartCompassOptions): void;
291
1022
  /**
292
1023
  * 停止监听罗盘数据
293
1024
  *
294
1025
  * @tutorial https://uniapp.dcloud.io/api/system/compass.html#stopcompass
295
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/compass.html#stopcompass
1026
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/compass.html#stopcompass
296
1027
  * @uniPlatform {
297
- * "app": {
298
- * "android": {
299
- * "osVer": "5.0",
300
- * "uniVer": "√",
301
- * "unixVer": "x"
302
- * },
303
- * "ios": {
304
- * "osVer": "12.0",
305
- * "uniVer": "√",
306
- * "unixVer": "x"
307
- * },
308
- * "harmony": {
309
- * "osVer": "x",
310
- * "uniVer": "x",
311
- * "unixVer": "x"
312
- * }
313
- * },
314
- * "mp": {
315
- * "weixin": {
316
- * "hostVer": "",
317
- * "uniVer": "√",
318
- * "unixVer": "x"
319
- * },
320
- * "alipay": {
321
- * "hostVer": "√",
322
- * "uniVer": "x",
323
- * "unixVer": "x"
324
- * },
325
- * "baidu": {
326
- * "hostVer": "√",
327
- * "uniVer": "√",
328
- * "unixVer": "x"
329
- * },
330
- * "toutiao": {
331
- * "hostVer": "√",
332
- * "uniVer": "√",
333
- * "unixVer": "x"
334
- * },
335
- * "lark": {
336
- * "hostVer": "√",
337
- * "uniVer": "√",
338
- * "unixVer": "x"
339
- * },
340
- * "qq": {
341
- * "hostVer": "√",
342
- * "uniVer": "√",
343
- * "unixVer": "x"
344
- * },
345
- * "kuaishou": {
346
- * "hostVer": "√",
347
- * "uniVer": "√",
348
- * "unixVer": "x"
349
- * },
350
- * "jd": {
351
- * "hostVer": "√",
352
- * "uniVer": "x",
353
- * "unixVer": "x"
354
- * }
355
- * },
356
- * "web": {
357
- * "uniVer": "√",
358
- * "unixVer": "4.0"
359
- * }
1028
+ * "app": {
1029
+ * "android": {
1030
+ * "osVer": "5.0",
1031
+ * "uniVer": "√",
1032
+ * "unixVer": "x"
1033
+ * },
1034
+ * "ios": {
1035
+ * "osVer": "12.0",
1036
+ * "uniVer": "√",
1037
+ * "unixVer": "x"
1038
+ * },
1039
+ * "harmony": {
1040
+ * "osVer": "x",
1041
+ * "uniVer": "x",
1042
+ * "unixVer": "x"
1043
+ * }
1044
+ * },
1045
+ * "mp": {
1046
+ * "weixin": {
1047
+ * "hostVer": "1.1.0",
1048
+ * "uniVer": "√",
1049
+ * "unixVer": "4.41"
1050
+ * },
1051
+ * "alipay": {
1052
+ * "hostVer": "√",
1053
+ * "uniVer": "x",
1054
+ * "unixVer": "x"
1055
+ * },
1056
+ * "baidu": {
1057
+ * "hostVer": "√",
1058
+ * "uniVer": "√",
1059
+ * "unixVer": "x"
1060
+ * },
1061
+ * "toutiao": {
1062
+ * "hostVer": "√",
1063
+ * "uniVer": "√",
1064
+ * "unixVer": "x"
1065
+ * },
1066
+ * "lark": {
1067
+ * "hostVer": "√",
1068
+ * "uniVer": "√",
1069
+ * "unixVer": "x"
1070
+ * },
1071
+ * "qq": {
1072
+ * "hostVer": "√",
1073
+ * "uniVer": "√",
1074
+ * "unixVer": "x"
1075
+ * },
1076
+ * "kuaishou": {
1077
+ * "hostVer": "√",
1078
+ * "uniVer": "√",
1079
+ * "unixVer": "x"
1080
+ * },
1081
+ * "jd": {
1082
+ * "hostVer": "√",
1083
+ * "uniVer": "x",
1084
+ * "unixVer": "x"
1085
+ * }
1086
+ * },
1087
+ * "web": {
1088
+ * "uniVer": "√",
1089
+ * "unixVer": "4.0"
1090
+ * }
360
1091
  * }
361
- */
1092
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.stopCompass.html
1093
+ */
362
1094
  stopCompass(options?: StopCompassOptions): void;
363
1095
  }