@dcloudio/uni-app-x 0.7.59 → 0.7.60

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