@dcloudio/uni-app-x 0.7.39 → 0.7.40

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 +31 -31
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/DOMRect.d.ts +430 -10
  6. package/types/native/DrawableContext.d.ts +1137 -45
  7. package/types/native/IUniElement.d.ts +1875 -93
  8. package/types/native/UniNativePage.d.ts +94 -0
  9. package/types/native/UniResizeObserver.d.ts +215 -5
  10. package/types/native/UniSafeArea.d.ts +185 -0
  11. package/types/native/UniVideoElement.d.ts +432 -0
  12. package/types/native/global.d.ts +7 -0
  13. package/types/native/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +12 -8
  15. package/types/uni/uts-plugin-api/global.d.ts +62 -61
  16. package/types/uni/uts-plugin-api/index.d.ts +62 -61
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  23. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
  30. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
  32. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
  33. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  35. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
  38. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
  39. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
  40. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
  41. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
  42. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
  43. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
  44. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
  45. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
  46. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  47. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
  50. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  51. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
  52. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
  53. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  54. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  55. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
  56. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
  57. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
  58. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
  59. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  60. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  61. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
  62. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
  63. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
  64. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
  65. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  66. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
  67. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  68. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
  69. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
  70. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
  71. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
  72. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
  73. package/types/uni/uts-plugin-biz/global.d.ts +6 -5
  74. package/types/uni/uts-plugin-biz/index.d.ts +6 -5
  75. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
  76. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
  79. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
  80. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
  81. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
  85. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
  87. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  90. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
  91. package/types/uni/uts-plugin-extend/global.d.ts +0 -4
  92. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  94. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
  95. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  96. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  98. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  99. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  103. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  104. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
@@ -1,716 +0,0 @@
1
- export interface Uni {
2
- /**
3
- * 获取全局唯一的背景音频管理器 backgroundAudioManager
4
- *
5
- * @tutorial https://uniapp.dcloud.io/api/media/background-audio-manager.html
6
- * @tutorial-uni-app https://uniapp.dcloud.io/api/media/background-audio-manager.html
7
- * @uniPlatform {
8
- * "app": {
9
- * "android": {
10
- * "osVer": "5.0",
11
- * "uniVer": "√",
12
- * "unixVer": "x"
13
- * },
14
- * "ios": {
15
- * "osVer": "9.0",
16
- * "uniVer": "√",
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": "√",
29
- * "unixVer": "4.41"
30
- * },
31
- * "alipay": {
32
- * "hostVer": "x",
33
- * "uniVer": "x",
34
- * "unixVer": "x"
35
- * },
36
- * "baidu": {
37
- * "hostVer": "√",
38
- * "uniVer": "√",
39
- * "unixVer": "x"
40
- * },
41
- * "toutiao": {
42
- * "hostVer": "√",
43
- * "uniVer": "√",
44
- * "unixVer": "x"
45
- * },
46
- * "lark": {
47
- * "hostVer": "x",
48
- * "uniVer": "x",
49
- * "unixVer": "x"
50
- * },
51
- * "qq": {
52
- * "hostVer": "√",
53
- * "uniVer": "√",
54
- * "unixVer": "x"
55
- * },
56
- * "kuaishou": {
57
- * "hostVer": "x",
58
- * "uniVer": "x",
59
- * "unixVer": "x"
60
- * },
61
- * "jd": {
62
- * "hostVer": "√",
63
- * "uniVer": "√",
64
- * "unixVer": "x"
65
- * }
66
- * },
67
- * "web": {
68
- * "uniVer": "x",
69
- * "unixVer": "x"
70
- * }
71
- * }
72
- */
73
- getBackgroundAudioManager: GetBackgroundAudioManager;
74
- }
75
-
76
- export type GetBackgroundAudioManager = () => BackgroundAudioManager;
77
-
78
- export interface BackgroundAudioManager {
79
- /**
80
- * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
81
- */
82
- duration: number;
83
- /**
84
- * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
85
- */
86
- currentTime: number;
87
- /**
88
- * 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
89
- * @type boolean
90
- */
91
- paused: boolean;
92
- /**
93
- * 音频的数据源,默认为空字符串,当设置了新的 src 时,会自动开始播放 ,目前支持的格式有 m4a, aac, mp3, wav
94
- */
95
- src: string;
96
- /**
97
- * 音频开始播放的位置(单位:s)
98
- */
99
- startTime: number;
100
- /**
101
- * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
102
- */
103
- buffered: number;
104
- /**
105
- * 音频标题,用于做原生音频播放器音频标题。原生音频播放器中的分享功能,分享出去的卡片标题,也将使用该值。
106
- */
107
- title: string;
108
- /**
109
- * 专辑名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
110
- */
111
- epname: string;
112
- /**
113
- * 歌手名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
114
- */
115
- singer: string;
116
- /**
117
- * 封面图url,用于做原生音频播放器背景图。原生音频播放器中的分享功能,分享出去的卡片配图及背景也将使用该图。
118
- */
119
- coverImgUrl: string;
120
- /**
121
- * 页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
122
- */
123
- webUrl: string;
124
- /**
125
- * 音频协议。默认值为 'http',设置 'hls' 可以支持播放 HLS 协议的直播音频
126
- */
127
- protocol: string;
128
- /**
129
- * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
130
- */
131
- playbackRate?: number;
132
- /**
133
- * 播放
134
- * @uniPlatform {
135
- * "app": {
136
- * "android": {
137
- * "osVer": "4.4",
138
- * "uniVer": "√",
139
- * "unixVer": "3.9.0"
140
- * }
141
- * },
142
- * "mp": {
143
- * "weixin": {
144
- * "hostVer": "√",
145
- * "uniVer": "√",
146
- * "unixVer": "4.41"
147
- * },
148
- * "alipay": {
149
- * "hostVer": "x",
150
- * "uniVer": "x",
151
- * "unixVer": "x"
152
- * },
153
- * "baidu": {
154
- * "hostVer": "√",
155
- * "uniVer": "√",
156
- * "unixVer": "x"
157
- * },
158
- * "toutiao": {
159
- * "hostVer": "√",
160
- * "uniVer": "√",
161
- * "unixVer": "x"
162
- * },
163
- * "lark": {
164
- * "hostVer": "x",
165
- * "uniVer": "x",
166
- * "unixVer": "x"
167
- * },
168
- * "qq": {
169
- * "hostVer": "√",
170
- * "uniVer": "√",
171
- * "unixVer": "x"
172
- * },
173
- * "kuaishou": {
174
- * "hostVer": "x",
175
- * "uniVer": "x",
176
- * "unixVer": "x"
177
- * },
178
- * "jd": {
179
- * "hostVer": "√",
180
- * "uniVer": "√",
181
- * "unixVer": "x"
182
- * }
183
- * }
184
- * }
185
- */
186
- play(): void;
187
- /**
188
- * 暂停
189
- * @uniPlatform {
190
- * "app": {
191
- * "android": {
192
- * "osVer": "4.4",
193
- * "uniVer": "√",
194
- * "unixVer": "3.9.0"
195
- * }
196
- * },
197
- * "mp": {
198
- * "weixin": {
199
- * "hostVer": "√",
200
- * "uniVer": "√",
201
- * "unixVer": "4.41"
202
- * },
203
- * "alipay": {
204
- * "hostVer": "x",
205
- * "uniVer": "x",
206
- * "unixVer": "x"
207
- * },
208
- * "baidu": {
209
- * "hostVer": "√",
210
- * "uniVer": "√",
211
- * "unixVer": "x"
212
- * },
213
- * "toutiao": {
214
- * "hostVer": "√",
215
- * "uniVer": "√",
216
- * "unixVer": "x"
217
- * },
218
- * "lark": {
219
- * "hostVer": "x",
220
- * "uniVer": "x",
221
- * "unixVer": "x"
222
- * },
223
- * "qq": {
224
- * "hostVer": "√",
225
- * "uniVer": "√",
226
- * "unixVer": "x"
227
- * },
228
- * "kuaishou": {
229
- * "hostVer": "x",
230
- * "uniVer": "x",
231
- * "unixVer": "x"
232
- * },
233
- * "jd": {
234
- * "hostVer": "√",
235
- * "uniVer": "√",
236
- * "unixVer": "x"
237
- * }
238
- * }
239
- * }
240
- */
241
- pause(): void;
242
- /**
243
- * 跳转到指定位置,单位 s
244
- * @uniPlatform {
245
- * "app": {
246
- * "android": {
247
- * "osVer": "4.4",
248
- * "uniVer": "√",
249
- * "unixVer": "3.9.0"
250
- * }
251
- * },
252
- * "mp": {
253
- * "weixin": {
254
- * "hostVer": "√",
255
- * "uniVer": "√",
256
- * "unixVer": "4.41"
257
- * },
258
- * "alipay": {
259
- * "hostVer": "x",
260
- * "uniVer": "x",
261
- * "unixVer": "x"
262
- * },
263
- * "baidu": {
264
- * "hostVer": "√",
265
- * "uniVer": "√",
266
- * "unixVer": "x"
267
- * },
268
- * "toutiao": {
269
- * "hostVer": "√",
270
- * "uniVer": "√",
271
- * "unixVer": "x"
272
- * },
273
- * "lark": {
274
- * "hostVer": "x",
275
- * "uniVer": "x",
276
- * "unixVer": "x"
277
- * },
278
- * "qq": {
279
- * "hostVer": "√",
280
- * "uniVer": "√",
281
- * "unixVer": "x"
282
- * },
283
- * "kuaishou": {
284
- * "hostVer": "x",
285
- * "uniVer": "x",
286
- * "unixVer": "x"
287
- * },
288
- * "jd": {
289
- * "hostVer": "√",
290
- * "uniVer": "√",
291
- * "unixVer": "x"
292
- * }
293
- * }
294
- * }
295
- */
296
- seek(position: number): void;
297
- /**
298
- * 停止
299
- * @uniPlatform {
300
- * "app": {
301
- * "android": {
302
- * "osVer": "4.4",
303
- * "uniVer": "√",
304
- * "unixVer": "3.9.0"
305
- * }
306
- * },
307
- * "mp": {
308
- * "weixin": {
309
- * "hostVer": "√",
310
- * "uniVer": "√",
311
- * "unixVer": "4.41"
312
- * },
313
- * "alipay": {
314
- * "hostVer": "x",
315
- * "uniVer": "x",
316
- * "unixVer": "x"
317
- * },
318
- * "baidu": {
319
- * "hostVer": "√",
320
- * "uniVer": "√",
321
- * "unixVer": "x"
322
- * },
323
- * "toutiao": {
324
- * "hostVer": "√",
325
- * "uniVer": "√",
326
- * "unixVer": "x"
327
- * },
328
- * "lark": {
329
- * "hostVer": "x",
330
- * "uniVer": "x",
331
- * "unixVer": "x"
332
- * },
333
- * "qq": {
334
- * "hostVer": "√",
335
- * "uniVer": "√",
336
- * "unixVer": "x"
337
- * },
338
- * "kuaishou": {
339
- * "hostVer": "x",
340
- * "uniVer": "x",
341
- * "unixVer": "x"
342
- * },
343
- * "jd": {
344
- * "hostVer": "√",
345
- * "uniVer": "√",
346
- * "unixVer": "x"
347
- * }
348
- * }
349
- * }
350
- */
351
- stop(): void;
352
- /**
353
- * 背景音频进入可以播放状态,但不保证后面可以流畅播放
354
- * @uniPlatform {
355
- * "app": {
356
- * "android": {
357
- * "osVer": "4.4",
358
- * "uniVer": "√",
359
- * "unixVer": "3.9.0"
360
- * }
361
- * }
362
- * }
363
- */
364
- onCanplay(callback: (result: any) => void): void;
365
- /**
366
- * 背景音频播放事件
367
- * @uniPlatform {
368
- * "app": {
369
- * "android": {
370
- * "osVer": "4.4",
371
- * "uniVer": "√",
372
- * "unixVer": "3.9.0"
373
- * }
374
- * },
375
- * "mp": {
376
- * "weixin": {
377
- * "hostVer": "√",
378
- * "uniVer": "√",
379
- * "unixVer": "4.41"
380
- * },
381
- * "alipay": {
382
- * "hostVer": "x",
383
- * "uniVer": "x",
384
- * "unixVer": "x"
385
- * },
386
- * "baidu": {
387
- * "hostVer": "√",
388
- * "uniVer": "√",
389
- * "unixVer": "x"
390
- * },
391
- * "toutiao": {
392
- * "hostVer": "√",
393
- * "uniVer": "√",
394
- * "unixVer": "x"
395
- * },
396
- * "lark": {
397
- * "hostVer": "x",
398
- * "uniVer": "x",
399
- * "unixVer": "x"
400
- * },
401
- * "qq": {
402
- * "hostVer": "√",
403
- * "uniVer": "√",
404
- * "unixVer": "x"
405
- * },
406
- * "kuaishou": {
407
- * "hostVer": "x",
408
- * "uniVer": "x",
409
- * "unixVer": "x"
410
- * },
411
- * "jd": {
412
- * "hostVer": "√",
413
- * "uniVer": "√",
414
- * "unixVer": "x"
415
- * }
416
- * }
417
- * }
418
- */
419
- onPlay(callback: (result: any) => void): void;
420
- /**
421
- * 背景音频暂停事件
422
- * @uniPlatform {
423
- * "app": {
424
- * "android": {
425
- * "osVer": "4.4",
426
- * "uniVer": "√",
427
- * "unixVer": "3.9.0"
428
- * }
429
- * },
430
- * "mp": {
431
- * "weixin": {
432
- * "hostVer": "√",
433
- * "uniVer": "√",
434
- * "unixVer": "4.41"
435
- * },
436
- * "alipay": {
437
- * "hostVer": "x",
438
- * "uniVer": "x",
439
- * "unixVer": "x"
440
- * },
441
- * "baidu": {
442
- * "hostVer": "√",
443
- * "uniVer": "√",
444
- * "unixVer": "x"
445
- * },
446
- * "toutiao": {
447
- * "hostVer": "√",
448
- * "uniVer": "√",
449
- * "unixVer": "x"
450
- * },
451
- * "lark": {
452
- * "hostVer": "x",
453
- * "uniVer": "x",
454
- * "unixVer": "x"
455
- * },
456
- * "qq": {
457
- * "hostVer": "√",
458
- * "uniVer": "√",
459
- * "unixVer": "x"
460
- * },
461
- * "kuaishou": {
462
- * "hostVer": "x",
463
- * "uniVer": "x",
464
- * "unixVer": "x"
465
- * },
466
- * "jd": {
467
- * "hostVer": "√",
468
- * "uniVer": "√",
469
- * "unixVer": "x"
470
- * }
471
- * }
472
- * }
473
- */
474
- onPause(callback: (result: any) => void): void;
475
- /**
476
- * 背景音频停止事件
477
- * @uniPlatform {
478
- * "app": {
479
- * "android": {
480
- * "osVer": "4.4",
481
- * "uniVer": "√",
482
- * "unixVer": "3.9.0"
483
- * }
484
- * },
485
- * "mp": {
486
- * "weixin": {
487
- * "hostVer": "√",
488
- * "uniVer": "√",
489
- * "unixVer": "4.41"
490
- * },
491
- * "alipay": {
492
- * "hostVer": "x",
493
- * "uniVer": "x",
494
- * "unixVer": "x"
495
- * },
496
- * "baidu": {
497
- * "hostVer": "√",
498
- * "uniVer": "√",
499
- * "unixVer": "x"
500
- * },
501
- * "toutiao": {
502
- * "hostVer": "√",
503
- * "uniVer": "√",
504
- * "unixVer": "x"
505
- * },
506
- * "lark": {
507
- * "hostVer": "x",
508
- * "uniVer": "x",
509
- * "unixVer": "x"
510
- * },
511
- * "qq": {
512
- * "hostVer": "√",
513
- * "uniVer": "√",
514
- * "unixVer": "x"
515
- * },
516
- * "kuaishou": {
517
- * "hostVer": "x",
518
- * "uniVer": "x",
519
- * "unixVer": "x"
520
- * },
521
- * "jd": {
522
- * "hostVer": "√",
523
- * "uniVer": "√",
524
- * "unixVer": "x"
525
- * }
526
- * }
527
- * }
528
- */
529
- onStop(callback: (result: any) => void): void;
530
- /**
531
- * 背景音频自然播放结束事件
532
- * @uniPlatform {
533
- * "app": {
534
- * "android": {
535
- * "osVer": "4.4",
536
- * "uniVer": "√",
537
- * "unixVer": "3.9.0"
538
- * }
539
- * }
540
- * }
541
- */
542
- onEnded(callback: (result: any) => void): void;
543
- /**
544
- * 背景音频播放进度更新事件
545
- * @uniPlatform {
546
- * "app": {
547
- * "android": {
548
- * "osVer": "4.4",
549
- * "uniVer": "√",
550
- * "unixVer": "3.9.0"
551
- * }
552
- * },
553
- * "mp": {
554
- * "weixin": {
555
- * "hostVer": "√",
556
- * "uniVer": "√",
557
- * "unixVer": "4.41"
558
- * },
559
- * "alipay": {
560
- * "hostVer": "x",
561
- * "uniVer": "x",
562
- * "unixVer": "x"
563
- * },
564
- * "baidu": {
565
- * "hostVer": "√",
566
- * "uniVer": "√",
567
- * "unixVer": "x"
568
- * },
569
- * "toutiao": {
570
- * "hostVer": "√",
571
- * "uniVer": "√",
572
- * "unixVer": "x"
573
- * },
574
- * "lark": {
575
- * "hostVer": "x",
576
- * "uniVer": "x",
577
- * "unixVer": "x"
578
- * },
579
- * "qq": {
580
- * "hostVer": "√",
581
- * "uniVer": "√",
582
- * "unixVer": "x"
583
- * },
584
- * "kuaishou": {
585
- * "hostVer": "x",
586
- * "uniVer": "x",
587
- * "unixVer": "x"
588
- * },
589
- * "jd": {
590
- * "hostVer": "√",
591
- * "uniVer": "√",
592
- * "unixVer": "x"
593
- * }
594
- * }
595
- * }
596
- */
597
- onTimeUpdate(callback: (result: any) => void): void;
598
- /**
599
- * 用户在系统音乐播放面板点击上一曲事件(iOS only)
600
- */
601
- onPrev(callback: (result: any) => void): void;
602
- /**
603
- * 用户在系统音乐播放面板点击下一曲事件(iOS only)
604
- */
605
- onNext(callback: (result: any) => void): void;
606
- /**
607
- * 背景音频播放错误事件
608
- * @uniPlatform {
609
- * "app": {
610
- * "android": {
611
- * "osVer": "4.4",
612
- * "uniVer": "√",
613
- * "unixVer": "3.9.0"
614
- * }
615
- * },
616
- * "mp": {
617
- * "weixin": {
618
- * "hostVer": "√",
619
- * "uniVer": "√",
620
- * "unixVer": "4.41"
621
- * },
622
- * "alipay": {
623
- * "hostVer": "x",
624
- * "uniVer": "x",
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": "x",
639
- * "uniVer": "x",
640
- * "unixVer": "x"
641
- * },
642
- * "qq": {
643
- * "hostVer": "√",
644
- * "uniVer": "√",
645
- * "unixVer": "x"
646
- * },
647
- * "kuaishou": {
648
- * "hostVer": "x",
649
- * "uniVer": "x",
650
- * "unixVer": "x"
651
- * },
652
- * "jd": {
653
- * "hostVer": "√",
654
- * "uniVer": "√",
655
- * "unixVer": "x"
656
- * }
657
- * }
658
- * }
659
- */
660
- onError(callback: (result: any) => void): void;
661
- /**
662
- * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
663
- * @uniPlatform {
664
- * "app": {
665
- * "android": {
666
- * "osVer": "4.4",
667
- * "uniVer": "√",
668
- * "unixVer": "3.9.0"
669
- * }
670
- * },
671
- * "mp": {
672
- * "weixin": {
673
- * "hostVer": "√",
674
- * "uniVer": "√",
675
- * "unixVer": "4.41"
676
- * },
677
- * "alipay": {
678
- * "hostVer": "x",
679
- * "uniVer": "x",
680
- * "unixVer": "x"
681
- * },
682
- * "baidu": {
683
- * "hostVer": "√",
684
- * "uniVer": "√",
685
- * "unixVer": "x"
686
- * },
687
- * "toutiao": {
688
- * "hostVer": "√",
689
- * "uniVer": "√",
690
- * "unixVer": "x"
691
- * },
692
- * "lark": {
693
- * "hostVer": "x",
694
- * "uniVer": "x",
695
- * "unixVer": "x"
696
- * },
697
- * "qq": {
698
- * "hostVer": "√",
699
- * "uniVer": "√",
700
- * "unixVer": "x"
701
- * },
702
- * "kuaishou": {
703
- * "hostVer": "x",
704
- * "uniVer": "x",
705
- * "unixVer": "x"
706
- * },
707
- * "jd": {
708
- * "hostVer": "√",
709
- * "uniVer": "√",
710
- * "unixVer": "x"
711
- * }
712
- * }
713
- * }
714
- */
715
- onWaiting(callback: (result: any) => void): void;
716
- }