@dcloudio/uni-app-x 0.7.121 → 0.7.122

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 (110) hide show
  1. package/README.md +87 -0
  2. package/package.json +1 -1
  3. package/types/dom2-internal/UniCommon.d.ts +7 -2
  4. package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
  5. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  6. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  7. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  8. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  9. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  10. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
  11. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
  12. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
  13. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  14. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  15. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
  16. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
  17. package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
  18. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
  19. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
  20. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
  21. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  22. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  23. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  24. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  25. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  26. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  27. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  28. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  29. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
  30. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  31. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  32. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  33. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
  34. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
  35. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
  36. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  37. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  38. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  39. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  40. package/types/uni/uts-plugin-biz/global.d.ts +9 -0
  41. package/types/uni/uts-plugin-biz/index.d.ts +9 -0
  42. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  43. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  44. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  45. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
  46. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
  47. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  48. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
  49. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
  50. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  51. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
  52. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
  53. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
  54. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  55. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  56. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  57. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  58. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  59. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  60. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  61. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  62. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  63. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  64. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  65. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
  66. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
  67. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  68. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  69. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  70. package/types/uni/uts-plugin-component/global.d.ts +8 -1
  71. package/types/uni/uts-plugin-component/index.d.ts +8 -1
  72. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  73. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  74. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  75. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
  76. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
  77. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
  78. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  79. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  80. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
  81. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
  82. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
  83. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
  84. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
  85. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
  86. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
  87. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  88. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  89. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  90. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  91. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  92. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  93. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  94. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  95. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
  96. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  97. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  98. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  99. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
  100. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
  101. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
  102. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  103. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  104. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  105. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
  107. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
  108. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
  109. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
  110. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
@@ -1,917 +0,0 @@
1
- export interface Uni {
2
- /**
3
- * 监听加速度数据
4
- *
5
- * @tutorial https://uniapp.dcloud.io/api/system/accelerometer.html#onaccelerometerchange
6
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/accelerometer.html#onaccelerometerchange
7
- * @uniPlatform {
8
- * "app": {
9
- * "android": {
10
- * "osVer": "5.0",
11
- * "uniVer": "2.9.6",
12
- * "unixVer": "x"
13
- * },
14
- * "ios": {
15
- * "osVer": "9.0",
16
- * "uniVer": "2.9.6",
17
- * "unixVer": "x"
18
- * },
19
- * "harmony": {
20
- * "osVer": "x",
21
- * "uniVer": "x",
22
- * "unixVer": "x"
23
- * }
24
- * },
25
- * "mp": {
26
- * "weixin": {
27
- * "hostVer": "√",
28
- * "uniVer": "2.9.3",
29
- * "unixVer": "4.41"
30
- * },
31
- * "alipay": {
32
- * "hostVer": "x",
33
- * "uniVer": "x",
34
- * "unixVer": "x"
35
- * },
36
- * "baidu": {
37
- * "hostVer": "x",
38
- * "uniVer": "x",
39
- * "unixVer": "x"
40
- * },
41
- * "toutiao": {
42
- * "hostVer": "x",
43
- * "uniVer": "x",
44
- * "unixVer": "x"
45
- * },
46
- * "lark": {
47
- * "hostVer": "x",
48
- * "uniVer": "x",
49
- * "unixVer": "x"
50
- * },
51
- * "qq": {
52
- * "hostVer": "x",
53
- * "uniVer": "x",
54
- * "unixVer": "x"
55
- * },
56
- * "kuaishou": {
57
- * "hostVer": "√",
58
- * "uniVer": "√",
59
- * "unixVer": "x"
60
- * },
61
- * "jd": {
62
- * "hostVer": "√",
63
- * "uniVer": "√",
64
- * "unixVer": "x"
65
- * }
66
- * },
67
- * "web": {
68
- * "uniVer": "2.9.6",
69
- * "unixVer": "x"
70
- * }
71
- * }
72
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.onAccelerometerChange.html
73
- */
74
- onAccelerometerChange: OnAccelerometerChange;
75
- /**
76
- * 取消监听加速度数据
77
- *
78
- * @tutorial https://uniapp.dcloud.io/api/system/accelerometer.html#offaccelerometerchange
79
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/accelerometer.html#offaccelerometerchange
80
- * @uniPlatform {
81
- * "app": {
82
- * "android": {
83
- * "osVer": "5.0",
84
- * "uniVer": "2.9.6",
85
- * "unixVer": "x"
86
- * },
87
- * "ios": {
88
- * "osVer": "9.0",
89
- * "uniVer": "2.9.6",
90
- * "unixVer": "x"
91
- * },
92
- * "harmony": {
93
- * "osVer": "x",
94
- * "uniVer": "x",
95
- * "unixVer": "x"
96
- * }
97
- * },
98
- * "mp": {
99
- * "weixin": {
100
- * "hostVer": "2.9.3",
101
- * "uniVer": "2.9.3",
102
- * "unixVer": "4.41"
103
- * },
104
- * "alipay": {
105
- * "hostVer": "x",
106
- * "uniVer": "x",
107
- * "unixVer": "x"
108
- * },
109
- * "baidu": {
110
- * "hostVer": "x",
111
- * "uniVer": "x",
112
- * "unixVer": "x"
113
- * },
114
- * "toutiao": {
115
- * "hostVer": "x",
116
- * "uniVer": "x",
117
- * "unixVer": "x"
118
- * },
119
- * "lark": {
120
- * "hostVer": "x",
121
- * "uniVer": "x",
122
- * "unixVer": "x"
123
- * },
124
- * "qq": {
125
- * "hostVer": "x",
126
- * "uniVer": "x",
127
- * "unixVer": "x"
128
- * },
129
- * "kuaishou": {
130
- * "hostVer": "√",
131
- * "uniVer": "√",
132
- * "unixVer": "x"
133
- * },
134
- * "jd": {
135
- * "hostVer": "√",
136
- * "uniVer": "√",
137
- * "unixVer": "x"
138
- * }
139
- * },
140
- * "web": {
141
- * "uniVer": "2.9.6",
142
- * "unixVer": "x"
143
- * }
144
- * }
145
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.offAccelerometerChange.html
146
- */
147
- offAccelerometerChange: OffAccelerometerChange;
148
- /**
149
- * 开始监听加速度数据
150
- *
151
- * @tutorial https://uniapp.dcloud.io/api/system/accelerometer.html#startaccelerometer
152
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/accelerometer.html#startaccelerometer
153
- * @uniPlatform {
154
- * "app": {
155
- * "android": {
156
- * "osVer": "5.0",
157
- * "uniVer": "√",
158
- * "unixVer": "x"
159
- * },
160
- * "ios": {
161
- * "osVer": "9.0",
162
- * "uniVer": "√",
163
- * "unixVer": "x"
164
- * },
165
- * "harmony": {
166
- * "osVer": "x",
167
- * "uniVer": "x",
168
- * "unixVer": "x"
169
- * }
170
- * },
171
- * "mp": {
172
- * "weixin": {
173
- * "hostVer": "1.1.0",
174
- * "uniVer": "√",
175
- * "unixVer": "4.41"
176
- * },
177
- * "alipay": {
178
- * "hostVer": "x",
179
- * "uniVer": "x",
180
- * "unixVer": "x"
181
- * },
182
- * "baidu": {
183
- * "hostVer": "√",
184
- * "uniVer": "√",
185
- * "unixVer": "x"
186
- * },
187
- * "toutiao": {
188
- * "hostVer": "√",
189
- * "uniVer": "√",
190
- * "unixVer": "x"
191
- * },
192
- * "lark": {
193
- * "hostVer": "√",
194
- * "uniVer": "√",
195
- * "unixVer": "x"
196
- * },
197
- * "qq": {
198
- * "hostVer": "√",
199
- * "uniVer": "√",
200
- * "unixVer": "x"
201
- * },
202
- * "kuaishou": {
203
- * "hostVer": "√",
204
- * "uniVer": "√",
205
- * "unixVer": "x"
206
- * },
207
- * "jd": {
208
- * "hostVer": "√",
209
- * "uniVer": "√",
210
- * "unixVer": "x"
211
- * }
212
- * },
213
- * "web": {
214
- * "uniVer": "2.9.6",
215
- * "unixVer": "x"
216
- * }
217
- * }
218
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.startAccelerometer.html
219
- */
220
- startAccelerometer: StartAccelerometer;
221
- /**
222
- * 停止监听加速度数据
223
- *
224
- * @tutorial https://uniapp.dcloud.io/api/system/accelerometer.html#stopaccelerometer
225
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/accelerometer.html#stopaccelerometer
226
- * @uniPlatform {
227
- * "app": {
228
- * "android": {
229
- * "osVer": "5.0",
230
- * "uniVer": "√",
231
- * "unixVer": "x"
232
- * },
233
- * "ios": {
234
- * "osVer": "9.0",
235
- * "uniVer": "√",
236
- * "unixVer": "x"
237
- * },
238
- * "harmony": {
239
- * "osVer": "x",
240
- * "uniVer": "x",
241
- * "unixVer": "x"
242
- * }
243
- * },
244
- * "mp": {
245
- * "weixin": {
246
- * "hostVer": "1.1.0",
247
- * "uniVer": "√",
248
- * "unixVer": "4.41"
249
- * },
250
- * "alipay": {
251
- * "hostVer": "x",
252
- * "uniVer": "x",
253
- * "unixVer": "x"
254
- * },
255
- * "baidu": {
256
- * "hostVer": "√",
257
- * "uniVer": "√",
258
- * "unixVer": "x"
259
- * },
260
- * "toutiao": {
261
- * "hostVer": "√",
262
- * "uniVer": "√",
263
- * "unixVer": "x"
264
- * },
265
- * "lark": {
266
- * "hostVer": "√",
267
- * "uniVer": "√",
268
- * "unixVer": "x"
269
- * },
270
- * "qq": {
271
- * "hostVer": "√",
272
- * "uniVer": "√",
273
- * "unixVer": "x"
274
- * },
275
- * "kuaishou": {
276
- * "hostVer": "√",
277
- * "uniVer": "√",
278
- * "unixVer": "x"
279
- * },
280
- * "jd": {
281
- * "hostVer": "√",
282
- * "uniVer": "√",
283
- * "unixVer": "x"
284
- * }
285
- * },
286
- * "web": {
287
- * "uniVer": "2.9.6",
288
- * "unixVer": "x"
289
- * }
290
- * }
291
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.stopAccelerometer.html
292
- */
293
- stopAccelerometer: StopAccelerometer;
294
- }
295
-
296
- export type OnAccelerometerChangeCallbackResult = {
297
- /**
298
- * X 轴
299
- * @uniPlatform {
300
- * "mp": {
301
- * "weixin": {
302
- * "hostVer": "√",
303
- * "uniVer": "√",
304
- * "unixVer": "4.41"
305
- * },
306
- * "alipay": {
307
- * "hostVer": "x",
308
- * "uniVer": "x",
309
- * "unixVer": "x"
310
- * },
311
- * "baidu": {
312
- * "hostVer": "x",
313
- * "uniVer": "x",
314
- * "unixVer": "x"
315
- * },
316
- * "toutiao": {
317
- * "hostVer": "x",
318
- * "uniVer": "x",
319
- * "unixVer": "x"
320
- * },
321
- * "lark": {
322
- * "hostVer": "x",
323
- * "uniVer": "x",
324
- * "unixVer": "x"
325
- * },
326
- * "qq": {
327
- * "hostVer": "x",
328
- * "uniVer": "x",
329
- * "unixVer": "x"
330
- * },
331
- * "kuaishou": {
332
- * "hostVer": "x",
333
- * "uniVer": "x",
334
- * "unixVer": "x"
335
- * },
336
- * "jd": {
337
- * "hostVer": "x",
338
- * "uniVer": "x",
339
- * "unixVer": "x"
340
- * }
341
- * }
342
- * }
343
- */
344
- x: number,
345
- /**
346
- * Y 轴
347
- * @uniPlatform {
348
- * "mp": {
349
- * "weixin": {
350
- * "hostVer": "√",
351
- * "uniVer": "√",
352
- * "unixVer": "4.41"
353
- * },
354
- * "alipay": {
355
- * "hostVer": "x",
356
- * "uniVer": "x",
357
- * "unixVer": "x"
358
- * },
359
- * "baidu": {
360
- * "hostVer": "x",
361
- * "uniVer": "x",
362
- * "unixVer": "x"
363
- * },
364
- * "toutiao": {
365
- * "hostVer": "x",
366
- * "uniVer": "x",
367
- * "unixVer": "x"
368
- * },
369
- * "lark": {
370
- * "hostVer": "x",
371
- * "uniVer": "x",
372
- * "unixVer": "x"
373
- * },
374
- * "qq": {
375
- * "hostVer": "x",
376
- * "uniVer": "x",
377
- * "unixVer": "x"
378
- * },
379
- * "kuaishou": {
380
- * "hostVer": "x",
381
- * "uniVer": "x",
382
- * "unixVer": "x"
383
- * },
384
- * "jd": {
385
- * "hostVer": "x",
386
- * "uniVer": "x",
387
- * "unixVer": "x"
388
- * }
389
- * }
390
- * }
391
- */
392
- y: number,
393
- /**
394
- * Z 轴
395
- * @uniPlatform {
396
- * "mp": {
397
- * "weixin": {
398
- * "hostVer": "√",
399
- * "uniVer": "√",
400
- * "unixVer": "4.41"
401
- * },
402
- * "alipay": {
403
- * "hostVer": "x",
404
- * "uniVer": "x",
405
- * "unixVer": "x"
406
- * },
407
- * "baidu": {
408
- * "hostVer": "x",
409
- * "uniVer": "x",
410
- * "unixVer": "x"
411
- * },
412
- * "toutiao": {
413
- * "hostVer": "x",
414
- * "uniVer": "x",
415
- * "unixVer": "x"
416
- * },
417
- * "lark": {
418
- * "hostVer": "x",
419
- * "uniVer": "x",
420
- * "unixVer": "x"
421
- * },
422
- * "qq": {
423
- * "hostVer": "x",
424
- * "uniVer": "x",
425
- * "unixVer": "x"
426
- * },
427
- * "kuaishou": {
428
- * "hostVer": "x",
429
- * "uniVer": "x",
430
- * "unixVer": "x"
431
- * },
432
- * "jd": {
433
- * "hostVer": "x",
434
- * "uniVer": "x",
435
- * "unixVer": "x"
436
- * }
437
- * }
438
- * }
439
- */
440
- z: number
441
- };
442
- export type OnAccelerometerChangeCallback = (result: OnAccelerometerChangeCallbackResult) => void;
443
- export type OnAccelerometerChange = (callback: OnAccelerometerChangeCallback) => void;
444
- export type OffAccelerometerChange = (callback: (result: any) => void) => void;
445
- export type StartAccelerometer = (options: StartAccelerometerOptions) => void;
446
- export type StartAccelerometerSuccess = {
447
- /**
448
- * 错误信息
449
- *
450
- * @uniPlatform {
451
- * "mp": {
452
- * "weixin": {
453
- * "hostVer": "√",
454
- * "uniVer": "√",
455
- * "unixVer": "4.41"
456
- * },
457
- * "alipay": {
458
- * "hostVer": "x",
459
- * "uniVer": "x",
460
- * "unixVer": "x"
461
- * },
462
- * "baidu": {
463
- * "hostVer": "x",
464
- * "uniVer": "x",
465
- * "unixVer": "x"
466
- * },
467
- * "toutiao": {
468
- * "hostVer": "x",
469
- * "uniVer": "x",
470
- * "unixVer": "x"
471
- * },
472
- * "lark": {
473
- * "hostVer": "x",
474
- * "uniVer": "x",
475
- * "unixVer": "x"
476
- * },
477
- * "qq": {
478
- * "hostVer": "x",
479
- * "uniVer": "x",
480
- * "unixVer": "x"
481
- * },
482
- * "kuaishou": {
483
- * "hostVer": "x",
484
- * "uniVer": "x",
485
- * "unixVer": "x"
486
- * },
487
- * "jd": {
488
- * "hostVer": "x",
489
- * "uniVer": "x",
490
- * "unixVer": "x"
491
- * }
492
- * }
493
- * }
494
- */
495
- errMsg?: string;
496
- };
497
- export type UniError = {
498
- errSubject: string,
499
- errCode: number,
500
- errMsg: string,
501
- data?: object | null,
502
- cause?: any | null
503
- };
504
- export type StartAccelerometerSuccessCallback = (result: StartAccelerometerSuccess) => void;
505
- export type StartAccelerometerFail = UniError;
506
- export type StartAccelerometerFailCallback = (result: StartAccelerometerFail) => void;
507
- export type StartAccelerometerComplete = any;
508
- export type StartAccelerometerCompleteCallback = (result: StartAccelerometerComplete) => void;
509
- export type StartAccelerometerOptions = {
510
- /**
511
- * 回调频率
512
- * @uniPlatform {
513
- * "mp": {
514
- * "weixin": {
515
- * "hostVer": "√",
516
- * "uniVer": "√",
517
- * "unixVer": "4.41"
518
- * },
519
- * "alipay": {
520
- * "hostVer": "x",
521
- * "uniVer": "x",
522
- * "unixVer": "x"
523
- * },
524
- * "baidu": {
525
- * "hostVer": "x",
526
- * "uniVer": "x",
527
- * "unixVer": "x"
528
- * },
529
- * "toutiao": {
530
- * "hostVer": "x",
531
- * "uniVer": "x",
532
- * "unixVer": "x"
533
- * },
534
- * "lark": {
535
- * "hostVer": "x",
536
- * "uniVer": "x",
537
- * "unixVer": "x"
538
- * },
539
- * "qq": {
540
- * "hostVer": "x",
541
- * "uniVer": "x",
542
- * "unixVer": "x"
543
- * },
544
- * "kuaishou": {
545
- * "hostVer": "x",
546
- * "uniVer": "x",
547
- * "unixVer": "x"
548
- * },
549
- * "jd": {
550
- * "hostVer": "x",
551
- * "uniVer": "x",
552
- * "unixVer": "x"
553
- * }
554
- * }
555
- * }
556
- */
557
- interval?:
558
- /**
559
- * 适用于更新游戏的回调频率,在 20ms/次 左右
560
- */
561
- 'game' |
562
- /**
563
- * 适用于更新游戏的回调频率,在 20ms/次 左右
564
- */
565
- 'ui' |
566
- /**
567
- * 普通的回调频率,在 200ms/次 左右
568
- */
569
- 'normal' | null,
570
- /**
571
- * 成功返回的回调函数
572
- * @uniPlatform {
573
- * "mp": {
574
- * "weixin": {
575
- * "hostVer": "√",
576
- * "uniVer": "√",
577
- * "unixVer": "4.41"
578
- * },
579
- * "alipay": {
580
- * "hostVer": "x",
581
- * "uniVer": "x",
582
- * "unixVer": "x"
583
- * },
584
- * "baidu": {
585
- * "hostVer": "x",
586
- * "uniVer": "x",
587
- * "unixVer": "x"
588
- * },
589
- * "toutiao": {
590
- * "hostVer": "x",
591
- * "uniVer": "x",
592
- * "unixVer": "x"
593
- * },
594
- * "lark": {
595
- * "hostVer": "x",
596
- * "uniVer": "x",
597
- * "unixVer": "x"
598
- * },
599
- * "qq": {
600
- * "hostVer": "x",
601
- * "uniVer": "x",
602
- * "unixVer": "x"
603
- * },
604
- * "kuaishou": {
605
- * "hostVer": "x",
606
- * "uniVer": "x",
607
- * "unixVer": "x"
608
- * },
609
- * "jd": {
610
- * "hostVer": "x",
611
- * "uniVer": "x",
612
- * "unixVer": "x"
613
- * }
614
- * }
615
- * }
616
- */
617
- success?: StartAccelerometerSuccessCallback | null,
618
- /**
619
- * 失败的回调函数
620
- * @uniPlatform {
621
- * "mp": {
622
- * "weixin": {
623
- * "hostVer": "√",
624
- * "uniVer": "√",
625
- * "unixVer": "4.41"
626
- * },
627
- * "alipay": {
628
- * "hostVer": "x",
629
- * "uniVer": "x",
630
- * "unixVer": "x"
631
- * },
632
- * "baidu": {
633
- * "hostVer": "x",
634
- * "uniVer": "x",
635
- * "unixVer": "x"
636
- * },
637
- * "toutiao": {
638
- * "hostVer": "x",
639
- * "uniVer": "x",
640
- * "unixVer": "x"
641
- * },
642
- * "lark": {
643
- * "hostVer": "x",
644
- * "uniVer": "x",
645
- * "unixVer": "x"
646
- * },
647
- * "qq": {
648
- * "hostVer": "x",
649
- * "uniVer": "x",
650
- * "unixVer": "x"
651
- * },
652
- * "kuaishou": {
653
- * "hostVer": "x",
654
- * "uniVer": "x",
655
- * "unixVer": "x"
656
- * },
657
- * "jd": {
658
- * "hostVer": "x",
659
- * "uniVer": "x",
660
- * "unixVer": "x"
661
- * }
662
- * }
663
- * }
664
- */
665
- fail?: StartAccelerometerFailCallback | null,
666
- /**
667
- * 结束的回调函数(调用成功、失败都会执行)
668
- * @uniPlatform {
669
- * "mp": {
670
- * "weixin": {
671
- * "hostVer": "√",
672
- * "uniVer": "√",
673
- * "unixVer": "4.41"
674
- * },
675
- * "alipay": {
676
- * "hostVer": "x",
677
- * "uniVer": "x",
678
- * "unixVer": "x"
679
- * },
680
- * "baidu": {
681
- * "hostVer": "x",
682
- * "uniVer": "x",
683
- * "unixVer": "x"
684
- * },
685
- * "toutiao": {
686
- * "hostVer": "x",
687
- * "uniVer": "x",
688
- * "unixVer": "x"
689
- * },
690
- * "lark": {
691
- * "hostVer": "x",
692
- * "uniVer": "x",
693
- * "unixVer": "x"
694
- * },
695
- * "qq": {
696
- * "hostVer": "x",
697
- * "uniVer": "x",
698
- * "unixVer": "x"
699
- * },
700
- * "kuaishou": {
701
- * "hostVer": "x",
702
- * "uniVer": "x",
703
- * "unixVer": "x"
704
- * },
705
- * "jd": {
706
- * "hostVer": "x",
707
- * "uniVer": "x",
708
- * "unixVer": "x"
709
- * }
710
- * }
711
- * }
712
- */
713
- complete?: StartAccelerometerCompleteCallback | null
714
- };
715
- export type StopAccelerometer = (options: StopAccelerometerOptions) => void;
716
- export type StopAccelerometerSuccess = {
717
- /**
718
- * 错误信息
719
- *
720
- * @uniPlatform {
721
- * "mp": {
722
- * "weixin": {
723
- * "hostVer": "√",
724
- * "uniVer": "√",
725
- * "unixVer": "4.41"
726
- * },
727
- * "alipay": {
728
- * "hostVer": "x",
729
- * "uniVer": "x",
730
- * "unixVer": "x"
731
- * },
732
- * "baidu": {
733
- * "hostVer": "x",
734
- * "uniVer": "x",
735
- * "unixVer": "x"
736
- * },
737
- * "toutiao": {
738
- * "hostVer": "x",
739
- * "uniVer": "x",
740
- * "unixVer": "x"
741
- * },
742
- * "lark": {
743
- * "hostVer": "x",
744
- * "uniVer": "x",
745
- * "unixVer": "x"
746
- * },
747
- * "qq": {
748
- * "hostVer": "x",
749
- * "uniVer": "x",
750
- * "unixVer": "x"
751
- * },
752
- * "kuaishou": {
753
- * "hostVer": "x",
754
- * "uniVer": "x",
755
- * "unixVer": "x"
756
- * },
757
- * "jd": {
758
- * "hostVer": "x",
759
- * "uniVer": "x",
760
- * "unixVer": "x"
761
- * }
762
- * }
763
- * }
764
- */
765
- errMsg?: string;
766
- };
767
- export type StopAccelerometerSuccessCallback = (result: StopAccelerometerSuccess) => void;
768
- export type StopAccelerometerFail = UniError;
769
- export type StopAccelerometerFailCallback = (result: StopAccelerometerFail) => void;
770
- export type StopAccelerometerComplete = any;
771
- export type StopAccelerometerCompleteCallback = (result: StopAccelerometerComplete) => void;
772
- export type StopAccelerometerOptions = {
773
- /**
774
- * 成功返回的回调函数
775
- * @uniPlatform {
776
- * "mp": {
777
- * "weixin": {
778
- * "hostVer": "√",
779
- * "uniVer": "√",
780
- * "unixVer": "4.41"
781
- * },
782
- * "alipay": {
783
- * "hostVer": "x",
784
- * "uniVer": "x",
785
- * "unixVer": "x"
786
- * },
787
- * "baidu": {
788
- * "hostVer": "x",
789
- * "uniVer": "x",
790
- * "unixVer": "x"
791
- * },
792
- * "toutiao": {
793
- * "hostVer": "x",
794
- * "uniVer": "x",
795
- * "unixVer": "x"
796
- * },
797
- * "lark": {
798
- * "hostVer": "x",
799
- * "uniVer": "x",
800
- * "unixVer": "x"
801
- * },
802
- * "qq": {
803
- * "hostVer": "x",
804
- * "uniVer": "x",
805
- * "unixVer": "x"
806
- * },
807
- * "kuaishou": {
808
- * "hostVer": "x",
809
- * "uniVer": "x",
810
- * "unixVer": "x"
811
- * },
812
- * "jd": {
813
- * "hostVer": "x",
814
- * "uniVer": "x",
815
- * "unixVer": "x"
816
- * }
817
- * }
818
- * }
819
- */
820
- success?: StopAccelerometerSuccessCallback | null,
821
- /**
822
- * 失败的回调函数
823
- * @uniPlatform {
824
- * "mp": {
825
- * "weixin": {
826
- * "hostVer": "√",
827
- * "uniVer": "√",
828
- * "unixVer": "4.41"
829
- * },
830
- * "alipay": {
831
- * "hostVer": "x",
832
- * "uniVer": "x",
833
- * "unixVer": "x"
834
- * },
835
- * "baidu": {
836
- * "hostVer": "x",
837
- * "uniVer": "x",
838
- * "unixVer": "x"
839
- * },
840
- * "toutiao": {
841
- * "hostVer": "x",
842
- * "uniVer": "x",
843
- * "unixVer": "x"
844
- * },
845
- * "lark": {
846
- * "hostVer": "x",
847
- * "uniVer": "x",
848
- * "unixVer": "x"
849
- * },
850
- * "qq": {
851
- * "hostVer": "x",
852
- * "uniVer": "x",
853
- * "unixVer": "x"
854
- * },
855
- * "kuaishou": {
856
- * "hostVer": "x",
857
- * "uniVer": "x",
858
- * "unixVer": "x"
859
- * },
860
- * "jd": {
861
- * "hostVer": "x",
862
- * "uniVer": "x",
863
- * "unixVer": "x"
864
- * }
865
- * }
866
- * }
867
- */
868
- fail?: StopAccelerometerFailCallback | null,
869
- /**
870
- * 结束的回调函数(调用成功、失败都会执行)
871
- * @uniPlatform {
872
- * "mp": {
873
- * "weixin": {
874
- * "hostVer": "√",
875
- * "uniVer": "√",
876
- * "unixVer": "4.41"
877
- * },
878
- * "alipay": {
879
- * "hostVer": "x",
880
- * "uniVer": "x",
881
- * "unixVer": "x"
882
- * },
883
- * "baidu": {
884
- * "hostVer": "x",
885
- * "uniVer": "x",
886
- * "unixVer": "x"
887
- * },
888
- * "toutiao": {
889
- * "hostVer": "x",
890
- * "uniVer": "x",
891
- * "unixVer": "x"
892
- * },
893
- * "lark": {
894
- * "hostVer": "x",
895
- * "uniVer": "x",
896
- * "unixVer": "x"
897
- * },
898
- * "qq": {
899
- * "hostVer": "x",
900
- * "uniVer": "x",
901
- * "unixVer": "x"
902
- * },
903
- * "kuaishou": {
904
- * "hostVer": "x",
905
- * "uniVer": "x",
906
- * "unixVer": "x"
907
- * },
908
- * "jd": {
909
- * "hostVer": "x",
910
- * "uniVer": "x",
911
- * "unixVer": "x"
912
- * }
913
- * }
914
- * }
915
- */
916
- complete?: StopAccelerometerCompleteCallback | null
917
- };