@dcloudio/uni-app-x 0.7.39 → 0.7.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +168 -22
  3. package/types/app.d.ts +178 -174
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/DOMRect.d.ts +430 -10
  6. package/types/native/DrawableContext.d.ts +1137 -45
  7. package/types/native/IUniElement.d.ts +1875 -93
  8. package/types/native/UniNativePage.d.ts +94 -0
  9. package/types/native/UniResizeObserver.d.ts +215 -5
  10. package/types/native/UniSafeArea.d.ts +185 -0
  11. package/types/native/UniVideoElement.d.ts +432 -0
  12. package/types/native/global.d.ts +7 -0
  13. package/types/native/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +12 -8
  15. package/types/uni/uts-plugin-api/global.d.ts +62 -61
  16. package/types/uni/uts-plugin-api/index.d.ts +62 -61
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  23. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
  30. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
  32. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
  33. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  35. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
  38. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
  39. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
  40. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
  41. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
  42. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
  43. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
  44. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
  45. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
  46. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  47. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
  50. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  51. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
  52. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
  53. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  54. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  55. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
  56. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
  57. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
  58. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
  59. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  60. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  61. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
  62. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
  63. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
  64. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
  65. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  66. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
  67. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  68. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
  69. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
  70. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
  71. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
  72. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
  73. package/types/uni/uts-plugin-biz/global.d.ts +6 -5
  74. package/types/uni/uts-plugin-biz/index.d.ts +6 -5
  75. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
  76. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
  79. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
  80. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
  81. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
  85. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
  87. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  90. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
  91. package/types/uni/uts-plugin-extend/global.d.ts +0 -4
  92. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  94. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
  95. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  96. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  98. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  99. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  103. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  104. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
@@ -3,303 +3,439 @@ export interface Uni {
3
3
  * 监听加速度数据
4
4
  *
5
5
  * @tutorial https://uniapp.dcloud.io/api/system/accelerometer.html#onaccelerometerchange
6
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/accelerometer.html#onaccelerometerchange
6
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/accelerometer.html#onaccelerometerchange
7
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
- * }
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
71
  * }
72
- */
72
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.onAccelerometerChange.html
73
+ */
73
74
  onAccelerometerChange: OnAccelerometerChange;
74
75
  /**
75
76
  * 取消监听加速度数据
76
77
  *
77
78
  * @tutorial https://uniapp.dcloud.io/api/system/accelerometer.html#offaccelerometerchange
78
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/accelerometer.html#offaccelerometerchange
79
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/accelerometer.html#offaccelerometerchange
79
80
  * @uniPlatform {
80
- * "app": {
81
- * "android": {
82
- * "osVer": "5.0",
83
- * "uniVer": "2.9.6",
84
- * "unixVer": "x"
85
- * },
86
- * "ios": {
87
- * "osVer": "9.0",
88
- * "uniVer": "2.9.6",
89
- * "unixVer": "x"
90
- * },
91
- * "harmony": {
92
- * "osVer": "x",
93
- * "uniVer": "x",
94
- * "unixVer": "x"
95
- * }
96
- * },
97
- * "mp": {
98
- * "weixin": {
99
- * "hostVer": "",
100
- * "uniVer": "2.9.3",
101
- * "unixVer": "4.41"
102
- * },
103
- * "alipay": {
104
- * "hostVer": "x",
105
- * "uniVer": "x",
106
- * "unixVer": "x"
107
- * },
108
- * "baidu": {
109
- * "hostVer": "x",
110
- * "uniVer": "x",
111
- * "unixVer": "x"
112
- * },
113
- * "toutiao": {
114
- * "hostVer": "x",
115
- * "uniVer": "x",
116
- * "unixVer": "x"
117
- * },
118
- * "lark": {
119
- * "hostVer": "x",
120
- * "uniVer": "x",
121
- * "unixVer": "x"
122
- * },
123
- * "qq": {
124
- * "hostVer": "x",
125
- * "uniVer": "x",
126
- * "unixVer": "x"
127
- * },
128
- * "kuaishou": {
129
- * "hostVer": "√",
130
- * "uniVer": "√",
131
- * "unixVer": "x"
132
- * },
133
- * "jd": {
134
- * "hostVer": "√",
135
- * "uniVer": "√",
136
- * "unixVer": "x"
137
- * }
138
- * },
139
- * "web": {
140
- * "uniVer": "2.9.6",
141
- * "unixVer": "x"
142
- * }
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
+ * }
143
144
  * }
144
- */
145
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.offAccelerometerChange.html
146
+ */
145
147
  offAccelerometerChange: OffAccelerometerChange;
146
148
  /**
147
149
  * 开始监听加速度数据
148
150
  *
149
151
  * @tutorial https://uniapp.dcloud.io/api/system/accelerometer.html#startaccelerometer
150
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/accelerometer.html#startaccelerometer
152
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/accelerometer.html#startaccelerometer
151
153
  * @uniPlatform {
152
- * "app": {
153
- * "android": {
154
- * "osVer": "5.0",
155
- * "uniVer": "√",
156
- * "unixVer": "x"
157
- * },
158
- * "ios": {
159
- * "osVer": "9.0",
160
- * "uniVer": "√",
161
- * "unixVer": "x"
162
- * },
163
- * "harmony": {
164
- * "osVer": "x",
165
- * "uniVer": "x",
166
- * "unixVer": "x"
167
- * }
168
- * },
169
- * "mp": {
170
- * "weixin": {
171
- * "hostVer": "",
172
- * "uniVer": "√",
173
- * "unixVer": "4.41"
174
- * },
175
- * "alipay": {
176
- * "hostVer": "x",
177
- * "uniVer": "x",
178
- * "unixVer": "x"
179
- * },
180
- * "baidu": {
181
- * "hostVer": "√",
182
- * "uniVer": "√",
183
- * "unixVer": "x"
184
- * },
185
- * "toutiao": {
186
- * "hostVer": "√",
187
- * "uniVer": "√",
188
- * "unixVer": "x"
189
- * },
190
- * "lark": {
191
- * "hostVer": "√",
192
- * "uniVer": "√",
193
- * "unixVer": "x"
194
- * },
195
- * "qq": {
196
- * "hostVer": "√",
197
- * "uniVer": "√",
198
- * "unixVer": "x"
199
- * },
200
- * "kuaishou": {
201
- * "hostVer": "√",
202
- * "uniVer": "√",
203
- * "unixVer": "x"
204
- * },
205
- * "jd": {
206
- * "hostVer": "√",
207
- * "uniVer": "√",
208
- * "unixVer": "x"
209
- * }
210
- * },
211
- * "web": {
212
- * "uniVer": "2.9.6",
213
- * "unixVer": "x"
214
- * }
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
+ * }
215
217
  * }
216
- */
218
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.startAccelerometer.html
219
+ */
217
220
  startAccelerometer: StartAccelerometer;
218
221
  /**
219
222
  * 停止监听加速度数据
220
223
  *
221
224
  * @tutorial https://uniapp.dcloud.io/api/system/accelerometer.html#stopaccelerometer
222
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/accelerometer.html#stopaccelerometer
225
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/accelerometer.html#stopaccelerometer
223
226
  * @uniPlatform {
224
- * "app": {
225
- * "android": {
226
- * "osVer": "5.0",
227
- * "uniVer": "√",
228
- * "unixVer": "x"
229
- * },
230
- * "ios": {
231
- * "osVer": "9.0",
232
- * "uniVer": "√",
233
- * "unixVer": "x"
234
- * },
235
- * "harmony": {
236
- * "osVer": "x",
237
- * "uniVer": "x",
238
- * "unixVer": "x"
239
- * }
240
- * },
241
- * "mp": {
242
- * "weixin": {
243
- * "hostVer": "",
244
- * "uniVer": "√",
245
- * "unixVer": "4.41"
246
- * },
247
- * "alipay": {
248
- * "hostVer": "x",
249
- * "uniVer": "x",
250
- * "unixVer": "x"
251
- * },
252
- * "baidu": {
253
- * "hostVer": "√",
254
- * "uniVer": "√",
255
- * "unixVer": "x"
256
- * },
257
- * "toutiao": {
258
- * "hostVer": "√",
259
- * "uniVer": "√",
260
- * "unixVer": "x"
261
- * },
262
- * "lark": {
263
- * "hostVer": "√",
264
- * "uniVer": "√",
265
- * "unixVer": "x"
266
- * },
267
- * "qq": {
268
- * "hostVer": "√",
269
- * "uniVer": "√",
270
- * "unixVer": "x"
271
- * },
272
- * "kuaishou": {
273
- * "hostVer": "√",
274
- * "uniVer": "√",
275
- * "unixVer": "x"
276
- * },
277
- * "jd": {
278
- * "hostVer": "√",
279
- * "uniVer": "√",
280
- * "unixVer": "x"
281
- * }
282
- * },
283
- * "web": {
284
- * "uniVer": "2.9.6",
285
- * "unixVer": "x"
286
- * }
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
+ * }
287
290
  * }
288
- */
291
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.stopAccelerometer.html
292
+ */
289
293
  stopAccelerometer: StopAccelerometer;
290
294
  }
291
295
 
292
296
  export type OnAccelerometerChangeCallbackResult = {
293
297
  /**
294
298
  * X 轴
295
- */
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
+ */
296
344
  x: number,
297
345
  /**
298
346
  * Y 轴
299
- */
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
+ */
300
392
  y: number,
301
393
  /**
302
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
+ * }
303
439
  */
304
440
  z: number
305
441
  };
@@ -307,7 +443,57 @@ export type OnAccelerometerChangeCallback = (result: OnAccelerometerChangeCallba
307
443
  export type OnAccelerometerChange = (callback: OnAccelerometerChangeCallback) => void;
308
444
  export type OffAccelerometerChange = (callback: (result: any) => void) => void;
309
445
  export type StartAccelerometer = (options: StartAccelerometerOptions) => void;
310
- export type StartAccelerometerSuccess = {};
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
+ };
311
497
  export type UniError = {
312
498
  errSubject: string,
313
499
  errCode: number,
@@ -322,28 +508,262 @@ export type StartAccelerometerComplete = any;
322
508
  export type StartAccelerometerCompleteCallback = (result: StartAccelerometerComplete) => void;
323
509
  export type StartAccelerometerOptions = {
324
510
  /**
325
- * interval
326
- * - game: 适用于更新游戏的回调频率,在 20ms/次 左右
327
- * - ui: 适用于更新游戏的回调频率,在 20ms/次 左右
328
- * - normal: 普通的回调频率,在 200ms/次 左右
329
- * @type 'game' | 'ui' | 'normal'
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/次 左右
330
560
  */
331
- interval?: string | null,
561
+ 'game' |
332
562
  /**
333
- * 成功返回的回调函数
563
+ * 适用于更新游戏的回调频率,在 20ms/次 左右
334
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
+ */
335
617
  success?: StartAccelerometerSuccessCallback | null,
336
618
  /**
337
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
+ * }
338
664
  */
339
665
  fail?: StartAccelerometerFailCallback | null,
340
666
  /**
341
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
+ * }
342
712
  */
343
713
  complete?: StartAccelerometerCompleteCallback | null
344
714
  };
345
715
  export type StopAccelerometer = (options: StopAccelerometerOptions) => void;
346
- export type StopAccelerometerSuccess = {};
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
+ };
347
767
  export type StopAccelerometerSuccessCallback = (result: StopAccelerometerSuccess) => void;
348
768
  export type StopAccelerometerFail = UniError;
349
769
  export type StopAccelerometerFailCallback = (result: StopAccelerometerFail) => void;
@@ -352,14 +772,146 @@ export type StopAccelerometerCompleteCallback = (result: StopAccelerometerComple
352
772
  export type StopAccelerometerOptions = {
353
773
  /**
354
774
  * 成功返回的回调函数
355
- */
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
+ */
356
820
  success?: StopAccelerometerSuccessCallback | null,
357
821
  /**
358
822
  * 失败的回调函数
359
- */
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
+ */
360
868
  fail?: StopAccelerometerFailCallback | null,
361
869
  /**
362
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
+ * }
363
915
  */
364
916
  complete?: StopAccelerometerCompleteCallback | null
365
917
  };