@dcloudio/uni-app-x 0.7.13 → 0.7.14

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 (124) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +5 -6
  3. package/types/index.d.ts +1 -1
  4. package/types/native/CSSStyleDeclaration.d.ts +72 -0
  5. package/types/native/DOMRect.d.ts +180 -0
  6. package/types/native/DrawableContext.d.ts +628 -161
  7. package/types/native/IUniElement.d.ts +1834 -222
  8. package/types/native/SnapshotOptions.d.ts +0 -1
  9. package/types/native/UniApp.d.ts +17 -1
  10. package/types/native/UniEvent.d.ts +30 -0
  11. package/types/native/UniNativePage.d.ts +4 -0
  12. package/types/native/UniProvider.d.ts +14 -0
  13. package/types/native/UniResizeObserver.d.ts +92 -2
  14. package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
  15. package/types/native/UniSwiperChangeEvent.d.ts +24 -2
  16. package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
  17. package/types/native/UniWebViewErrorEvent.d.ts +3 -3
  18. package/types/native/UniWebViewLoadEvent.d.ts +2 -2
  19. package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
  20. package/types/native/UniWebViewMessageEvent.d.ts +1 -1
  21. package/types/native/global.d.ts +19 -9
  22. package/types/native/index.d.ts +1 -0
  23. package/types/page.d.ts +85 -0
  24. package/types/uni/global.d.ts +1 -0
  25. package/types/uni/index.d.ts +2 -1
  26. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  27. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  28. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -2
  30. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
  31. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
  32. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +56 -7
  33. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +87 -11
  34. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +292 -9
  35. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +533 -118
  36. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  37. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +2 -2
  38. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +4 -4
  39. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +88 -74
  40. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1357 -39
  41. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +102 -6
  42. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +164 -26
  43. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +4 -4
  44. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +14 -15
  45. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +661 -41
  46. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +13 -10
  47. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  48. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +2 -2
  49. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +90 -7
  50. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
  51. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
  52. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +466 -0
  53. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +152 -2
  54. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
  55. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
  56. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +42 -37
  57. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +193 -19
  58. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -10
  59. package/types/uni/uts-plugin-extend/README.md +3 -0
  60. package/types/uni/uts-plugin-extend/global.d.ts +14 -0
  61. package/types/uni/uts-plugin-extend/index.d.ts +16 -0
  62. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
  63. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
  64. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
  65. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
  66. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
  67. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
  68. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
  69. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
  70. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
  71. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
  72. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
  73. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
  74. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
  75. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
  76. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
  77. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
  78. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
  79. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
  80. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
  81. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
  82. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
  83. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +21 -0
  84. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +9 -0
  85. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +119 -0
  86. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
  87. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
  88. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
  89. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
  90. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
  91. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
  92. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/global.d.ts +21 -0
  93. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/index.d.ts +9 -0
  94. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/interface.d.ts +121 -0
  95. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
  96. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
  97. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
  98. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
  99. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
  102. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
  103. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +21 -0
  105. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +9 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +122 -0
  107. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
  108. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
  109. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
  110. package/types/uni-cloud/index.d.ts +4 -0
  111. package/types/uni-cloud/interface.d.ts +106 -17
  112. package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
  113. package/types/vue/LifeCycle.d.ts +32 -32
  114. package/types/vue/PickerViewChangeEvent.d.ts +10 -13
  115. package/types/vue/ProgressActiveendEvent.d.ts +9 -11
  116. package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
  117. package/types/vue/SliderChangeEvent.d.ts +9 -10
  118. package/types/vue/SwitchChangeEvent.d.ts +11 -13
  119. package/types/vue/UniCloudDBElement.d.ts +72 -75
  120. package/types/vue/UniFormElement.d.ts +17 -19
  121. package/types/vue/UniNavigatorElement.d.ts +1 -2
  122. package/types/vue/global.d.ts +190 -0
  123. package/types/vue/index.d.ts +10 -11
  124. package/types/vue-global/index.d.ts +1 -0
@@ -1,121 +1,536 @@
1
1
  export type GetDeviceInfoOptions = {
2
+ /**
3
+ * @description 过滤字段的字符串数组,假如要获取指定字段,传入此数组。
4
+ */
5
+ filter: Array<string>
6
+ }
7
+
8
+ export type GetDeviceInfoResult = {
9
+ /**
10
+ * 设备品牌
11
+ * @deprecated 已废弃,仅为了向下兼容保留
12
+ *
13
+ * @uniPlatform
14
+ * {
15
+ * "app": {
16
+ * "android": {
17
+ * "osVer": "5.0",
18
+ * "uniVer": "√",
19
+ * "unixVer": "3.9+"
20
+ * },
21
+ * "ios": {
22
+ * "osVer": "12.0",
23
+ * "uniVer": "√",
24
+ * "unixVer": "4.11"
25
+ * }
26
+ * },
27
+ * "web": {
28
+ * "uniVer": "x",
29
+ * "unixVer": "x"
30
+ * }
31
+ * }
32
+ */
33
+ brand?: string
34
+ /**
35
+ * 设备品牌
36
+ *
37
+ * @uniPlatform
38
+ * {
39
+ * "app": {
40
+ * "android": {
41
+ * "osVer": "5.0",
42
+ * "uniVer": "√",
43
+ * "unixVer": "3.9+"
44
+ * },
45
+ * "ios": {
46
+ * "osVer": "12.0",
47
+ * "uniVer": "√",
48
+ * "unixVer": "4.11"
49
+ * }
50
+ * },
51
+ * "web": {
52
+ * "uniVer": "x",
53
+ * "unixVer": "x"
54
+ * }
55
+ * }
56
+ */
57
+ deviceBrand?: string,
58
+ /**
59
+ * 设备 id 。由 uni-app 框架生成并存储,清空 Storage 会导致改变
60
+ *
61
+ * @uniPlatform
62
+ * {
63
+ * "app": {
64
+ * "android": {
65
+ * "osVer": "5.0",
66
+ * "uniVer": "√",
67
+ * "unixVer": "3.9+"
68
+ * },
69
+ * "ios": {
70
+ * "osVer": "12.0",
71
+ * "uniVer": "√",
72
+ * "unixVer": "4.11"
73
+ * }
74
+ * },
75
+ * "web": {
76
+ * "uniVer": "√",
77
+ * "unixVer": "4.0"
78
+ * }
79
+ * }
80
+ */
81
+ deviceId?: string,
82
+ /**
83
+ * 设备型号
84
+ * @deprecated 已废弃,仅为了向下兼容保留
85
+ *
86
+ * @uniPlatform
87
+ * {
88
+ * "app": {
89
+ * "android": {
90
+ * "osVer": "5.0",
91
+ * "uniVer": "√",
92
+ * "unixVer": "3.9+"
93
+ * },
94
+ * "ios": {
95
+ * "osVer": "12.0",
96
+ * "uniVer": "√",
97
+ * "unixVer": "4.11"
98
+ * }
99
+ * },
100
+ * "web": {
101
+ * "uniVer": "√",
102
+ * "unixVer": "4.0"
103
+ * }
104
+ * }
105
+ */
106
+ model?: string,
107
+ /**
108
+ * 设备型号
109
+ *
110
+ * @uniPlatform
111
+ * {
112
+ * "app": {
113
+ * "android": {
114
+ * "osVer": "5.0",
115
+ * "uniVer": "√",
116
+ * "unixVer": "3.9+"
117
+ * },
118
+ * "ios": {
119
+ * "osVer": "12.0",
120
+ * "uniVer": "√",
121
+ * "unixVer": "4.11"
122
+ * }
123
+ * },
124
+ * "web": {
125
+ * "uniVer": "√",
126
+ * "unixVer": "4.0"
127
+ * }
128
+ * }
129
+ */
130
+ deviceModel?: string,
131
+ /**
132
+ * 设备类型phone、pad、pc
133
+ *
134
+ * @uniPlatform
135
+ * {
136
+ * "app": {
137
+ * "android": {
138
+ * "osVer": "5.0",
139
+ * "uniVer": "√",
140
+ * "unixVer": "3.9+"
141
+ * },
142
+ * "ios": {
143
+ * "osVer": "12.0",
144
+ * "uniVer": "√",
145
+ * "unixVer": "4.11"
146
+ * }
147
+ * },
148
+ * "web": {
149
+ * "uniVer": "√",
150
+ * "unixVer": "4.0"
151
+ * }
152
+ * }
153
+ */
154
+ deviceType?: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance',
155
+ /**
156
+ * 设备方向 竖屏 portrait、横屏 landscape
157
+ *
158
+ * @uniPlatform
159
+ * {
160
+ * "app": {
161
+ * "android": {
162
+ * "osVer": "5.0",
163
+ * "uniVer": "√",
164
+ * "unixVer": "3.9+"
165
+ * },
166
+ * "ios": {
167
+ * "osVer": "12.0",
168
+ * "uniVer": "√",
169
+ * "unixVer": "4.11"
170
+ * }
171
+ * },
172
+ * "web": {
173
+ * "uniVer": "√",
174
+ * "unixVer": "4.0"
175
+ * }
176
+ * }
177
+ */
178
+ deviceOrientation?: string,
179
+ /**
180
+ * 设备像素比
181
+ *
182
+ * @uniPlatform
183
+ * {
184
+ * "app": {
185
+ * "android": {
186
+ * "osVer": "5.0",
187
+ * "uniVer": "√",
188
+ * "unixVer": "3.9+"
189
+ * },
190
+ * "ios": {
191
+ * "osVer": "12.0",
192
+ * "uniVer": "√",
193
+ * "unixVer": "4.11"
194
+ * }
195
+ * },
196
+ * "web": {
197
+ * "uniVer": "√",
198
+ * "unixVer": "4.0"
199
+ * }
200
+ * }
201
+ */
202
+ devicePixelRatio?: number,
203
+ /**
204
+ * 操作系统及版本
205
+ *
206
+ * @uniPlatform
207
+ * {
208
+ * "app": {
209
+ * "android": {
210
+ * "osVer": "5.0",
211
+ * "uniVer": "√",
212
+ * "unixVer": "3.9+"
213
+ * },
214
+ * "ios": {
215
+ * "osVer": "12.0",
216
+ * "uniVer": "√",
217
+ * "unixVer": "4.11"
218
+ * }
219
+ * },
220
+ * "web": {
221
+ * "uniVer": "√",
222
+ * "unixVer": "4.0"
223
+ * }
224
+ * }
225
+ */
226
+ system?: string,
227
+ /**
228
+ * 客户端平台
229
+ *
230
+ * @uniPlatform
231
+ * {
232
+ * "app": {
233
+ * "android": {
234
+ * "osVer": "5.0",
235
+ * "uniVer": "√",
236
+ * "unixVer": "3.9+"
237
+ * },
238
+ * "ios": {
239
+ * "osVer": "12.0",
240
+ * "uniVer": "√",
241
+ * "unixVer": "4.11"
242
+ * }
243
+ * },
244
+ * "web": {
245
+ * "uniVer": "√",
246
+ * "unixVer": "4.0"
247
+ * }
248
+ * }
249
+ */
250
+ platform?: 'ios' | 'android' | 'mac' | 'windows' | 'linux',
251
+ /**
252
+ * 是否root。iOS 为是否越狱
253
+ *
254
+ * @uniPlatform
255
+ * {
256
+ * "app": {
257
+ * "android": {
258
+ * "osVer": "5.0",
259
+ * "uniVer": "x",
260
+ * "unixVer": "3.9+"
261
+ * },
262
+ * "ios": {
263
+ * "osVer": "12.0",
264
+ * "uniVer": "x",
265
+ * "unixVer": "4.11"
266
+ * }
267
+ * },
268
+ * "web": {
269
+ * "uniVer": "x",
270
+ * "unixVer": "x"
271
+ * }
272
+ * }
273
+ */
274
+ isRoot?: boolean,
275
+ /**
276
+ * 是否是模拟器
277
+ *
278
+ * @uniPlatform
279
+ * {
280
+ * "app": {
281
+ * "android": {
282
+ * "osVer": "5.0",
283
+ * "uniVer": "x",
284
+ * "unixVer": "3.9+"
285
+ * },
286
+ * "ios": {
287
+ * "osVer": "12.0",
288
+ * "uniVer": "x",
289
+ * "unixVer": "4.11"
290
+ * }
291
+ * },
292
+ * "web": {
293
+ * "uniVer": "x",
294
+ * "unixVer": "x"
295
+ * }
296
+ * }
297
+ */
298
+ isSimulator?: boolean,
299
+ /**
300
+ * adb是否开启
301
+ *
302
+ * @uniPlatform
303
+ * {
304
+ * "app": {
305
+ * "android": {
306
+ * "osVer": "5.0",
307
+ * "uniVer": "x",
308
+ * "unixVer": "√"
309
+ * },
310
+ * "ios": {
311
+ * "osVer": "x",
312
+ * "uniVer": "x",
313
+ * "unixVer": "x"
314
+ * }
315
+ * },
316
+ * "web": {
317
+ * "uniVer": "x",
318
+ * "unixVer": "x"
319
+ * }
320
+ * }
321
+ */
322
+ isUSBDebugging?: boolean,
323
+ /**
324
+ * 系统名称
325
+ *
326
+ * @uniPlatform
327
+ * {
328
+ * "app": {
329
+ * "android": {
330
+ * "osVer": "5.0",
331
+ * "uniVer": "x",
332
+ * "unixVer": "4.18"
333
+ * },
334
+ * "ios": {
335
+ * "osVer": "12.0",
336
+ * "uniVer": "x",
337
+ * "unixVer": "4.18"
338
+ * }
339
+ * },
340
+ * "web": {
341
+ * "uniVer": "x",
342
+ * "unixVer": "4.18"
343
+ * }
344
+ * }
345
+ */
346
+ osName?: 'ios' | 'android' | 'macos' | 'windows' | 'linux' | null,
347
+ /**
348
+ * 操作系统版本。如 ios 版本,andriod 版本
349
+ *
350
+ * @uniPlatform
351
+ * {
352
+ * "app": {
353
+ * "android": {
354
+ * "osVer": "5.0",
355
+ * "uniVer": "x",
356
+ * "unixVer": "4.18"
357
+ * },
358
+ * "ios": {
359
+ * "osVer": "12.0",
360
+ * "uniVer": "x",
361
+ * "unixVer": "4.18"
362
+ * }
363
+ * },
364
+ * "web": {
365
+ * "uniVer": "x",
366
+ * "unixVer": "4.18"
367
+ * }
368
+ * }
369
+ */
370
+ osVersion?: string | null,
371
+ /**
372
+ * 操作系统语言
373
+ *
374
+ * @uniPlatform
375
+ * {
376
+ * "app": {
377
+ * "android": {
378
+ * "osVer": "5.0",
379
+ * "uniVer": "x",
380
+ * "unixVer": "4.18"
381
+ * },
382
+ * "ios": {
383
+ * "osVer": "12.0",
384
+ * "uniVer": "x",
385
+ * "unixVer": "4.18"
386
+ * }
387
+ * },
388
+ * "web": {
389
+ * "uniVer": "x",
390
+ * "unixVer": "x"
391
+ * }
392
+ * }
393
+ */
394
+ osLanguage?: string | null,
395
+ /**
396
+ * 操作系统主题
397
+ *
398
+ * @uniPlatform
399
+ * {
400
+ * "app": {
401
+ * "android": {
402
+ * "osVer": "5.0",
403
+ * "uniVer": "x",
404
+ * "unixVer": "4.18"
405
+ * },
406
+ * "ios": {
407
+ * "osVer": "12.0",
408
+ * "uniVer": "x",
409
+ * "unixVer": "4.18"
410
+ * }
411
+ * },
412
+ * "web": {
413
+ * "uniVer": "x",
414
+ * "unixVer": "x"
415
+ * }
416
+ * }
417
+ */
418
+ osTheme?: 'light' | 'dark' | null,
419
+ /**
420
+ * Android 系统API库的版本。
421
+ *
422
+ * @uniPlatform
423
+ * {
424
+ * "app": {
425
+ * "android": {
426
+ * "osVer": "5.0",
427
+ * "uniVer": "x",
428
+ * "unixVer": "4.18"
429
+ * },
430
+ * "ios": {
431
+ * "osVer": "x",
432
+ * "uniVer": "x",
433
+ * "unixVer": "x"
434
+ * }
435
+ * },
436
+ * "web": {
437
+ * "uniVer": "x",
438
+ * "unixVer": "x"
439
+ * }
440
+ * }
441
+ */
442
+ osAndroidAPILevel?: number | null,
443
+ /**
444
+ * rom 名称。Android 部分机型获取不到值。iOS 恒为 `ios`
445
+ *
446
+ * @uniPlatform
447
+ * {
448
+ * "app": {
449
+ * "android": {
450
+ * "osVer": "5.0",
451
+ * "uniVer": "x",
452
+ * "unixVer": "4.18"
453
+ * },
454
+ * "ios": {
455
+ * "osVer": "12.0",
456
+ * "uniVer": "x",
457
+ * "unixVer": "4.18"
458
+ * }
459
+ * },
460
+ * "web": {
461
+ * "uniVer": "x",
462
+ * "unixVer": "x"
463
+ * }
464
+ * }
465
+ */
466
+ romName?: string | null,
467
+ /**
468
+ * rom 版本号。Android 部分机型获取不到值。iOS 为操作系统版本号(同 `osVersion`)。
469
+ *
470
+ * @uniPlatform
471
+ * {
472
+ * "app": {
473
+ * "android": {
474
+ * "osVer": "5.0",
475
+ * "uniVer": "x",
476
+ * "unixVer": "4.18"
477
+ * },
478
+ * "ios": {
479
+ * "osVer": "12.0",
480
+ * "uniVer": "x",
481
+ * "unixVer": "4.18"
482
+ * }
483
+ * },
484
+ * "web": {
485
+ * "uniVer": "x",
486
+ * "unixVer": "x"
487
+ * }
488
+ * }
489
+ */
490
+ romVersion?: string | null,
491
+ }
492
+
493
+
2
494
  /**
3
- * @description 过滤字段的字符串数组,假如要获取指定字段,传入此数组。
495
+ * @param [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
4
496
  */
5
- filter: Array<string>
6
- }
7
-
8
- export type GetDeviceInfoResult = {
9
- /**
10
- * 设备品牌
11
- */
12
- brand?: string
13
- /**
14
- * 设备品牌
15
- */
16
- deviceBrand?: string,
17
- /**
18
- * 设备 id 。由 uni-app 框架生成并存储,清空 Storage 会导致改变
19
- */
20
- deviceId?: string,
21
- /**
22
- * 设备型号
23
- */
24
- model?: string,
25
- /**
26
- * 设备型号
27
- */
28
- deviceModel?: string,
29
- /**
30
- * 设备类型phone、pad、pc
31
- */
32
- deviceType?: string,
33
- /**
34
- * 设备方向 竖屏 portrait、横屏 landscape
35
- */
36
- deviceOrientation?: string,
37
- /**
38
- * 设备像素比
39
- */
40
- devicePixelRatio?: string,
41
- /**
42
- * 操作系统及版本
43
- */
44
- system?: string,
45
- /**
46
- * 客户端平台
47
- */
48
- platform?: string,
49
- /**
50
- * 是否root
51
- */
52
- isRoot?: boolean,
53
- /**
54
- * 是否是模拟器
55
- */
56
- isSimulator?: boolean,
57
- /**
58
- * adb是否开启
59
- *
60
- * @uniPlatform
61
- * {
62
- * "app": {
63
- * "android": {
64
- * "osVer": "5.0",
65
- * "uniVer": "x",
66
- * "unixVer": "√"
67
- * },
68
- * "ios": {
69
- * "osVer": "x",
70
- * "uniVer": "x",
71
- * "unixVer": "x"
72
- * }
73
- * }
74
- * }
75
- */
76
- isUSBDebugging?: boolean,
77
- }
78
-
79
-
80
- /**
81
- * @param [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
82
- */
83
- export type GetDeviceInfo = (options?: GetDeviceInfoOptions | null) => GetDeviceInfoResult;
84
-
85
-
86
- export interface Uni {
87
- /**
88
- * GetDeviceInfo(Object object)
89
- * @description
90
- * 获取设备信息
91
- * @param {GetDeviceInfoOptions} options [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
92
- * @return {object}
93
- * @tutorial https://uniapp.dcloud.net.cn/api/system/getDeviceInfo.html
94
- * @uniPlatform
95
- * {
96
- * "app": {
97
- * "android": {
98
- * "osVer": "5.0",
99
- * "uniVer": "√",
100
- * "unixVer": "3.9+"
101
- * },
102
- * "ios": {
103
- * "osVer": "12.0",
104
- * "uniVer": "√",
105
- * "unixVer": "4.11"
106
- * }
107
- * },
108
- * "web": {
109
- * "uniVer": "√",
110
- * "unixVer": "4.0"
111
- * }
112
- * }
113
- * @example
114
- ```typescript
115
- uni.getDeviceInfo({
116
- filter:[]
117
- })
118
- ```
119
- */
120
- getDeviceInfo(options?: GetDeviceInfoOptions | null): GetDeviceInfoResult;
121
- }
497
+ export type GetDeviceInfo = (options?: GetDeviceInfoOptions | null) => GetDeviceInfoResult;
498
+
499
+
500
+ export interface Uni {
501
+ /**
502
+ * GetDeviceInfo(Object object)
503
+ * @description
504
+ * 获取设备信息
505
+ * @param {GetDeviceInfoOptions} options [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
506
+ * @return {object}
507
+ * @tutorial https://uniapp.dcloud.net.cn/api/system/getDeviceInfo.html
508
+ * @uniPlatform
509
+ * {
510
+ * "app": {
511
+ * "android": {
512
+ * "osVer": "5.0",
513
+ * "uniVer": "√",
514
+ * "unixVer": "3.9+"
515
+ * },
516
+ * "ios": {
517
+ * "osVer": "12.0",
518
+ * "uniVer": "√",
519
+ * "unixVer": "4.11"
520
+ * }
521
+ * },
522
+ * "web": {
523
+ * "uniVer": "√",
524
+ * "unixVer": "4.0"
525
+ * }
526
+ * }
527
+ * @example
528
+ ```typescript
529
+ uni.getDeviceInfo({
530
+ filter:[]
531
+ })
532
+ ```
533
+ */
534
+ getDeviceInfo(options?: GetDeviceInfoOptions | null): GetDeviceInfoResult;
535
+ }
536
+
@@ -112,7 +112,7 @@ export type GetLocationOptions = {
112
112
  * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02
113
113
  * @defaultValue wgs84
114
114
  */
115
- type?: "wgs84" | "gcj02" | "gps" | null,
115
+ type?: "wgs84" | "gcj02" | null,
116
116
  /**
117
117
  * 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
118
118
  * @type boolean
@@ -15,9 +15,9 @@ export interface Uni {
15
15
  * "unixVer": "3.9+"
16
16
  * },
17
17
  * "ios": {
18
- * "osVer": "9.0",
18
+ * "osVer": "12.0",
19
19
  * "uniVer": "√",
20
- * "unixVer": "4.06"
20
+ * "unixVer": "4.11"
21
21
  * }
22
22
  * },
23
23
  * "web": {
@@ -131,12 +131,12 @@ export interface Uni {
131
131
  * "app": {
132
132
  * "android": {
133
133
  * "osVer": "5.0",
134
- * "uniVer": "",
134
+ * "uniVer": "x",
135
135
  * "unixVer": "3.91"
136
136
  * },
137
137
  * "ios": {
138
- * "osVer": "10.0",
139
- * "uniVer": "",
138
+ * "osVer": "12.0",
139
+ * "uniVer": "x",
140
140
  * "unixVer": "x"
141
141
  * }
142
142
  * },
@@ -153,5 +153,5 @@ export interface Uni {
153
153
  * }
154
154
  * }
155
155
  */
156
- getPerformance: Performance
156
+ getPerformance: GetPerformance
157
157
  }