@dcloudio/uni-app-x 0.7.111 → 0.7.113

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 (380) hide show
  1. package/package.json +1 -1
  2. package/types/dom2-internal/UniNativeView.d.ts +1 -0
  3. package/types/dom2-internal/UniPage.d.ts +16 -0
  4. package/types/dom2-internal/sharedData.d.ts +9 -14
  5. package/types/native/CSSStyleDeclaration.d.ts +172 -172
  6. package/types/native/CanvasRenderingContext2D.d.ts +4720 -4720
  7. package/types/native/DrawableContext.d.ts +1893 -1893
  8. package/types/native/IUniElement.d.ts +7468 -7461
  9. package/types/native/IUniNativeViewElement.d.ts +327 -327
  10. package/types/native/SnapshotOptions.d.ts +337 -62
  11. package/types/native/UniPage.d.ts +1305 -1305
  12. package/types/native/UniResizeObserver.d.ts +749 -749
  13. package/types/native/UniSwiperAnimationFinishEvent.d.ts +59 -59
  14. package/types/native/UniSwiperChangeEvent.d.ts +58 -58
  15. package/types/page.d.ts +3154 -3112
  16. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  17. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1672 -911
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +126 -126
  20. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +14 -14
  21. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +154 -154
  22. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +14 -14
  23. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/global.d.ts +55 -0
  24. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/index.d.ts +27 -0
  25. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/interface.d.ts +1155 -0
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +9 -6
  27. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +5 -3
  28. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +978 -972
  29. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/global.d.ts +25 -0
  30. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/index.d.ts +12 -0
  31. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -0
  32. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +358 -358
  33. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +8 -8
  34. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +78 -78
  35. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +490 -479
  36. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -214
  37. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +126 -126
  38. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +30 -30
  39. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +39 -0
  40. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +19 -0
  41. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +856 -0
  42. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  43. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +147 -147
  44. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +397 -397
  45. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +6363 -6359
  46. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +554 -554
  47. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2149 -2149
  48. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1340 -1340
  49. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1707 -1707
  50. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +307 -307
  51. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +310 -310
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +5 -5
  53. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +129 -129
  54. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +757 -757
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +5881 -5879
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +442 -442
  57. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/global.d.ts +9 -0
  58. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/index.d.ts +5 -0
  59. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/interface.d.ts +0 -0
  60. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +171 -171
  61. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
  62. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +536 -536
  63. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +2914 -2910
  64. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +24 -24
  65. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +208 -208
  66. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +785 -785
  67. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4243 -4243
  68. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1979 -1963
  69. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +5 -3
  70. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +229 -229
  71. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +753 -753
  72. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +84 -84
  73. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +790 -788
  74. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +447 -447
  75. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +498 -498
  76. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1552 -1548
  77. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +58 -58
  78. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +30 -30
  79. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2513 -2513
  80. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +81 -81
  81. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +351 -351
  82. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +107 -107
  83. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +584 -584
  84. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -722
  85. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +292 -292
  86. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +358 -358
  87. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +657 -657
  88. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/global.d.ts +9 -0
  89. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/index.d.ts +5 -0
  90. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/interface.d.ts +0 -0
  91. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1010 -1010
  92. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/global.d.ts +47 -0
  93. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/index.d.ts +23 -0
  94. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/interface.d.ts +926 -0
  95. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/global.d.ts +29 -0
  96. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/index.d.ts +14 -0
  97. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/interface.d.ts +452 -0
  98. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1442 -1442
  99. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +220 -220
  100. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +65 -65
  101. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +981 -981
  102. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
  103. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +1155 -0
  104. package/types/uni/uts-plugin-component/.temp/uni-camera.d.ts +38 -0
  105. package/types/uni/uts-plugin-component/.temp/uni-camera.ts +52 -0
  106. package/types/uni/uts-plugin-component/.temp/uni-canvas/utssdk/interface.uts +976 -0
  107. package/types/uni/uts-plugin-component/.temp/uni-canvas-dom2/utssdk/interface.uts +976 -0
  108. package/types/uni/uts-plugin-component/.temp/uni-editor.d.ts +171 -0
  109. package/types/uni/uts-plugin-component/.temp/uni-editor.ts +237 -0
  110. package/types/uni/uts-plugin-component/.temp/uni-form.d.ts +2 -0
  111. package/types/uni/uts-plugin-component/.temp/uni-form.ts +1 -0
  112. package/types/uni/uts-plugin-component/.temp/uni-input/utssdk/interface.uts +0 -0
  113. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.d.ts +56 -0
  114. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.ts +88 -0
  115. package/types/uni/uts-plugin-component/.temp/uni-match-media.d.ts +2 -0
  116. package/types/uni/uts-plugin-component/.temp/uni-match-media.ts +2 -0
  117. package/types/uni/uts-plugin-component/.temp/uni-navigator.d.ts +2 -0
  118. package/types/uni/uts-plugin-component/.temp/uni-navigator.ts +1 -0
  119. package/types/uni/uts-plugin-component/.temp/uni-page-container.d.ts +0 -0
  120. package/types/uni/uts-plugin-component/.temp/uni-page-container.ts +2 -0
  121. package/types/uni/uts-plugin-component/.temp/uni-progress.d.ts +2 -0
  122. package/types/uni/uts-plugin-component/.temp/uni-progress.ts +1 -0
  123. package/types/uni/uts-plugin-component/.temp/uni-rich-text.d.ts +7 -0
  124. package/types/uni/uts-plugin-component/.temp/uni-rich-text.ts +12 -0
  125. package/types/uni/uts-plugin-component/.temp/uni-textarea/utssdk/interface.uts +0 -0
  126. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +936 -0
  127. package/types/uni/uts-plugin-component/.temp/uni-video.d.ts +134 -0
  128. package/types/uni/uts-plugin-component/.temp/uni-video.ts +180 -0
  129. package/types/uni/uts-plugin-component/.temp/uni-web-view/utssdk/interface.uts +452 -0
  130. package/types/uni/uts-plugin-component/.temp/uni-web-view.d.ts +51 -0
  131. package/types/uni/uts-plugin-component/.temp/uni-web-view.ts +86 -0
  132. package/types/uni/uts-plugin-component/global.d.ts +79 -0
  133. package/types/uni/uts-plugin-component/index.d.ts +79 -0
  134. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/global.d.ts +29 -0
  135. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/index.d.ts +14 -0
  136. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/interface.d.ts +1673 -0
  137. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/global.d.ts +25 -0
  138. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  139. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/interface.d.ts +226 -0
  140. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +11 -0
  141. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +5 -0
  142. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +79 -0
  143. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/global.d.ts +59 -0
  144. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/index.d.ts +29 -0
  145. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  146. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/global.d.ts +9 -0
  147. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/index.d.ts +5 -0
  148. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  149. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +11 -0
  150. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +5 -0
  151. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +79 -0
  152. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +978 -976
  153. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -976
  154. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/global.d.ts +25 -0
  155. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/index.d.ts +12 -0
  156. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/interface.d.ts +423 -0
  157. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/global.d.ts +33 -0
  158. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/index.d.ts +16 -0
  159. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/interface.d.ts +499 -0
  160. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/global.d.ts +45 -0
  161. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/index.d.ts +22 -0
  162. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/interface.d.ts +217 -0
  163. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/global.d.ts +33 -0
  164. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/index.d.ts +16 -0
  165. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +3379 -0
  166. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/global.d.ts +21 -0
  167. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/index.d.ts +10 -0
  168. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +153 -0
  169. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +19 -0
  170. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +9 -0
  171. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -0
  172. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/global.d.ts +21 -0
  173. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/index.d.ts +10 -0
  174. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/interface.d.ts +560 -0
  175. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/global.d.ts +15 -0
  176. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/index.d.ts +7 -0
  177. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -0
  178. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/global.d.ts +23 -0
  179. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/index.d.ts +11 -0
  180. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/interface.d.ts +158 -0
  181. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +29 -0
  182. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +14 -0
  183. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +2304 -0
  184. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +39 -0
  185. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +19 -0
  186. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +856 -0
  187. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/global.d.ts +25 -0
  188. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/index.d.ts +13 -0
  189. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +181 -0
  190. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/global.d.ts +17 -0
  191. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/index.d.ts +8 -0
  192. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/interface.d.ts +338 -0
  193. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/global.d.ts +27 -0
  194. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/index.d.ts +13 -0
  195. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/interface.d.ts +147 -0
  196. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/global.d.ts +81 -0
  197. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/index.d.ts +40 -0
  198. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/interface.d.ts +397 -0
  199. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/global.d.ts +151 -0
  200. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -0
  201. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/interface.d.ts +6428 -0
  202. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +11 -0
  203. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +5 -0
  204. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +37 -0
  205. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +13 -0
  206. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +6 -0
  207. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +620 -0
  208. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/global.d.ts +15 -0
  209. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/index.d.ts +7 -0
  210. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2220 -0
  211. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +17 -0
  212. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +8 -0
  213. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1406 -0
  214. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/global.d.ts +15 -0
  215. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/index.d.ts +7 -0
  216. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1774 -0
  217. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/global.d.ts +11 -0
  218. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/index.d.ts +5 -0
  219. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +82 -0
  220. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +13 -0
  221. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +6 -0
  222. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +374 -0
  223. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +13 -0
  224. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +6 -0
  225. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +377 -0
  226. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +21 -0
  227. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +11 -0
  228. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -0
  229. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/global.d.ts +33 -0
  230. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/index.d.ts +16 -0
  231. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/interface.d.ts +420 -0
  232. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/global.d.ts +23 -0
  233. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/index.d.ts +11 -0
  234. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/interface.d.ts +199 -0
  235. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/global.d.ts +37 -0
  236. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/index.d.ts +18 -0
  237. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/interface.d.ts +757 -0
  238. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/global.d.ts +33 -0
  239. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/index.d.ts +16 -0
  240. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/interface.d.ts +6084 -0
  241. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/global.d.ts +13 -0
  242. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/index.d.ts +6 -0
  243. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/interface.d.ts +508 -0
  244. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/global.d.ts +25 -0
  245. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/index.d.ts +12 -0
  246. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/interface.d.ts +125 -0
  247. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/global.d.ts +17 -0
  248. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/index.d.ts +8 -0
  249. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/interface.d.ts +171 -0
  250. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/global.d.ts +45 -0
  251. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/index.d.ts +22 -0
  252. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +234 -0
  253. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/global.d.ts +29 -0
  254. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/index.d.ts +14 -0
  255. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/interface.d.ts +603 -0
  256. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/global.d.ts +61 -0
  257. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/index.d.ts +30 -0
  258. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/interface.d.ts +3443 -0
  259. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/global.d.ts +9 -0
  260. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/index.d.ts +5 -0
  261. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/interface.d.ts +3 -0
  262. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/global.d.ts +9 -0
  263. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
  264. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/interface.d.ts +3 -0
  265. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/global.d.ts +29 -0
  266. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/index.d.ts +14 -0
  267. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +386 -0
  268. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/global.d.ts +157 -0
  269. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/index.d.ts +78 -0
  270. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/interface.d.ts +5245 -0
  271. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +43 -0
  272. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +21 -0
  273. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +291 -0
  274. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/global.d.ts +69 -0
  275. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/index.d.ts +34 -0
  276. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/interface.d.ts +1047 -0
  277. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/global.d.ts +109 -0
  278. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/index.d.ts +54 -0
  279. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/interface.d.ts +4462 -0
  280. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/global.d.ts +71 -0
  281. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/index.d.ts +35 -0
  282. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +2142 -0
  283. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/global.d.ts +9 -0
  284. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/index.d.ts +5 -0
  285. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
  286. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/global.d.ts +17 -0
  287. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/index.d.ts +9 -0
  288. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/interface.d.ts +48 -0
  289. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +25 -0
  290. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +12 -0
  291. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +256 -0
  292. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/global.d.ts +29 -0
  293. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/index.d.ts +14 -0
  294. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/interface.d.ts +823 -0
  295. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/global.d.ts +27 -0
  296. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/index.d.ts +13 -0
  297. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +155 -0
  298. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/global.d.ts +33 -0
  299. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/index.d.ts +16 -0
  300. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/interface.d.ts +856 -0
  301. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/global.d.ts +9 -0
  302. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/index.d.ts +5 -0
  303. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/interface.d.ts +3 -0
  304. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/global.d.ts +9 -0
  305. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/index.d.ts +5 -0
  306. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  307. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/global.d.ts +9 -0
  308. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/index.d.ts +5 -0
  309. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/interface.d.ts +5 -0
  310. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/global.d.ts +19 -0
  311. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/index.d.ts +10 -0
  312. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/interface.d.ts +26 -0
  313. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/global.d.ts +47 -0
  314. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/index.d.ts +23 -0
  315. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/interface.d.ts +520 -0
  316. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +31 -0
  317. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +15 -0
  318. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +568 -0
  319. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/global.d.ts +33 -0
  320. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/index.d.ts +16 -0
  321. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/interface.d.ts +1693 -0
  322. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/global.d.ts +29 -0
  323. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/index.d.ts +14 -0
  324. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/interface.d.ts +191 -0
  325. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/global.d.ts +21 -0
  326. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/index.d.ts +10 -0
  327. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/interface.d.ts +2999 -0
  328. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +21 -0
  329. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +10 -0
  330. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +713 -0
  331. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/global.d.ts +59 -0
  332. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/index.d.ts +29 -0
  333. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/interface.d.ts +2731 -0
  334. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/global.d.ts +11 -0
  335. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/index.d.ts +5 -0
  336. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/interface.d.ts +81 -0
  337. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/global.d.ts +25 -0
  338. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/index.d.ts +12 -0
  339. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/interface.d.ts +429 -0
  340. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  341. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  342. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +314 -0
  343. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +41 -0
  344. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +20 -0
  345. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +584 -0
  346. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/global.d.ts +9 -0
  347. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/index.d.ts +5 -0
  348. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +3 -0
  349. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/global.d.ts +27 -0
  350. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/index.d.ts +13 -0
  351. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -0
  352. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +47 -0
  353. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +23 -0
  354. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +446 -0
  355. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/global.d.ts +21 -0
  356. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/index.d.ts +10 -0
  357. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/interface.d.ts +330 -0
  358. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/global.d.ts +79 -0
  359. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/index.d.ts +39 -0
  360. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/interface.d.ts +1030 -0
  361. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/global.d.ts +149 -0
  362. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/index.d.ts +74 -0
  363. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/interface.d.ts +1221 -0
  364. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/global.d.ts +53 -0
  365. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/index.d.ts +26 -0
  366. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/interface.d.ts +1141 -0
  367. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +0 -22
  368. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +0 -11
  369. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +862 -872
  370. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +4 -14
  371. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +2 -7
  372. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +14 -51
  373. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/global.d.ts +113 -0
  374. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/index.d.ts +56 -0
  375. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/interface.d.ts +1661 -0
  376. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +17 -17
  377. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/global.d.ts +59 -0
  378. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/index.d.ts +29 -0
  379. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/interface.d.ts +1939 -0
  380. package/types/vue/LifeCycle.d.ts +865 -854
@@ -1,10 +1,10 @@
1
- export interface Uni {
2
- /**
3
- * 获取全局唯一的背景音频管理器 backgroundAudioManager
4
- *
5
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-background-audio-manager.html#getbackgroundaudiomanager
6
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
7
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-background-audio-manager.html#getbackgroundaudiomanager
1
+ export interface Uni {
2
+ /**
3
+ * 获取全局唯一的背景音频管理器 backgroundAudioManager
4
+ *
5
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-background-audio-manager.html#getbackgroundaudiomanager
6
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
7
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-background-audio-manager.html#getbackgroundaudiomanager
8
8
  * @uniPlatform {
9
9
  * "app": {
10
10
  * "android": {
@@ -21,7 +21,7 @@ export interface Uni {
21
21
  * "osVer": "3.0",
22
22
  * "uniVer": "4.31",
23
23
  * "unixVer": "4.61",
24
- * "unixvVer": "5.0"
24
+ * "unixVaporVer": "5.0"
25
25
  * }
26
26
  * },
27
27
  * "web": {
@@ -72,1203 +72,1203 @@ export interface Uni {
72
72
  * }
73
73
  * }
74
74
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/BackgroundAudioManager.html
75
- */
76
- getBackgroundAudioManager(): BackgroundAudioManager;
77
- }
78
-
79
- export type GetBackgroundAudioManager = () => BackgroundAudioManager;
80
-
81
- export interface BackgroundAudioManager {
82
- /**
83
- * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
84
- * @uniPlatform
85
- {
86
- "app": {
87
- "android": {
88
- "osVer": "5.0",
89
- "uniVer": "√",
90
- "uniUtsPlugin": "x",
91
- "unixVer": "4.41"
92
- },
93
- "ios": {
94
- "osVer": "12.0",
95
- "uniVer": "√",
96
- "uniUtsPlugin": "x",
97
- "unixVer": "4.41",
98
- "unixUtsPlugin": "4.41"
99
- }
100
- }
101
- }
102
- */
103
- duration: number;
104
- /**
105
- * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
106
- * @uniPlatform
107
- {
108
- "app": {
109
- "android": {
110
- "osVer": "5.0",
111
- "uniVer": "√",
112
- "uniUtsPlugin": "x",
113
- "unixVer": "4.41"
114
- },
115
- "ios": {
116
- "osVer": "12.0",
117
- "uniVer": "√",
118
- "uniUtsPlugin": "x",
119
- "unixVer": "4.41",
120
- "unixUtsPlugin": "4.41"
121
- }
122
- }
123
- }
124
- */
125
- currentTime: number;
126
- /**
127
- * 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
128
- * @uniPlatform
129
- {
130
- "app": {
131
- "android": {
132
- "osVer": "5.0",
133
- "uniVer": "√",
134
- "uniUtsPlugin": "x",
135
- "unixVer": "4.41"
136
- },
137
- "ios": {
138
- "osVer": "12.0",
139
- "uniVer": "√",
140
- "uniUtsPlugin": "x",
141
- "unixVer": "4.41",
142
- "unixUtsPlugin": "4.41"
143
- }
144
- }
145
- }
146
- */
147
- paused: boolean;
148
- /**
149
- * 音频的数据源,默认为空字符串,当设置了新的 src 时,会自动开始播放 ,目前支持的格式有 m4a, aac, mp3, wav
150
- * @uniPlatform
151
- {
152
- "app": {
153
- "android": {
154
- "osVer": "5.0",
155
- "uniVer": "√",
156
- "uniUtsPlugin": "x",
157
- "unixVer": "4.41"
158
- },
159
- "ios": {
160
- "osVer": "12.0",
161
- "uniVer": "√",
162
- "uniUtsPlugin": "x",
163
- "unixVer": "4.41",
164
- "unixUtsPlugin": "4.41"
165
- }
166
- }
167
- }
168
- */
169
- src: string;
170
- /**
171
- * 音频开始播放的位置(单位:s)
172
- * @uniPlatform
173
- {
174
- "app": {
175
- "android": {
176
- "osVer": "5.0",
177
- "uniVer": "√",
178
- "uniUtsPlugin": "x",
179
- "unixVer": "4.41"
180
- },
181
- "ios": {
182
- "osVer": "12.0",
183
- "uniVer": "√",
184
- "uniUtsPlugin": "x",
185
- "unixVer": "4.41",
186
- "unixUtsPlugin": "4.41"
187
- }
188
- }
189
- }
190
- */
191
- startTime: number;
192
- /**
193
- * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
194
- * @uniPlatform
195
- {
196
- "app": {
197
- "android": {
198
- "osVer": "5.0",
199
- "uniVer": "√",
200
- "uniUtsPlugin": "x",
201
- "unixVer": "4.41"
202
- },
203
- "ios": {
204
- "osVer": "12.0",
205
- "uniVer": "√",
206
- "uniUtsPlugin": "x",
207
- "unixVer": "4.41",
208
- "unixUtsPlugin": "4.41"
209
- },
210
- "harmony": {
211
- "osVer": "x",
212
- "uniVer": "x",
213
- "unixVer": "x"
214
- }
215
- }
216
- }
217
- */
218
- buffered: number;
219
- /**
220
- * 音频标题,用于做原生音频播放器音频标题。原生音频播放器中的分享功能,分享出去的卡片标题,也将使用该值。
221
- * @uniPlatform
222
- {
223
- "app": {
224
- "android": {
225
- "osVer": "5.0",
226
- "uniVer": "√",
227
- "uniUtsPlugin": "x",
228
- "unixVer": "4.41"
229
- },
230
- "ios": {
231
- "osVer": "12.0",
232
- "uniVer": "√",
233
- "uniUtsPlugin": "x",
234
- "unixVer": "4.41",
235
- "unixUtsPlugin": "4.41"
236
- },
237
- "harmony": {
238
- "osVer": "5.0.0",
239
- "uniVer": "4.61",
240
- "unixVer": "4.61",
241
- "unixvVer": "5.0"
242
- }
243
- }
244
- }
245
- */
246
- title: string;
247
- /**
248
- * 专辑名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
249
- * @uniPlatform
250
- {
251
- "app": {
252
- "android": {
253
- "osVer": "5.0",
254
- "uniVer": "√",
255
- "uniUtsPlugin": "x",
256
- "unixVer": "4.41"
257
- },
258
- "ios": {
259
- "osVer": "12.0",
260
- "uniVer": "√",
261
- "uniUtsPlugin": "x",
262
- "unixVer": "4.41",
263
- "unixUtsPlugin": "4.41"
264
- },
265
- "harmony": {
266
- "osVer": "5.0.0",
267
- "uniVer": "4.61",
268
- "unixVer": "4.61",
269
- "unixvVer": "5.0"
270
- }
271
- }
272
- }
273
- */
274
- epname: string;
275
- /**
276
- * 歌手名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
277
- * @uniPlatform
278
- {
279
- "app": {
280
- "android": {
281
- "osVer": "5.0",
282
- "uniVer": "√",
283
- "uniUtsPlugin": "x",
284
- "unixVer": "4.41"
285
- },
286
- "ios": {
287
- "osVer": "12.0",
288
- "uniVer": "√",
289
- "uniUtsPlugin": "x",
290
- "unixVer": "4.41",
291
- "unixUtsPlugin": "4.41"
292
- },
293
- "harmony": {
294
- "osVer": "5.0.0",
295
- "uniVer": "4.61",
296
- "unixVer": "4.61",
297
- "unixvVer": "5.0"
298
- }
299
- }
300
- }
301
- */
302
- singer: string;
303
- /**
304
- * 封面图url,用于做原生音频播放器背景图。原生音频播放器中的分享功能,分享出去的卡片配图及背景也将使用该图。
305
- * @uniPlatform
306
- {
307
- "app": {
308
- "android": {
309
- "osVer": "5.0",
310
- "uniVer": "√",
311
- "uniUtsPlugin": "x",
312
- "unixVer": "4.41"
313
- },
314
- "ios": {
315
- "osVer": "12.0",
316
- "uniVer": "√",
317
- "uniUtsPlugin": "x",
318
- "unixVer": "4.41",
319
- "unixUtsPlugin": "4.41"
320
- },
321
- "harmony": {
322
- "osVer": "5.0.0",
323
- "uniVer": "4.61",
324
- "unixVer": "4.61",
325
- "unixvVer": "5.0"
326
- }
327
- }
328
- }
329
- */
330
- coverImgUrl: string;
331
- /**
332
- * 页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
333
- * @uniPlatform
334
- {
335
- "app": {
336
- "android": {
337
- "osVer": "5.0",
338
- "uniVer": "√",
339
- "uniUtsPlugin": "x",
340
- "unixVer": "x"
341
- },
342
- "ios": {
343
- "osVer": "12.0",
344
- "uniVer": "√",
345
- "uniUtsPlugin": "x",
346
- "unixVer": "x",
347
- "unixUtsPlugin": "x"
348
- },
349
- "harmony": {
350
- "osVer": "x",
351
- "uniVer": "x",
352
- "unixVer": "x"
353
- }
354
- }
355
- }
356
- */
357
- webUrl: string;
358
- /**
359
- * 音频协议。默认值为 'http',设置 'hls' 可以支持播放 HLS 协议的直播音频
360
- * @uniPlatform
361
- {
362
- "app": {
363
- "android": {
364
- "osVer": "5.0",
365
- "uniVer": "√",
366
- "uniUtsPlugin": "x",
367
- "unixVer": "x"
368
- },
369
- "ios": {
370
- "osVer": "12.0",
371
- "uniVer": "√",
372
- "uniUtsPlugin": "x",
373
- "unixVer": "x",
374
- "unixUtsPlugin": "x"
375
- },
376
- "harmony": {
377
- "osVer": "x",
378
- "uniVer": "x",
379
- "unixVer": "x"
380
- }
381
- }
382
- }
383
- */
384
- protocol: string;
385
- /**
386
- * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
387
- * @uniPlatform
388
- {
389
- "app": {
390
- "android": {
391
- "osVer": "5.0",
392
- "uniVer": "√",
393
- "uniUtsPlugin": "x",
394
- "unixVer": "4.41"
395
- },
396
- "ios": {
397
- "osVer": "12.0",
398
- "uniVer": "√",
399
- "uniUtsPlugin": "x",
400
- "unixVer": "4.41",
401
- "unixUtsPlugin": "4.41"
402
- },
403
- "harmony": {
404
- "osVer": "x",
405
- "uniVer": "x",
406
- "unixVer": "x"
407
- }
408
- }
409
- }
410
- */
411
- playbackRate?: number;
412
- /**
413
- * 是否缓存线上音频资源,默认值为true,当设置false时,不会缓存资源到本地,直播地址需要主动设置为false
414
- * @uniPlatform
415
- {
416
- "app": {
417
- "android": {
418
- "osVer": "5.0",
419
- "uniVer": "x",
420
- "uniUtsPlugin": "x",
421
- "unixVer": "4.71"
422
- },
423
- "ios": {
424
- "osVer": "12.0",
425
- "uniVer": "x",
426
- "uniUtsPlugin": "x",
427
- "unixVer": "4.71",
428
- "unixUtsPlugin": "4.71"
429
- },
430
- "harmony": {
431
- "osVer": "x",
432
- "uniVer": "x",
433
- "unixVer": "x",
434
- }
435
- },
436
- "mp": {
437
- "weixin": {
438
- "hostVer": "√",
439
- "uniVer": "√",
440
- "unixVer": "4.41"
441
- },
442
- "alipay": {
443
- "hostVer": "1.23.4",
444
- "uniVer": "√",
445
- "unixVer": "x"
446
- },
447
- "baidu": {
448
- "hostVer": "√",
449
- "uniVer": "√",
450
- "unixVer": "x"
451
- },
452
- "toutiao": {
453
- "hostVer": "√",
454
- "uniVer": "√",
455
- "unixVer": "x"
456
- },
457
- "lark": {
458
- "hostVer": "√",
459
- "uniVer": "√",
460
- "unixVer": "x"
461
- },
462
- "qq": {
463
- "hostVer": "√",
464
- "uniVer": "√",
465
- "unixVer": "x"
466
- },
467
- "kuaishou": {
468
- "hostVer": "√",
469
- "uniVer": "√",
470
- "unixVer": "x"
471
- },
472
- "jd": {
473
- "hostVer": "√",
474
- "uniVer": "√",
475
- "unixVer": "x"
476
- }
477
- },
478
- "web": {
479
- "uniVer": "√",
480
- "unixVer": "4.0"
481
- }
482
- }
483
- */
484
- cache: boolean;
485
- /**
486
- * 播放
487
- * @uniPlatform
488
- {
489
- "app": {
490
- "android": {
491
- "osVer": "5.0",
492
- "uniVer": "√",
493
- "uniUtsPlugin": "x",
494
- "unixVer": "4.41"
495
- },
496
- "ios": {
497
- "osVer": "12.0",
498
- "uniVer": "√",
499
- "uniUtsPlugin": "x",
500
- "unixVer": "4.41",
501
- "unixUtsPlugin": "4.41"
502
- },
503
- "harmony": {
504
- "osVer": "5.0.0",
505
- "uniVer": "4.31",
506
- "unixVer": "4.61",
507
- "unixvVer": "5.0"
508
- }
509
- }
510
- }
511
- */
512
- play(): void;
513
- /**
514
- * 暂停
515
- * @uniPlatform
516
- {
517
- "app": {
518
- "android": {
519
- "osVer": "5.0",
520
- "uniVer": "√",
521
- "uniUtsPlugin": "x",
522
- "unixVer": "4.41"
523
- },
524
- "ios": {
525
- "osVer": "12.0",
526
- "uniVer": "√",
527
- "uniUtsPlugin": "x",
528
- "unixVer": "4.41",
529
- "unixUtsPlugin": "4.41"
530
- },
531
- "harmony": {
532
- "osVer": "5.0.0",
533
- "uniVer": "4.31",
534
- "unixVer": "4.61",
535
- "unixvVer": "5.0"
536
- }
537
- }
538
- }
539
- */
540
- pause(): void;
541
- /**
542
- * 跳转到指定位置,单位 s
543
- * @uniPlatform
544
- {
545
- "app": {
546
- "android": {
547
- "osVer": "5.0",
548
- "uniVer": "√",
549
- "uniUtsPlugin": "x",
550
- "unixVer": "4.41"
551
- },
552
- "ios": {
553
- "osVer": "12.0",
554
- "uniVer": "√",
555
- "uniUtsPlugin": "x",
556
- "unixVer": "4.41",
557
- "unixUtsPlugin": "4.41"
558
- },
559
- "harmony": {
560
- "osVer": "5.0.0",
561
- "uniVer": "4.31",
562
- "unixVer": "4.61",
563
- "unixvVer": "5.0"
564
- }
565
- }
566
- }
567
- */
568
- seek(position: number): void;
569
- /**
570
- * 停止
571
- * @uniPlatform
572
- {
573
- "app": {
574
- "android": {
575
- "osVer": "5.0",
576
- "uniVer": "√",
577
- "uniUtsPlugin": "x",
578
- "unixVer": "4.41"
579
- },
580
- "ios": {
581
- "osVer": "12.0",
582
- "uniVer": "√",
583
- "uniUtsPlugin": "x",
584
- "unixVer": "4.41",
585
- "unixUtsPlugin": "4.41"
586
- },
587
- "harmony": {
588
- "osVer": "5.0.0",
589
- "uniVer": "4.31",
590
- "unixVer": "4.61",
591
- "unixvVer": "5.0"
592
- }
593
- }
594
- }
595
- */
596
- stop(): void;
597
- /**
598
- * 背景音频进入可以播放状态,但不保证后面可以流畅播放
599
- * @uniPlatform
600
- {
601
- "app": {
602
- "android": {
603
- "osVer": "5.0",
604
- "uniVer": "√",
605
- "uniUtsPlugin": "x",
606
- "unixVer": "4.41"
607
- },
608
- "ios": {
609
- "osVer": "12.0",
610
- "uniVer": "√",
611
- "uniUtsPlugin": "x",
612
- "unixVer": "4.41",
613
- "unixUtsPlugin": "4.41"
614
- },
615
- "harmony": {
616
- "osVer": "5.0.0",
617
- "uniVer": "4.31",
618
- "unixVer": "4.61",
619
- "unixvVer": "5.0"
620
- }
621
- }
622
- }
623
- */
624
- onCanplay(callback: (result: any) => void): void;
625
- /**
626
- * 背景音频播放事件
627
- * @uniPlatform
628
- {
629
- "app": {
630
- "android": {
631
- "osVer": "5.0",
632
- "uniVer": "√",
633
- "uniUtsPlugin": "x",
634
- "unixVer": "4.41"
635
- },
636
- "ios": {
637
- "osVer": "12.0",
638
- "uniVer": "√",
639
- "uniUtsPlugin": "x",
640
- "unixVer": "4.41",
641
- "unixUtsPlugin": "4.41"
642
- },
643
- "harmony": {
644
- "osVer": "5.0.0",
645
- "uniVer": "4.31",
646
- "unixVer": "4.61",
647
- "unixvVer": "5.0"
648
- }
649
- }
650
- }
651
- */
652
- onPlay(callback: (result: any) => void): void;
653
- /**
654
- * 背景音频暂停事件
655
- * @uniPlatform
656
- {
657
- "app": {
658
- "android": {
659
- "osVer": "5.0",
660
- "uniVer": "√",
661
- "uniUtsPlugin": "x",
662
- "unixVer": "4.41"
663
- },
664
- "ios": {
665
- "osVer": "12.0",
666
- "uniVer": "√",
667
- "uniUtsPlugin": "x",
668
- "unixVer": "4.41",
669
- "unixUtsPlugin": "4.41"
670
- },
671
- "harmony": {
672
- "osVer": "5.0.0",
673
- "uniVer": "4.31",
674
- "unixVer": "4.61",
675
- "unixvVer": "5.0"
676
- }
677
- }
678
- }
679
- */
680
- onPause(callback: (result: any) => void): void;
681
- /**
682
- * 背景音频停止事件
683
- * @uniPlatform
684
- {
685
- "app": {
686
- "android": {
687
- "osVer": "5.0",
688
- "uniVer": "√",
689
- "uniUtsPlugin": "x",
690
- "unixVer": "4.41"
691
- },
692
- "ios": {
693
- "osVer": "12.0",
694
- "uniVer": "√",
695
- "uniUtsPlugin": "x",
696
- "unixVer": "4.41",
697
- "unixUtsPlugin": "4.41"
698
- },
699
- "harmony": {
700
- "osVer": "5.0.0",
701
- "uniVer": "4.31",
702
- "unixVer": "4.61",
703
- "unixvVer": "5.0"
704
- }
705
- }
706
- }
707
- */
708
- onStop(callback: (result: any) => void): void;
709
- /**
710
- * 背景音频自然播放结束事件
711
- * @uniPlatform
712
- {
713
- "app": {
714
- "android": {
715
- "osVer": "5.0",
716
- "uniVer": "√",
717
- "uniUtsPlugin": "x",
718
- "unixVer": "4.41"
719
- },
720
- "ios": {
721
- "osVer": "12.0",
722
- "uniVer": "√",
723
- "uniUtsPlugin": "x",
724
- "unixVer": "4.41",
725
- "unixUtsPlugin": "4.41"
726
- },
727
- "harmony": {
728
- "osVer": "5.0.0",
729
- "uniVer": "4.31",
730
- "unixVer": "4.61",
731
- "unixvVer": "5.0"
732
- }
733
- }
734
- }
735
- */
736
- onEnded(callback: (result: any) => void): void;
737
- /**
738
- * 音频进行 seek 操作事件
739
- * @uniPlatform
740
- {
741
- "app": {
742
- "android": {
743
- "osVer": "5.0",
744
- "uniVer": "√",
745
- "uniUtsPlugin": "x",
746
- "unixVer": "4.41"
747
- },
748
- "ios": {
749
- "osVer": "12.0",
750
- "uniVer": "√",
751
- "uniUtsPlugin": "x",
752
- "unixVer": "4.41",
753
- "unixUtsPlugin": "4.41"
754
- },
755
- "harmony": {
756
- "osVer": "5.0.0",
757
- "uniVer": "4.31",
758
- "unixVer": "4.61",
759
- "unixvVer": "5.0"
760
- }
761
- },
762
- "web": {
763
- "uniVer": "√",
764
- "unixVer": "4.0"
765
- }
766
- }
767
- */
768
- onSeeking(callback : (result : any) => void) : void;
769
- /**
770
- * 音频完成 seek 操作事件
771
- * @uniPlatform
772
- {
773
- "app": {
774
- "android": {
775
- "osVer": "5.0",
776
- "uniVer": "√",
777
- "uniUtsPlugin": "x",
778
- "unixVer": "4.41"
779
- },
780
- "ios": {
781
- "osVer": "12.0",
782
- "uniVer": "√",
783
- "uniUtsPlugin": "x",
784
- "unixVer": "4.41",
785
- "unixUtsPlugin": "4.41"
786
- },
787
- "harmony": {
788
- "osVer": "5.0.0",
789
- "uniVer": "4.31",
790
- "unixVer": "4.61",
791
- "unixvVer": "5.0"
792
- }
793
- },
794
- "web": {
795
- "uniVer": "√",
796
- "unixVer": "4.0"
797
- }
798
- }
799
- */
800
- onSeeked(callback : (result : any) => void) : void;
801
- /**
802
- * 背景音频播放进度更新事件
803
- * @uniPlatform
804
- {
805
- "app": {
806
- "android": {
807
- "osVer": "5.0",
808
- "uniVer": "√",
809
- "uniUtsPlugin": "x",
810
- "unixVer": "4.41"
811
- },
812
- "ios": {
813
- "osVer": "12.0",
814
- "uniVer": "√",
815
- "uniUtsPlugin": "x",
816
- "unixVer": "4.41",
817
- "unixUtsPlugin": "4.41"
818
- },
819
- "harmony": {
820
- "osVer": "5.0.0",
821
- "uniVer": "4.31",
822
- "unixVer": "4.61",
823
- "unixvVer": "5.0"
824
- }
825
- }
826
- }
827
- */
828
- onTimeUpdate(callback: (result: any) => void): void;
829
- /**
830
- * 用户在系统音乐播放面板点击上一曲事件
831
- * @uniPlatform
832
- {
833
- "app": {
834
- "android": {
835
- "osVer": "5.0",
836
- "uniVer": "√",
837
- "uniUtsPlugin": "x",
838
- "unixVer": "4.41"
839
- },
840
- "ios": {
841
- "osVer": "12.0",
842
- "uniVer": "√",
843
- "uniUtsPlugin": "x",
844
- "unixVer": "4.41",
845
- "unixUtsPlugin": "4.41"
846
- },
847
- "harmony": {
848
- "osVer": "5.0.0",
849
- "uniVer": "4.61",
850
- "unixVer": "4.61",
851
- "unixvVer": "5.0"
852
- }
853
- }
854
- }
855
- */
856
- onPrev(callback: (result: any) => void): void;
857
- /**
858
- * 用户在系统音乐播放面板点击下一曲事件
859
- * @uniPlatform
860
- {
861
- "app": {
862
- "android": {
863
- "osVer": "5.0",
864
- "uniVer": "√",
865
- "uniUtsPlugin": "x",
866
- "unixVer": "4.41"
867
- },
868
- "ios": {
869
- "osVer": "12.0",
870
- "uniVer": "√",
871
- "uniUtsPlugin": "x",
872
- "unixVer": "4.41",
873
- "unixUtsPlugin": "4.41"
874
- },
875
- "harmony": {
876
- "osVer": "5.0.0",
877
- "uniVer": "4.61",
878
- "unixVer": "4.61",
879
- "unixvVer": "5.0"
880
- }
881
- }
882
- }
883
- */
884
- onNext(callback: (result: any) => void): void;
885
- /**
886
- * 背景音频播放错误事件
887
- * @uniPlatform
888
- {
889
- "app": {
890
- "android": {
891
- "osVer": "5.0",
892
- "uniVer": "√",
893
- "uniUtsPlugin": "x",
894
- "unixVer": "4.41"
895
- },
896
- "ios": {
897
- "osVer": "12.0",
898
- "uniVer": "√",
899
- "uniUtsPlugin": "x",
900
- "unixVer": "4.41",
901
- "unixUtsPlugin": "4.41"
902
- },
903
- "harmony": {
904
- "osVer": "5.0.0",
905
- "uniVer": "4.31",
906
- "unixVer": "4.61",
907
- "unixvVer": "5.0"
908
- }
909
- }
910
- }
911
- */
912
- onError(callback : (result : ICreateBackgroundAudioFail) => void) : void;
913
- /**
914
- * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
915
- * @uniPlatform
916
- {
917
- "app": {
918
- "android": {
919
- "osVer": "5.0",
920
- "uniVer": "√",
921
- "uniUtsPlugin": "x",
922
- "unixVer": "4.41"
923
- },
924
- "ios": {
925
- "osVer": "12.0",
926
- "uniVer": "√",
927
- "uniUtsPlugin": "x",
928
- "unixVer": "4.41",
929
- "unixUtsPlugin": "4.41"
930
- },
931
- "harmony": {
932
- "osVer": "x",
933
- "uniVer": "x",
934
- "unixVer": "x"
935
- }
936
- }
937
- }
938
- */
939
- onWaiting(callback: (result: any) => void): void;
940
-
941
- /**
942
- * 取消监听背景音频可播放事件
943
- * @uniPlatform
944
- {
945
- "app": {
946
- "android": {
947
- "osVer": "5.0",
948
- "uniVer": "√",
949
- "uniUtsPlugin": "x",
950
- "unixVer": "5.0"
951
- },
952
- "ios": {
953
- "osVer": "12.0",
954
- "uniVer": "√",
955
- "uniUtsPlugin": "x",
956
- "unixVer": "5.0",
957
- "unixUtsPlugin": "5.0"
958
- },
959
- "harmony": {
960
- "osVer": "5.0.0",
961
- "uniVer": "x",
962
- "unixVer": "5.0"
963
- }
964
- }
965
- }
966
- */
967
- offCanplay(): void;
968
- /**
969
- * 取消监听背景音频播放事件
970
- * @uniPlatform
971
- {
972
- "app": {
973
- "android": {
974
- "osVer": "5.0",
975
- "uniVer": "√",
976
- "uniUtsPlugin": "x",
977
- "unixVer": "5.0"
978
- },
979
- "ios": {
980
- "osVer": "12.0",
981
- "uniVer": "√",
982
- "uniUtsPlugin": "x",
983
- "unixVer": "5.0",
984
- "unixUtsPlugin": "5.0"
985
- },
986
- "harmony": {
987
- "osVer": "5.0.0",
988
- "uniVer": "x",
989
- "unixVer": "5.0"
990
- }
991
- }
992
- }
993
- */
994
- offPlay(): void;
995
- /**
996
- * 取消监听背景音频暂停事件
997
- * @uniPlatform
998
- {
999
- "app": {
1000
- "android": {
1001
- "osVer": "5.0",
1002
- "uniVer": "√",
1003
- "uniUtsPlugin": "x",
1004
- "unixVer": "5.0"
1005
- },
1006
- "ios": {
1007
- "osVer": "12.0",
1008
- "uniVer": "√",
1009
- "uniUtsPlugin": "x",
1010
- "unixVer": "5.0",
1011
- "unixUtsPlugin": "5.0"
1012
- },
1013
- "harmony": {
1014
- "osVer": "5.0.0",
1015
- "uniVer": "x",
1016
- "unixVer": "5.0"
1017
- }
1018
- }
1019
- }
1020
- */
1021
- offPause(): void;
1022
- /**
1023
- * 取消监听背景音频停止事件
1024
- * @uniPlatform
1025
- {
1026
- "app": {
1027
- "android": {
1028
- "osVer": "5.0",
1029
- "uniVer": "√",
1030
- "uniUtsPlugin": "x",
1031
- "unixVer": "5.0"
1032
- },
1033
- "ios": {
1034
- "osVer": "12.0",
1035
- "uniVer": "√",
1036
- "uniUtsPlugin": "x",
1037
- "unixVer": "5.0",
1038
- "unixUtsPlugin": "5.0"
1039
- },
1040
- "harmony": {
1041
- "osVer": "5.0.0",
1042
- "uniVer": "x",
1043
- "unixVer": "5.0"
1044
- }
1045
- }
1046
- }
1047
- */
1048
- offStop(): void;
1049
- /**
1050
- * 取消监听背景音频自然播放结束事件
1051
- * @uniPlatform
1052
- {
1053
- "app": {
1054
- "android": {
1055
- "osVer": "5.0",
1056
- "uniVer": "√",
1057
- "uniUtsPlugin": "x",
1058
- "unixVer": "5.0"
1059
- },
1060
- "ios": {
1061
- "osVer": "12.0",
1062
- "uniVer": "√",
1063
- "uniUtsPlugin": "x",
1064
- "unixVer": "5.0",
1065
- "unixUtsPlugin": "5.0"
1066
- },
1067
- "harmony": {
1068
- "osVer": "5.0.0",
1069
- "uniVer": "x",
1070
- "unixVer": "5.0"
1071
- }
1072
- }
1073
- }
1074
- */
1075
- offEnded(): void;
1076
- /**
1077
- * 取消监听音频进行 seek 操作事件
1078
- * @uniPlatform
1079
- {
1080
- "app": {
1081
- "android": {
1082
- "osVer": "5.0",
1083
- "uniVer": "√",
1084
- "uniUtsPlugin": "x",
1085
- "unixVer": "5.0"
1086
- },
1087
- "ios": {
1088
- "osVer": "12.0",
1089
- "uniVer": "√",
1090
- "uniUtsPlugin": "x",
1091
- "unixVer": "5.0",
1092
- "unixUtsPlugin": "5.0"
1093
- },
1094
- "harmony": {
1095
- "osVer": "5.0.0",
1096
- "uniVer": "x",
1097
- "unixVer": "5.0"
1098
- }
1099
- },
1100
- "web": {
1101
- "uniVer": "√",
1102
- "unixVer": "4.0"
1103
- }
1104
- }
1105
- */
1106
- offSeeking() : void;
1107
- /**
1108
- * 取消监听音频完成 seek 操作事件
1109
- * @uniPlatform
1110
- {
1111
- "app": {
1112
- "android": {
1113
- "osVer": "5.0",
1114
- "uniVer": "√",
1115
- "uniUtsPlugin": "x",
1116
- "unixVer": "5.0"
1117
- },
1118
- "ios": {
1119
- "osVer": "12.0",
1120
- "uniVer": "√",
1121
- "uniUtsPlugin": "x",
1122
- "unixVer": "5.0",
1123
- "unixUtsPlugin": "5.0"
1124
- },
1125
- "harmony": {
1126
- "osVer": "5.0.0",
1127
- "uniVer": "x",
1128
- "unixVer": "5.0"
1129
- }
1130
- },
1131
- "web": {
1132
- "uniVer": "√",
1133
- "unixVer": "4.0"
1134
- }
1135
- }
1136
- */
1137
- offSeeked() : void;
1138
- /**
1139
- * 取消监听背景音频播放进度更新事件
1140
- * @uniPlatform
1141
- {
1142
- "app": {
1143
- "android": {
1144
- "osVer": "5.0",
1145
- "uniVer": "√",
1146
- "uniUtsPlugin": "x",
1147
- "unixVer": "5.0"
1148
- },
1149
- "ios": {
1150
- "osVer": "12.0",
1151
- "uniVer": "√",
1152
- "uniUtsPlugin": "x",
1153
- "unixVer": "5.0",
1154
- "unixUtsPlugin": "5.0"
1155
- },
1156
- "harmony": {
1157
- "osVer": "5.0.0",
1158
- "uniVer": "x",
1159
- "unixVer": "5.0"
1160
- }
1161
- }
1162
- }
1163
- */
1164
- offTimeUpdate(): void;
1165
- /**
1166
- * 取消监听用户在系统音乐播放面板点击上一曲事件
1167
- * @uniPlatform
1168
- {
1169
- "app": {
1170
- "android": {
1171
- "osVer": "5.0",
1172
- "uniVer": "√",
1173
- "uniUtsPlugin": "x",
1174
- "unixVer": "5.0"
1175
- },
1176
- "ios": {
1177
- "osVer": "12.0",
1178
- "uniVer": "√",
1179
- "uniUtsPlugin": "x",
1180
- "unixVer": "5.0",
1181
- "unixUtsPlugin": "5.0"
1182
- },
1183
- "harmony": {
1184
- "osVer": "5.0.0",
1185
- "uniVer": "x",
1186
- "unixVer": "5.0"
1187
- }
1188
- }
1189
- }
1190
- */
1191
- offPrev(): void;
1192
- /**
1193
- * 取消监听用户在系统音乐播放面板点击下一曲事件
1194
- * @uniPlatform
1195
- {
1196
- "app": {
1197
- "android": {
1198
- "osVer": "5.0",
1199
- "uniVer": "√",
1200
- "uniUtsPlugin": "x",
1201
- "unixVer": "5.0"
1202
- },
1203
- "ios": {
1204
- "osVer": "12.0",
1205
- "uniVer": "√",
1206
- "uniUtsPlugin": "x",
1207
- "unixVer": "5.0",
1208
- "unixUtsPlugin": "5.0"
1209
- },
1210
- "harmony": {
1211
- "osVer": "5.0.0",
1212
- "uniVer": "x",
1213
- "unixVer": "5.0"
1214
- }
1215
- }
1216
- }
1217
- */
1218
- offNext(): void;
1219
- /**
1220
- * 背景音频播放错误事件
1221
- * @uniPlatform
1222
- {
1223
- "app": {
1224
- "android": {
1225
- "osVer": "5.0",
1226
- "uniVer": "√",
1227
- "uniUtsPlugin": "x",
1228
- "unixVer": "5.0"
1229
- },
1230
- "ios": {
1231
- "osVer": "12.0",
1232
- "uniVer": "√",
1233
- "uniUtsPlugin": "x",
1234
- "unixVer": "5.0",
1235
- "unixUtsPlugin": "5.0"
1236
- },
1237
- "harmony": {
1238
- "osVer": "5.0.0",
1239
- "uniVer": "x",
1240
- "unixVer": "5.0"
1241
- }
1242
- }
1243
- }
1244
- */
1245
- offError() : void;
1246
- /**
1247
- * 取消监听音频加载中事件
1248
- * @uniPlatform
1249
- {
1250
- "app": {
1251
- "android": {
1252
- "osVer": "5.0",
1253
- "uniVer": "√",
1254
- "uniUtsPlugin": "x",
1255
- "unixVer": "5.0"
1256
- },
1257
- "ios": {
1258
- "osVer": "12.0",
1259
- "uniVer": "√",
1260
- "uniUtsPlugin": "x",
1261
- "unixVer": "5.0",
1262
- "unixUtsPlugin": "5.0"
1263
- },
1264
- "harmony": {
1265
- "osVer": "x",
1266
- "uniVer": "x",
1267
- "unixVer": "x"
1268
- }
1269
- }
1270
- }
1271
- */
75
+ */
76
+ getBackgroundAudioManager(): BackgroundAudioManager;
77
+ }
78
+
79
+ export type GetBackgroundAudioManager = () => BackgroundAudioManager;
80
+
81
+ export interface BackgroundAudioManager {
82
+ /**
83
+ * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
84
+ * @uniPlatform
85
+ {
86
+ "app": {
87
+ "android": {
88
+ "osVer": "5.0",
89
+ "uniVer": "√",
90
+ "uniUtsPlugin": "x",
91
+ "unixVer": "4.41"
92
+ },
93
+ "ios": {
94
+ "osVer": "12.0",
95
+ "uniVer": "√",
96
+ "uniUtsPlugin": "x",
97
+ "unixVer": "4.41",
98
+ "unixUtsPlugin": "4.41"
99
+ }
100
+ }
101
+ }
102
+ */
103
+ duration: number;
104
+ /**
105
+ * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
106
+ * @uniPlatform
107
+ {
108
+ "app": {
109
+ "android": {
110
+ "osVer": "5.0",
111
+ "uniVer": "√",
112
+ "uniUtsPlugin": "x",
113
+ "unixVer": "4.41"
114
+ },
115
+ "ios": {
116
+ "osVer": "12.0",
117
+ "uniVer": "√",
118
+ "uniUtsPlugin": "x",
119
+ "unixVer": "4.41",
120
+ "unixUtsPlugin": "4.41"
121
+ }
122
+ }
123
+ }
124
+ */
125
+ currentTime: number;
126
+ /**
127
+ * 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
128
+ * @uniPlatform
129
+ {
130
+ "app": {
131
+ "android": {
132
+ "osVer": "5.0",
133
+ "uniVer": "√",
134
+ "uniUtsPlugin": "x",
135
+ "unixVer": "4.41"
136
+ },
137
+ "ios": {
138
+ "osVer": "12.0",
139
+ "uniVer": "√",
140
+ "uniUtsPlugin": "x",
141
+ "unixVer": "4.41",
142
+ "unixUtsPlugin": "4.41"
143
+ }
144
+ }
145
+ }
146
+ */
147
+ paused: boolean;
148
+ /**
149
+ * 音频的数据源,默认为空字符串,当设置了新的 src 时,会自动开始播放 ,目前支持的格式有 m4a, aac, mp3, wav
150
+ * @uniPlatform
151
+ {
152
+ "app": {
153
+ "android": {
154
+ "osVer": "5.0",
155
+ "uniVer": "√",
156
+ "uniUtsPlugin": "x",
157
+ "unixVer": "4.41"
158
+ },
159
+ "ios": {
160
+ "osVer": "12.0",
161
+ "uniVer": "√",
162
+ "uniUtsPlugin": "x",
163
+ "unixVer": "4.41",
164
+ "unixUtsPlugin": "4.41"
165
+ }
166
+ }
167
+ }
168
+ */
169
+ src: string;
170
+ /**
171
+ * 音频开始播放的位置(单位:s)
172
+ * @uniPlatform
173
+ {
174
+ "app": {
175
+ "android": {
176
+ "osVer": "5.0",
177
+ "uniVer": "√",
178
+ "uniUtsPlugin": "x",
179
+ "unixVer": "4.41"
180
+ },
181
+ "ios": {
182
+ "osVer": "12.0",
183
+ "uniVer": "√",
184
+ "uniUtsPlugin": "x",
185
+ "unixVer": "4.41",
186
+ "unixUtsPlugin": "4.41"
187
+ }
188
+ }
189
+ }
190
+ */
191
+ startTime: number;
192
+ /**
193
+ * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
194
+ * @uniPlatform
195
+ {
196
+ "app": {
197
+ "android": {
198
+ "osVer": "5.0",
199
+ "uniVer": "√",
200
+ "uniUtsPlugin": "x",
201
+ "unixVer": "4.41"
202
+ },
203
+ "ios": {
204
+ "osVer": "12.0",
205
+ "uniVer": "√",
206
+ "uniUtsPlugin": "x",
207
+ "unixVer": "4.41",
208
+ "unixUtsPlugin": "4.41"
209
+ },
210
+ "harmony": {
211
+ "osVer": "x",
212
+ "uniVer": "x",
213
+ "unixVer": "x"
214
+ }
215
+ }
216
+ }
217
+ */
218
+ buffered: number;
219
+ /**
220
+ * 音频标题,用于做原生音频播放器音频标题。原生音频播放器中的分享功能,分享出去的卡片标题,也将使用该值。
221
+ * @uniPlatform
222
+ {
223
+ "app": {
224
+ "android": {
225
+ "osVer": "5.0",
226
+ "uniVer": "√",
227
+ "uniUtsPlugin": "x",
228
+ "unixVer": "4.41"
229
+ },
230
+ "ios": {
231
+ "osVer": "12.0",
232
+ "uniVer": "√",
233
+ "uniUtsPlugin": "x",
234
+ "unixVer": "4.41",
235
+ "unixUtsPlugin": "4.41"
236
+ },
237
+ "harmony": {
238
+ "osVer": "5.0.0",
239
+ "uniVer": "4.61",
240
+ "unixVer": "4.61",
241
+ "unixVaporVer": "5.0"
242
+ }
243
+ }
244
+ }
245
+ */
246
+ title: string;
247
+ /**
248
+ * 专辑名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
249
+ * @uniPlatform
250
+ {
251
+ "app": {
252
+ "android": {
253
+ "osVer": "5.0",
254
+ "uniVer": "√",
255
+ "uniUtsPlugin": "x",
256
+ "unixVer": "4.41"
257
+ },
258
+ "ios": {
259
+ "osVer": "12.0",
260
+ "uniVer": "√",
261
+ "uniUtsPlugin": "x",
262
+ "unixVer": "4.41",
263
+ "unixUtsPlugin": "4.41"
264
+ },
265
+ "harmony": {
266
+ "osVer": "5.0.0",
267
+ "uniVer": "4.61",
268
+ "unixVer": "4.61",
269
+ "unixVaporVer": "5.0"
270
+ }
271
+ }
272
+ }
273
+ */
274
+ epname: string;
275
+ /**
276
+ * 歌手名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
277
+ * @uniPlatform
278
+ {
279
+ "app": {
280
+ "android": {
281
+ "osVer": "5.0",
282
+ "uniVer": "√",
283
+ "uniUtsPlugin": "x",
284
+ "unixVer": "4.41"
285
+ },
286
+ "ios": {
287
+ "osVer": "12.0",
288
+ "uniVer": "√",
289
+ "uniUtsPlugin": "x",
290
+ "unixVer": "4.41",
291
+ "unixUtsPlugin": "4.41"
292
+ },
293
+ "harmony": {
294
+ "osVer": "5.0.0",
295
+ "uniVer": "4.61",
296
+ "unixVer": "4.61",
297
+ "unixVaporVer": "5.0"
298
+ }
299
+ }
300
+ }
301
+ */
302
+ singer: string;
303
+ /**
304
+ * 封面图url,用于做原生音频播放器背景图。原生音频播放器中的分享功能,分享出去的卡片配图及背景也将使用该图。
305
+ * @uniPlatform
306
+ {
307
+ "app": {
308
+ "android": {
309
+ "osVer": "5.0",
310
+ "uniVer": "√",
311
+ "uniUtsPlugin": "x",
312
+ "unixVer": "4.41"
313
+ },
314
+ "ios": {
315
+ "osVer": "12.0",
316
+ "uniVer": "√",
317
+ "uniUtsPlugin": "x",
318
+ "unixVer": "4.41",
319
+ "unixUtsPlugin": "4.41"
320
+ },
321
+ "harmony": {
322
+ "osVer": "5.0.0",
323
+ "uniVer": "4.61",
324
+ "unixVer": "4.61",
325
+ "unixVaporVer": "5.0"
326
+ }
327
+ }
328
+ }
329
+ */
330
+ coverImgUrl: string;
331
+ /**
332
+ * 页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
333
+ * @uniPlatform
334
+ {
335
+ "app": {
336
+ "android": {
337
+ "osVer": "5.0",
338
+ "uniVer": "√",
339
+ "uniUtsPlugin": "x",
340
+ "unixVer": "x"
341
+ },
342
+ "ios": {
343
+ "osVer": "12.0",
344
+ "uniVer": "√",
345
+ "uniUtsPlugin": "x",
346
+ "unixVer": "x",
347
+ "unixUtsPlugin": "x"
348
+ },
349
+ "harmony": {
350
+ "osVer": "x",
351
+ "uniVer": "x",
352
+ "unixVer": "x"
353
+ }
354
+ }
355
+ }
356
+ */
357
+ webUrl: string;
358
+ /**
359
+ * 音频协议。默认值为 'http',设置 'hls' 可以支持播放 HLS 协议的直播音频
360
+ * @uniPlatform
361
+ {
362
+ "app": {
363
+ "android": {
364
+ "osVer": "5.0",
365
+ "uniVer": "√",
366
+ "uniUtsPlugin": "x",
367
+ "unixVer": "x"
368
+ },
369
+ "ios": {
370
+ "osVer": "12.0",
371
+ "uniVer": "√",
372
+ "uniUtsPlugin": "x",
373
+ "unixVer": "x",
374
+ "unixUtsPlugin": "x"
375
+ },
376
+ "harmony": {
377
+ "osVer": "x",
378
+ "uniVer": "x",
379
+ "unixVer": "x"
380
+ }
381
+ }
382
+ }
383
+ */
384
+ protocol: string;
385
+ /**
386
+ * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
387
+ * @uniPlatform
388
+ {
389
+ "app": {
390
+ "android": {
391
+ "osVer": "5.0",
392
+ "uniVer": "√",
393
+ "uniUtsPlugin": "x",
394
+ "unixVer": "4.41"
395
+ },
396
+ "ios": {
397
+ "osVer": "12.0",
398
+ "uniVer": "√",
399
+ "uniUtsPlugin": "x",
400
+ "unixVer": "4.41",
401
+ "unixUtsPlugin": "4.41"
402
+ },
403
+ "harmony": {
404
+ "osVer": "x",
405
+ "uniVer": "x",
406
+ "unixVer": "x"
407
+ }
408
+ }
409
+ }
410
+ */
411
+ playbackRate?: number;
412
+ /**
413
+ * 是否缓存线上音频资源,默认值为true,当设置false时,不会缓存资源到本地,直播地址需要主动设置为false
414
+ * @uniPlatform
415
+ {
416
+ "app": {
417
+ "android": {
418
+ "osVer": "5.0",
419
+ "uniVer": "x",
420
+ "uniUtsPlugin": "x",
421
+ "unixVer": "4.71"
422
+ },
423
+ "ios": {
424
+ "osVer": "12.0",
425
+ "uniVer": "x",
426
+ "uniUtsPlugin": "x",
427
+ "unixVer": "4.71",
428
+ "unixUtsPlugin": "4.71"
429
+ },
430
+ "harmony": {
431
+ "osVer": "x",
432
+ "uniVer": "x",
433
+ "unixVer": "x",
434
+ }
435
+ },
436
+ "mp": {
437
+ "weixin": {
438
+ "hostVer": "√",
439
+ "uniVer": "√",
440
+ "unixVer": "4.41"
441
+ },
442
+ "alipay": {
443
+ "hostVer": "1.23.4",
444
+ "uniVer": "√",
445
+ "unixVer": "x"
446
+ },
447
+ "baidu": {
448
+ "hostVer": "√",
449
+ "uniVer": "√",
450
+ "unixVer": "x"
451
+ },
452
+ "toutiao": {
453
+ "hostVer": "√",
454
+ "uniVer": "√",
455
+ "unixVer": "x"
456
+ },
457
+ "lark": {
458
+ "hostVer": "√",
459
+ "uniVer": "√",
460
+ "unixVer": "x"
461
+ },
462
+ "qq": {
463
+ "hostVer": "√",
464
+ "uniVer": "√",
465
+ "unixVer": "x"
466
+ },
467
+ "kuaishou": {
468
+ "hostVer": "√",
469
+ "uniVer": "√",
470
+ "unixVer": "x"
471
+ },
472
+ "jd": {
473
+ "hostVer": "√",
474
+ "uniVer": "√",
475
+ "unixVer": "x"
476
+ }
477
+ },
478
+ "web": {
479
+ "uniVer": "√",
480
+ "unixVer": "4.0"
481
+ }
482
+ }
483
+ */
484
+ cache: boolean;
485
+ /**
486
+ * 播放
487
+ * @uniPlatform
488
+ {
489
+ "app": {
490
+ "android": {
491
+ "osVer": "5.0",
492
+ "uniVer": "√",
493
+ "uniUtsPlugin": "x",
494
+ "unixVer": "4.41"
495
+ },
496
+ "ios": {
497
+ "osVer": "12.0",
498
+ "uniVer": "√",
499
+ "uniUtsPlugin": "x",
500
+ "unixVer": "4.41",
501
+ "unixUtsPlugin": "4.41"
502
+ },
503
+ "harmony": {
504
+ "osVer": "5.0.0",
505
+ "uniVer": "4.31",
506
+ "unixVer": "4.61",
507
+ "unixVaporVer": "5.0"
508
+ }
509
+ }
510
+ }
511
+ */
512
+ play(): void;
513
+ /**
514
+ * 暂停
515
+ * @uniPlatform
516
+ {
517
+ "app": {
518
+ "android": {
519
+ "osVer": "5.0",
520
+ "uniVer": "√",
521
+ "uniUtsPlugin": "x",
522
+ "unixVer": "4.41"
523
+ },
524
+ "ios": {
525
+ "osVer": "12.0",
526
+ "uniVer": "√",
527
+ "uniUtsPlugin": "x",
528
+ "unixVer": "4.41",
529
+ "unixUtsPlugin": "4.41"
530
+ },
531
+ "harmony": {
532
+ "osVer": "5.0.0",
533
+ "uniVer": "4.31",
534
+ "unixVer": "4.61",
535
+ "unixVaporVer": "5.0"
536
+ }
537
+ }
538
+ }
539
+ */
540
+ pause(): void;
541
+ /**
542
+ * 跳转到指定位置,单位 s
543
+ * @uniPlatform
544
+ {
545
+ "app": {
546
+ "android": {
547
+ "osVer": "5.0",
548
+ "uniVer": "√",
549
+ "uniUtsPlugin": "x",
550
+ "unixVer": "4.41"
551
+ },
552
+ "ios": {
553
+ "osVer": "12.0",
554
+ "uniVer": "√",
555
+ "uniUtsPlugin": "x",
556
+ "unixVer": "4.41",
557
+ "unixUtsPlugin": "4.41"
558
+ },
559
+ "harmony": {
560
+ "osVer": "5.0.0",
561
+ "uniVer": "4.31",
562
+ "unixVer": "4.61",
563
+ "unixVaporVer": "5.0"
564
+ }
565
+ }
566
+ }
567
+ */
568
+ seek(position: number): void;
569
+ /**
570
+ * 停止
571
+ * @uniPlatform
572
+ {
573
+ "app": {
574
+ "android": {
575
+ "osVer": "5.0",
576
+ "uniVer": "√",
577
+ "uniUtsPlugin": "x",
578
+ "unixVer": "4.41"
579
+ },
580
+ "ios": {
581
+ "osVer": "12.0",
582
+ "uniVer": "√",
583
+ "uniUtsPlugin": "x",
584
+ "unixVer": "4.41",
585
+ "unixUtsPlugin": "4.41"
586
+ },
587
+ "harmony": {
588
+ "osVer": "5.0.0",
589
+ "uniVer": "4.31",
590
+ "unixVer": "4.61",
591
+ "unixVaporVer": "5.0"
592
+ }
593
+ }
594
+ }
595
+ */
596
+ stop(): void;
597
+ /**
598
+ * 背景音频进入可以播放状态,但不保证后面可以流畅播放
599
+ * @uniPlatform
600
+ {
601
+ "app": {
602
+ "android": {
603
+ "osVer": "5.0",
604
+ "uniVer": "√",
605
+ "uniUtsPlugin": "x",
606
+ "unixVer": "4.41"
607
+ },
608
+ "ios": {
609
+ "osVer": "12.0",
610
+ "uniVer": "√",
611
+ "uniUtsPlugin": "x",
612
+ "unixVer": "4.41",
613
+ "unixUtsPlugin": "4.41"
614
+ },
615
+ "harmony": {
616
+ "osVer": "5.0.0",
617
+ "uniVer": "4.31",
618
+ "unixVer": "4.61",
619
+ "unixVaporVer": "5.0"
620
+ }
621
+ }
622
+ }
623
+ */
624
+ onCanplay(callback: (result: any) => void): void;
625
+ /**
626
+ * 背景音频播放事件
627
+ * @uniPlatform
628
+ {
629
+ "app": {
630
+ "android": {
631
+ "osVer": "5.0",
632
+ "uniVer": "√",
633
+ "uniUtsPlugin": "x",
634
+ "unixVer": "4.41"
635
+ },
636
+ "ios": {
637
+ "osVer": "12.0",
638
+ "uniVer": "√",
639
+ "uniUtsPlugin": "x",
640
+ "unixVer": "4.41",
641
+ "unixUtsPlugin": "4.41"
642
+ },
643
+ "harmony": {
644
+ "osVer": "5.0.0",
645
+ "uniVer": "4.31",
646
+ "unixVer": "4.61",
647
+ "unixVaporVer": "5.0"
648
+ }
649
+ }
650
+ }
651
+ */
652
+ onPlay(callback: (result: any) => void): void;
653
+ /**
654
+ * 背景音频暂停事件
655
+ * @uniPlatform
656
+ {
657
+ "app": {
658
+ "android": {
659
+ "osVer": "5.0",
660
+ "uniVer": "√",
661
+ "uniUtsPlugin": "x",
662
+ "unixVer": "4.41"
663
+ },
664
+ "ios": {
665
+ "osVer": "12.0",
666
+ "uniVer": "√",
667
+ "uniUtsPlugin": "x",
668
+ "unixVer": "4.41",
669
+ "unixUtsPlugin": "4.41"
670
+ },
671
+ "harmony": {
672
+ "osVer": "5.0.0",
673
+ "uniVer": "4.31",
674
+ "unixVer": "4.61",
675
+ "unixVaporVer": "5.0"
676
+ }
677
+ }
678
+ }
679
+ */
680
+ onPause(callback: (result: any) => void): void;
681
+ /**
682
+ * 背景音频停止事件
683
+ * @uniPlatform
684
+ {
685
+ "app": {
686
+ "android": {
687
+ "osVer": "5.0",
688
+ "uniVer": "√",
689
+ "uniUtsPlugin": "x",
690
+ "unixVer": "4.41"
691
+ },
692
+ "ios": {
693
+ "osVer": "12.0",
694
+ "uniVer": "√",
695
+ "uniUtsPlugin": "x",
696
+ "unixVer": "4.41",
697
+ "unixUtsPlugin": "4.41"
698
+ },
699
+ "harmony": {
700
+ "osVer": "5.0.0",
701
+ "uniVer": "4.31",
702
+ "unixVer": "4.61",
703
+ "unixVaporVer": "5.0"
704
+ }
705
+ }
706
+ }
707
+ */
708
+ onStop(callback: (result: any) => void): void;
709
+ /**
710
+ * 背景音频自然播放结束事件
711
+ * @uniPlatform
712
+ {
713
+ "app": {
714
+ "android": {
715
+ "osVer": "5.0",
716
+ "uniVer": "√",
717
+ "uniUtsPlugin": "x",
718
+ "unixVer": "4.41"
719
+ },
720
+ "ios": {
721
+ "osVer": "12.0",
722
+ "uniVer": "√",
723
+ "uniUtsPlugin": "x",
724
+ "unixVer": "4.41",
725
+ "unixUtsPlugin": "4.41"
726
+ },
727
+ "harmony": {
728
+ "osVer": "5.0.0",
729
+ "uniVer": "4.31",
730
+ "unixVer": "4.61",
731
+ "unixVaporVer": "5.0"
732
+ }
733
+ }
734
+ }
735
+ */
736
+ onEnded(callback: (result: any) => void): void;
737
+ /**
738
+ * 音频进行 seek 操作事件
739
+ * @uniPlatform
740
+ {
741
+ "app": {
742
+ "android": {
743
+ "osVer": "5.0",
744
+ "uniVer": "√",
745
+ "uniUtsPlugin": "x",
746
+ "unixVer": "4.41"
747
+ },
748
+ "ios": {
749
+ "osVer": "12.0",
750
+ "uniVer": "√",
751
+ "uniUtsPlugin": "x",
752
+ "unixVer": "4.41",
753
+ "unixUtsPlugin": "4.41"
754
+ },
755
+ "harmony": {
756
+ "osVer": "5.0.0",
757
+ "uniVer": "4.31",
758
+ "unixVer": "4.61",
759
+ "unixVaporVer": "5.0"
760
+ }
761
+ },
762
+ "web": {
763
+ "uniVer": "√",
764
+ "unixVer": "4.0"
765
+ }
766
+ }
767
+ */
768
+ onSeeking(callback : (result : any) => void) : void;
769
+ /**
770
+ * 音频完成 seek 操作事件
771
+ * @uniPlatform
772
+ {
773
+ "app": {
774
+ "android": {
775
+ "osVer": "5.0",
776
+ "uniVer": "√",
777
+ "uniUtsPlugin": "x",
778
+ "unixVer": "4.41"
779
+ },
780
+ "ios": {
781
+ "osVer": "12.0",
782
+ "uniVer": "√",
783
+ "uniUtsPlugin": "x",
784
+ "unixVer": "4.41",
785
+ "unixUtsPlugin": "4.41"
786
+ },
787
+ "harmony": {
788
+ "osVer": "5.0.0",
789
+ "uniVer": "4.31",
790
+ "unixVer": "4.61",
791
+ "unixVaporVer": "5.0"
792
+ }
793
+ },
794
+ "web": {
795
+ "uniVer": "√",
796
+ "unixVer": "4.0"
797
+ }
798
+ }
799
+ */
800
+ onSeeked(callback : (result : any) => void) : void;
801
+ /**
802
+ * 背景音频播放进度更新事件
803
+ * @uniPlatform
804
+ {
805
+ "app": {
806
+ "android": {
807
+ "osVer": "5.0",
808
+ "uniVer": "√",
809
+ "uniUtsPlugin": "x",
810
+ "unixVer": "4.41"
811
+ },
812
+ "ios": {
813
+ "osVer": "12.0",
814
+ "uniVer": "√",
815
+ "uniUtsPlugin": "x",
816
+ "unixVer": "4.41",
817
+ "unixUtsPlugin": "4.41"
818
+ },
819
+ "harmony": {
820
+ "osVer": "5.0.0",
821
+ "uniVer": "4.31",
822
+ "unixVer": "4.61",
823
+ "unixVaporVer": "5.0"
824
+ }
825
+ }
826
+ }
827
+ */
828
+ onTimeUpdate(callback: (result: any) => void): void;
829
+ /**
830
+ * 用户在系统音乐播放面板点击上一曲事件
831
+ * @uniPlatform
832
+ {
833
+ "app": {
834
+ "android": {
835
+ "osVer": "5.0",
836
+ "uniVer": "√",
837
+ "uniUtsPlugin": "x",
838
+ "unixVer": "4.41"
839
+ },
840
+ "ios": {
841
+ "osVer": "12.0",
842
+ "uniVer": "√",
843
+ "uniUtsPlugin": "x",
844
+ "unixVer": "4.41",
845
+ "unixUtsPlugin": "4.41"
846
+ },
847
+ "harmony": {
848
+ "osVer": "5.0.0",
849
+ "uniVer": "4.61",
850
+ "unixVer": "4.61",
851
+ "unixVaporVer": "5.0"
852
+ }
853
+ }
854
+ }
855
+ */
856
+ onPrev(callback: (result: any) => void): void;
857
+ /**
858
+ * 用户在系统音乐播放面板点击下一曲事件
859
+ * @uniPlatform
860
+ {
861
+ "app": {
862
+ "android": {
863
+ "osVer": "5.0",
864
+ "uniVer": "√",
865
+ "uniUtsPlugin": "x",
866
+ "unixVer": "4.41"
867
+ },
868
+ "ios": {
869
+ "osVer": "12.0",
870
+ "uniVer": "√",
871
+ "uniUtsPlugin": "x",
872
+ "unixVer": "4.41",
873
+ "unixUtsPlugin": "4.41"
874
+ },
875
+ "harmony": {
876
+ "osVer": "5.0.0",
877
+ "uniVer": "4.61",
878
+ "unixVer": "4.61",
879
+ "unixVaporVer": "5.0"
880
+ }
881
+ }
882
+ }
883
+ */
884
+ onNext(callback: (result: any) => void): void;
885
+ /**
886
+ * 背景音频播放错误事件
887
+ * @uniPlatform
888
+ {
889
+ "app": {
890
+ "android": {
891
+ "osVer": "5.0",
892
+ "uniVer": "√",
893
+ "uniUtsPlugin": "x",
894
+ "unixVer": "4.41"
895
+ },
896
+ "ios": {
897
+ "osVer": "12.0",
898
+ "uniVer": "√",
899
+ "uniUtsPlugin": "x",
900
+ "unixVer": "4.41",
901
+ "unixUtsPlugin": "4.41"
902
+ },
903
+ "harmony": {
904
+ "osVer": "5.0.0",
905
+ "uniVer": "4.31",
906
+ "unixVer": "4.61",
907
+ "unixVaporVer": "5.0"
908
+ }
909
+ }
910
+ }
911
+ */
912
+ onError(callback : (result : ICreateBackgroundAudioFail) => void) : void;
913
+ /**
914
+ * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
915
+ * @uniPlatform
916
+ {
917
+ "app": {
918
+ "android": {
919
+ "osVer": "5.0",
920
+ "uniVer": "√",
921
+ "uniUtsPlugin": "x",
922
+ "unixVer": "4.41"
923
+ },
924
+ "ios": {
925
+ "osVer": "12.0",
926
+ "uniVer": "√",
927
+ "uniUtsPlugin": "x",
928
+ "unixVer": "4.41",
929
+ "unixUtsPlugin": "4.41"
930
+ },
931
+ "harmony": {
932
+ "osVer": "x",
933
+ "uniVer": "x",
934
+ "unixVer": "x"
935
+ }
936
+ }
937
+ }
938
+ */
939
+ onWaiting(callback: (result: any) => void): void;
940
+
941
+ /**
942
+ * 取消监听背景音频可播放事件
943
+ * @uniPlatform
944
+ {
945
+ "app": {
946
+ "android": {
947
+ "osVer": "5.0",
948
+ "uniVer": "√",
949
+ "uniUtsPlugin": "x",
950
+ "unixVer": "5.0"
951
+ },
952
+ "ios": {
953
+ "osVer": "12.0",
954
+ "uniVer": "√",
955
+ "uniUtsPlugin": "x",
956
+ "unixVer": "5.0",
957
+ "unixUtsPlugin": "5.0"
958
+ },
959
+ "harmony": {
960
+ "osVer": "5.0.0",
961
+ "uniVer": "x",
962
+ "unixVer": "5.0"
963
+ }
964
+ }
965
+ }
966
+ */
967
+ offCanplay(): void;
968
+ /**
969
+ * 取消监听背景音频播放事件
970
+ * @uniPlatform
971
+ {
972
+ "app": {
973
+ "android": {
974
+ "osVer": "5.0",
975
+ "uniVer": "√",
976
+ "uniUtsPlugin": "x",
977
+ "unixVer": "5.0"
978
+ },
979
+ "ios": {
980
+ "osVer": "12.0",
981
+ "uniVer": "√",
982
+ "uniUtsPlugin": "x",
983
+ "unixVer": "5.0",
984
+ "unixUtsPlugin": "5.0"
985
+ },
986
+ "harmony": {
987
+ "osVer": "5.0.0",
988
+ "uniVer": "x",
989
+ "unixVer": "5.0"
990
+ }
991
+ }
992
+ }
993
+ */
994
+ offPlay(): void;
995
+ /**
996
+ * 取消监听背景音频暂停事件
997
+ * @uniPlatform
998
+ {
999
+ "app": {
1000
+ "android": {
1001
+ "osVer": "5.0",
1002
+ "uniVer": "√",
1003
+ "uniUtsPlugin": "x",
1004
+ "unixVer": "5.0"
1005
+ },
1006
+ "ios": {
1007
+ "osVer": "12.0",
1008
+ "uniVer": "√",
1009
+ "uniUtsPlugin": "x",
1010
+ "unixVer": "5.0",
1011
+ "unixUtsPlugin": "5.0"
1012
+ },
1013
+ "harmony": {
1014
+ "osVer": "5.0.0",
1015
+ "uniVer": "x",
1016
+ "unixVer": "5.0"
1017
+ }
1018
+ }
1019
+ }
1020
+ */
1021
+ offPause(): void;
1022
+ /**
1023
+ * 取消监听背景音频停止事件
1024
+ * @uniPlatform
1025
+ {
1026
+ "app": {
1027
+ "android": {
1028
+ "osVer": "5.0",
1029
+ "uniVer": "√",
1030
+ "uniUtsPlugin": "x",
1031
+ "unixVer": "5.0"
1032
+ },
1033
+ "ios": {
1034
+ "osVer": "12.0",
1035
+ "uniVer": "√",
1036
+ "uniUtsPlugin": "x",
1037
+ "unixVer": "5.0",
1038
+ "unixUtsPlugin": "5.0"
1039
+ },
1040
+ "harmony": {
1041
+ "osVer": "5.0.0",
1042
+ "uniVer": "x",
1043
+ "unixVer": "5.0"
1044
+ }
1045
+ }
1046
+ }
1047
+ */
1048
+ offStop(): void;
1049
+ /**
1050
+ * 取消监听背景音频自然播放结束事件
1051
+ * @uniPlatform
1052
+ {
1053
+ "app": {
1054
+ "android": {
1055
+ "osVer": "5.0",
1056
+ "uniVer": "√",
1057
+ "uniUtsPlugin": "x",
1058
+ "unixVer": "5.0"
1059
+ },
1060
+ "ios": {
1061
+ "osVer": "12.0",
1062
+ "uniVer": "√",
1063
+ "uniUtsPlugin": "x",
1064
+ "unixVer": "5.0",
1065
+ "unixUtsPlugin": "5.0"
1066
+ },
1067
+ "harmony": {
1068
+ "osVer": "5.0.0",
1069
+ "uniVer": "x",
1070
+ "unixVer": "5.0"
1071
+ }
1072
+ }
1073
+ }
1074
+ */
1075
+ offEnded(): void;
1076
+ /**
1077
+ * 取消监听音频进行 seek 操作事件
1078
+ * @uniPlatform
1079
+ {
1080
+ "app": {
1081
+ "android": {
1082
+ "osVer": "5.0",
1083
+ "uniVer": "√",
1084
+ "uniUtsPlugin": "x",
1085
+ "unixVer": "5.0"
1086
+ },
1087
+ "ios": {
1088
+ "osVer": "12.0",
1089
+ "uniVer": "√",
1090
+ "uniUtsPlugin": "x",
1091
+ "unixVer": "5.0",
1092
+ "unixUtsPlugin": "5.0"
1093
+ },
1094
+ "harmony": {
1095
+ "osVer": "5.0.0",
1096
+ "uniVer": "x",
1097
+ "unixVer": "5.0"
1098
+ }
1099
+ },
1100
+ "web": {
1101
+ "uniVer": "√",
1102
+ "unixVer": "4.0"
1103
+ }
1104
+ }
1105
+ */
1106
+ offSeeking() : void;
1107
+ /**
1108
+ * 取消监听音频完成 seek 操作事件
1109
+ * @uniPlatform
1110
+ {
1111
+ "app": {
1112
+ "android": {
1113
+ "osVer": "5.0",
1114
+ "uniVer": "√",
1115
+ "uniUtsPlugin": "x",
1116
+ "unixVer": "5.0"
1117
+ },
1118
+ "ios": {
1119
+ "osVer": "12.0",
1120
+ "uniVer": "√",
1121
+ "uniUtsPlugin": "x",
1122
+ "unixVer": "5.0",
1123
+ "unixUtsPlugin": "5.0"
1124
+ },
1125
+ "harmony": {
1126
+ "osVer": "5.0.0",
1127
+ "uniVer": "x",
1128
+ "unixVer": "5.0"
1129
+ }
1130
+ },
1131
+ "web": {
1132
+ "uniVer": "√",
1133
+ "unixVer": "4.0"
1134
+ }
1135
+ }
1136
+ */
1137
+ offSeeked() : void;
1138
+ /**
1139
+ * 取消监听背景音频播放进度更新事件
1140
+ * @uniPlatform
1141
+ {
1142
+ "app": {
1143
+ "android": {
1144
+ "osVer": "5.0",
1145
+ "uniVer": "√",
1146
+ "uniUtsPlugin": "x",
1147
+ "unixVer": "5.0"
1148
+ },
1149
+ "ios": {
1150
+ "osVer": "12.0",
1151
+ "uniVer": "√",
1152
+ "uniUtsPlugin": "x",
1153
+ "unixVer": "5.0",
1154
+ "unixUtsPlugin": "5.0"
1155
+ },
1156
+ "harmony": {
1157
+ "osVer": "5.0.0",
1158
+ "uniVer": "x",
1159
+ "unixVer": "5.0"
1160
+ }
1161
+ }
1162
+ }
1163
+ */
1164
+ offTimeUpdate(): void;
1165
+ /**
1166
+ * 取消监听用户在系统音乐播放面板点击上一曲事件
1167
+ * @uniPlatform
1168
+ {
1169
+ "app": {
1170
+ "android": {
1171
+ "osVer": "5.0",
1172
+ "uniVer": "√",
1173
+ "uniUtsPlugin": "x",
1174
+ "unixVer": "5.0"
1175
+ },
1176
+ "ios": {
1177
+ "osVer": "12.0",
1178
+ "uniVer": "√",
1179
+ "uniUtsPlugin": "x",
1180
+ "unixVer": "5.0",
1181
+ "unixUtsPlugin": "5.0"
1182
+ },
1183
+ "harmony": {
1184
+ "osVer": "5.0.0",
1185
+ "uniVer": "x",
1186
+ "unixVer": "5.0"
1187
+ }
1188
+ }
1189
+ }
1190
+ */
1191
+ offPrev(): void;
1192
+ /**
1193
+ * 取消监听用户在系统音乐播放面板点击下一曲事件
1194
+ * @uniPlatform
1195
+ {
1196
+ "app": {
1197
+ "android": {
1198
+ "osVer": "5.0",
1199
+ "uniVer": "√",
1200
+ "uniUtsPlugin": "x",
1201
+ "unixVer": "5.0"
1202
+ },
1203
+ "ios": {
1204
+ "osVer": "12.0",
1205
+ "uniVer": "√",
1206
+ "uniUtsPlugin": "x",
1207
+ "unixVer": "5.0",
1208
+ "unixUtsPlugin": "5.0"
1209
+ },
1210
+ "harmony": {
1211
+ "osVer": "5.0.0",
1212
+ "uniVer": "x",
1213
+ "unixVer": "5.0"
1214
+ }
1215
+ }
1216
+ }
1217
+ */
1218
+ offNext(): void;
1219
+ /**
1220
+ * 背景音频播放错误事件
1221
+ * @uniPlatform
1222
+ {
1223
+ "app": {
1224
+ "android": {
1225
+ "osVer": "5.0",
1226
+ "uniVer": "√",
1227
+ "uniUtsPlugin": "x",
1228
+ "unixVer": "5.0"
1229
+ },
1230
+ "ios": {
1231
+ "osVer": "12.0",
1232
+ "uniVer": "√",
1233
+ "uniUtsPlugin": "x",
1234
+ "unixVer": "5.0",
1235
+ "unixUtsPlugin": "5.0"
1236
+ },
1237
+ "harmony": {
1238
+ "osVer": "5.0.0",
1239
+ "uniVer": "x",
1240
+ "unixVer": "5.0"
1241
+ }
1242
+ }
1243
+ }
1244
+ */
1245
+ offError() : void;
1246
+ /**
1247
+ * 取消监听音频加载中事件
1248
+ * @uniPlatform
1249
+ {
1250
+ "app": {
1251
+ "android": {
1252
+ "osVer": "5.0",
1253
+ "uniVer": "√",
1254
+ "uniUtsPlugin": "x",
1255
+ "unixVer": "5.0"
1256
+ },
1257
+ "ios": {
1258
+ "osVer": "12.0",
1259
+ "uniVer": "√",
1260
+ "uniUtsPlugin": "x",
1261
+ "unixVer": "5.0",
1262
+ "unixUtsPlugin": "5.0"
1263
+ },
1264
+ "harmony": {
1265
+ "osVer": "x",
1266
+ "uniVer": "x",
1267
+ "unixVer": "x"
1268
+ }
1269
+ }
1270
+ }
1271
+ */
1272
1272
  offWaiting(): void;
1273
1273
  /**
1274
1274
  * 需要基础库: `3.4.8`
@@ -1423,138 +1423,138 @@ export interface BackgroundAudioManager {
1423
1423
  * }
1424
1424
  */
1425
1425
  referrerPolicy?: string | null;
1426
- }
1427
- /**
1428
- * 错误码
1429
- */
1430
- export type CreateBackgroundAudioErrorCode =
1431
- /**
1432
- * 系统错误
1433
- * @uniPlatform {
1434
- "app": {
1435
- "android": {
1436
- "osVer": "5.0",
1437
- "uniVer": "√",
1438
- "uniUtsPlugin": "x",
1439
- "unixVer": "4.41"
1440
- },
1441
- "ios": {
1442
- "osVer": "12.0",
1443
- "uniVer": "√",
1444
- "uniUtsPlugin": "x",
1445
- "unixVer": "4.41",
1446
- "unixUtsPlugin": "4.41"
1447
- }
1448
- },
1449
- }
1450
- */
1451
- 1107601 |
1452
- /**
1453
- * 网络错误
1454
- * @uniPlatform {
1455
- "app": {
1456
- "android": {
1457
- "osVer": "5.0",
1458
- "uniVer": "√",
1459
- "uniUtsPlugin": "x",
1460
- "unixVer": "4.41"
1461
- },
1462
- "ios": {
1463
- "osVer": "12.0",
1464
- "uniVer": "√",
1465
- "uniUtsPlugin": "x",
1466
- "unixVer": "4.41",
1467
- "unixUtsPlugin": "4.41"
1468
- }
1469
- },
1470
- }
1471
- */
1472
- 1107602 |
1473
- /**
1474
- * 文件错误
1475
- * @uniPlatform {
1476
- "app": {
1477
- "android": {
1478
- "osVer": "5.0",
1479
- "uniVer": "√",
1480
- "uniUtsPlugin": "x",
1481
- "unixVer": "4.41"
1482
- },
1483
- "ios": {
1484
- "osVer": "12.0",
1485
- "uniVer": "√",
1486
- "uniUtsPlugin": "x",
1487
- "unixVer": "4.41",
1488
- "unixUtsPlugin": "4.41"
1489
- }
1490
- },
1491
- }
1492
- */
1493
- 1107603 |
1494
- /**
1495
- * 格式错误
1496
- * @uniPlatform {
1497
- "app": {
1498
- "android": {
1499
- "osVer": "5.0",
1500
- "uniVer": "√",
1501
- "uniUtsPlugin": "x",
1502
- "unixVer": "4.41"
1503
- },
1504
- "ios": {
1505
- "osVer": "12.0",
1506
- "uniVer": "√",
1507
- "uniUtsPlugin": "x",
1508
- "unixVer": "4.41",
1509
- "unixUtsPlugin": "4.41"
1510
- }
1511
- },
1512
- }
1513
- */
1514
- 1107604 |
1515
- /**
1516
- * 未知错误
1517
- * @uniPlatform {
1518
- "app": {
1519
- "android": {
1520
- "osVer": "5.0",
1521
- "uniVer": "√",
1522
- "uniUtsPlugin": "x",
1523
- "unixVer": "4.41"
1524
- },
1525
- "ios": {
1526
- "osVer": "12.0",
1527
- "uniVer": "√",
1528
- "uniUtsPlugin": "x",
1529
- "unixVer": "4.41",
1530
- "unixUtsPlugin": "4.41"
1531
- }
1532
- },
1533
- }
1534
- */
1535
- 1107605 |
1536
- /**
1537
- * 播放路径不能为空
1538
- * @uniPlatform {
1539
- "app": {
1540
- "android": {
1541
- "osVer": "5.0",
1542
- "uniVer": "√",
1543
- "uniUtsPlugin": "x",
1544
- "unixVer": "4.41"
1545
- },
1546
- "ios": {
1547
- "osVer": "12.0",
1548
- "uniVer": "√",
1549
- "uniUtsPlugin": "x",
1550
- "unixVer": "4.41",
1551
- "unixUtsPlugin": "4.41"
1552
- }
1553
- },
1554
- }
1555
- */
1556
- 1107609;
1557
-
1558
- export interface ICreateBackgroundAudioFail extends IUniError {
1559
- errCode : CreateBackgroundAudioErrorCode
1560
- };
1426
+ }
1427
+ /**
1428
+ * 错误码
1429
+ */
1430
+ export type CreateBackgroundAudioErrorCode =
1431
+ /**
1432
+ * 系统错误
1433
+ * @uniPlatform {
1434
+ "app": {
1435
+ "android": {
1436
+ "osVer": "5.0",
1437
+ "uniVer": "√",
1438
+ "uniUtsPlugin": "x",
1439
+ "unixVer": "4.41"
1440
+ },
1441
+ "ios": {
1442
+ "osVer": "12.0",
1443
+ "uniVer": "√",
1444
+ "uniUtsPlugin": "x",
1445
+ "unixVer": "4.41",
1446
+ "unixUtsPlugin": "4.41"
1447
+ }
1448
+ },
1449
+ }
1450
+ */
1451
+ 1107601 |
1452
+ /**
1453
+ * 网络错误
1454
+ * @uniPlatform {
1455
+ "app": {
1456
+ "android": {
1457
+ "osVer": "5.0",
1458
+ "uniVer": "√",
1459
+ "uniUtsPlugin": "x",
1460
+ "unixVer": "4.41"
1461
+ },
1462
+ "ios": {
1463
+ "osVer": "12.0",
1464
+ "uniVer": "√",
1465
+ "uniUtsPlugin": "x",
1466
+ "unixVer": "4.41",
1467
+ "unixUtsPlugin": "4.41"
1468
+ }
1469
+ },
1470
+ }
1471
+ */
1472
+ 1107602 |
1473
+ /**
1474
+ * 文件错误
1475
+ * @uniPlatform {
1476
+ "app": {
1477
+ "android": {
1478
+ "osVer": "5.0",
1479
+ "uniVer": "√",
1480
+ "uniUtsPlugin": "x",
1481
+ "unixVer": "4.41"
1482
+ },
1483
+ "ios": {
1484
+ "osVer": "12.0",
1485
+ "uniVer": "√",
1486
+ "uniUtsPlugin": "x",
1487
+ "unixVer": "4.41",
1488
+ "unixUtsPlugin": "4.41"
1489
+ }
1490
+ },
1491
+ }
1492
+ */
1493
+ 1107603 |
1494
+ /**
1495
+ * 格式错误
1496
+ * @uniPlatform {
1497
+ "app": {
1498
+ "android": {
1499
+ "osVer": "5.0",
1500
+ "uniVer": "√",
1501
+ "uniUtsPlugin": "x",
1502
+ "unixVer": "4.41"
1503
+ },
1504
+ "ios": {
1505
+ "osVer": "12.0",
1506
+ "uniVer": "√",
1507
+ "uniUtsPlugin": "x",
1508
+ "unixVer": "4.41",
1509
+ "unixUtsPlugin": "4.41"
1510
+ }
1511
+ },
1512
+ }
1513
+ */
1514
+ 1107604 |
1515
+ /**
1516
+ * 未知错误
1517
+ * @uniPlatform {
1518
+ "app": {
1519
+ "android": {
1520
+ "osVer": "5.0",
1521
+ "uniVer": "√",
1522
+ "uniUtsPlugin": "x",
1523
+ "unixVer": "4.41"
1524
+ },
1525
+ "ios": {
1526
+ "osVer": "12.0",
1527
+ "uniVer": "√",
1528
+ "uniUtsPlugin": "x",
1529
+ "unixVer": "4.41",
1530
+ "unixUtsPlugin": "4.41"
1531
+ }
1532
+ },
1533
+ }
1534
+ */
1535
+ 1107605 |
1536
+ /**
1537
+ * 播放路径不能为空
1538
+ * @uniPlatform {
1539
+ "app": {
1540
+ "android": {
1541
+ "osVer": "5.0",
1542
+ "uniVer": "√",
1543
+ "uniUtsPlugin": "x",
1544
+ "unixVer": "4.41"
1545
+ },
1546
+ "ios": {
1547
+ "osVer": "12.0",
1548
+ "uniVer": "√",
1549
+ "uniUtsPlugin": "x",
1550
+ "unixVer": "4.41",
1551
+ "unixUtsPlugin": "4.41"
1552
+ }
1553
+ },
1554
+ }
1555
+ */
1556
+ 1107609;
1557
+
1558
+ export interface ICreateBackgroundAudioFail extends IUniError {
1559
+ errCode : CreateBackgroundAudioErrorCode
1560
+ };