@dcloudio/uni-app-x 0.7.49 → 0.7.50

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/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +30 -30
  6. package/types/app.d.ts +1383 -1383
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +8 -8
  9. package/types/native/CSSStyleDeclaration.d.ts +144 -144
  10. package/types/native/CanvasRenderingContext2D.d.ts +3748 -3748
  11. package/types/native/DOMRect.d.ts +656 -656
  12. package/types/native/DrawableContext.d.ts +1722 -1722
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +6103 -6103
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniNativeViewElement.d.ts +132 -130
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +269 -269
  22. package/types/native/SnapshotOptions.d.ts +62 -62
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniAnimation.d.ts +583 -583
  27. package/types/native/UniAnimationPlaybackEvent.d.ts +12 -12
  28. package/types/native/UniCallbackWrapper.d.ts +7 -7
  29. package/types/native/UniCanvasElement.d.ts +9 -9
  30. package/types/native/UniCustomEvent.d.ts +24 -24
  31. package/types/native/UniDocument.d.ts +83 -83
  32. package/types/native/UniElement.d.ts +85 -85
  33. package/types/native/UniError.d.ts +70 -70
  34. package/types/native/UniEvent.d.ts +121 -121
  35. package/types/native/UniFormControl.d.ts +8 -8
  36. package/types/native/UniFormControlElement.d.ts +15 -15
  37. package/types/native/UniImageErrorEvent.d.ts +33 -33
  38. package/types/native/UniImageLoadEvent.d.ts +37 -37
  39. package/types/native/UniInputBlurEvent.d.ts +36 -36
  40. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  41. package/types/native/UniInputEvent.d.ts +38 -38
  42. package/types/native/UniInputFocusEvent.d.ts +53 -53
  43. package/types/native/UniNativeApp.d.ts +205 -205
  44. package/types/native/UniNativePage.d.ts +328 -328
  45. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  46. package/types/native/UniPage.d.ts +639 -639
  47. package/types/native/UniPageBody.d.ts +109 -109
  48. package/types/native/UniPageEvent.d.ts +10 -10
  49. package/types/native/UniPageManager.d.ts +27 -27
  50. package/types/native/UniPageScrollEvent.d.ts +13 -13
  51. package/types/native/UniPointerEvent.d.ts +74 -74
  52. package/types/native/UniProvider.d.ts +32 -32
  53. package/types/native/UniRefresherEvent.d.ts +18 -18
  54. package/types/native/UniResizeEvent.d.ts +34 -34
  55. package/types/native/UniResizeObserver.d.ts +394 -394
  56. package/types/native/UniRichTextItemClickEvent.d.ts +37 -37
  57. package/types/native/UniSafeAreaInsets.d.ts +73 -73
  58. package/types/native/UniScrollEvent.d.ts +42 -42
  59. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  60. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  61. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  62. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  63. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  64. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  65. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  66. package/types/native/UniTabTapEvent.d.ts +18 -18
  67. package/types/native/UniTabsElement.d.ts +59 -59
  68. package/types/native/UniTextElement.d.ts +35 -35
  69. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  70. package/types/native/UniTouchEvent.d.ts +64 -64
  71. package/types/native/UniVideoElement.d.ts +515 -515
  72. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  73. package/types/native/UniWebViewElement.d.ts +10 -10
  74. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  75. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  76. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  77. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  78. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  79. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  80. package/types/native/WebViewStyles.d.ts +20 -20
  81. package/types/native/global.d.ts +662 -662
  82. package/types/native/index.d.ts +76 -76
  83. package/types/native-global/index.d.ts +1 -1
  84. package/types/page.d.ts +1731 -1731
  85. package/types/process.d.ts +5 -5
  86. package/types/uni/base/index.d.ts +3 -3
  87. package/types/uni/env/index.d.ts +117 -117
  88. package/types/uni/global.d.ts +7 -7
  89. package/types/uni/index.d.ts +5 -5
  90. package/types/uni/uni-map-tencent-global.d.ts +37 -37
  91. package/types/uni/uni-map-tencent-map.d.ts +62 -62
  92. package/types/uni/uts-plugin-api/global.d.ts +71 -71
  93. package/types/uni/uts-plugin-api/index.d.ts +71 -71
  94. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -22
  95. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -10
  96. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +554 -554
  97. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +24 -24
  98. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +11 -11
  99. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1765 -1765
  100. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  101. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  102. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +78 -78
  103. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +58 -58
  104. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +28 -28
  105. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1336 -1336
  106. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  107. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  108. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +78 -78
  109. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +22 -22
  110. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +10 -10
  111. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +972 -972
  112. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/global.d.ts +20 -20
  113. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  114. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +411 -411
  115. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -32
  116. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -15
  117. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  118. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  119. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +601 -601
  120. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -16
  121. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +7 -7
  122. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2664 -2664
  123. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  124. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  125. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +512 -512
  126. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  127. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  128. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  129. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  130. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  131. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +769 -769
  132. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  133. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  134. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  135. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  136. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  137. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/global.d.ts +10 -10
  138. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/index.d.ts +4 -4
  139. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +76 -76
  140. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  141. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  142. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  143. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  144. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  145. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +102 -102
  146. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  147. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  148. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +384 -384
  149. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +152 -152
  150. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -75
  151. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  152. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  153. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  154. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  155. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +616 -497
  156. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  157. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  158. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2557 -2557
  159. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +16 -16
  160. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +7 -7
  161. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1049 -1049
  162. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  163. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  164. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2006 -2006
  165. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  166. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  167. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +82 -82
  168. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  169. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  170. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +802 -802
  171. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  172. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  173. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +806 -806
  174. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  175. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  176. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1808 -1810
  177. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  178. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  179. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  180. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  181. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  182. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +20 -20
  183. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -10
  184. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -736
  185. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  186. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  187. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +692 -692
  188. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  189. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  190. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +419 -419
  191. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +36 -36
  192. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +17 -17
  193. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +634 -634
  194. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  195. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  196. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1024 -1024
  197. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +32 -32
  198. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +15 -15
  199. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +6755 -6755
  200. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  201. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  202. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +501 -501
  203. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  204. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  205. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  206. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  207. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  208. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  209. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  210. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +367 -367
  211. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +28 -28
  212. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +13 -13
  213. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +679 -679
  214. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  215. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  216. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +277 -277
  217. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +190 -190
  218. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +94 -94
  219. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2760 -2331
  220. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +18 -18
  221. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +8 -8
  222. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +762 -190
  223. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  224. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  225. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1210 -1210
  226. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +90 -90
  227. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +44 -44
  228. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +5752 -5752
  229. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +66 -66
  230. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +32 -32
  231. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2648 -2648
  232. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/global.d.ts +8 -8
  233. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/index.d.ts +4 -4
  234. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -1
  235. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  236. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  237. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +296 -296
  238. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  239. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  240. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +516 -516
  241. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  242. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  243. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +418 -418
  244. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  245. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  246. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +1084 -1084
  247. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  248. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  249. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -8
  250. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -4
  251. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -1
  252. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  253. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  254. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +46 -46
  255. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +22 -22
  256. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +878 -878
  257. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +30 -30
  258. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +14 -14
  259. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +609 -609
  260. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  261. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  262. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +4323 -4322
  263. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  264. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  265. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +323 -323
  266. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +20 -20
  267. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +9 -9
  268. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +709 -521
  269. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  270. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  271. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2847 -2847
  272. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  273. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  274. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +80 -80
  275. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  276. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  277. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +629 -615
  278. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +26 -26
  279. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +12 -12
  280. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +719 -719
  281. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/global.d.ts +18 -18
  282. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/index.d.ts +8 -8
  283. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +308 -276
  284. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  285. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  286. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1998 -1998
  287. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  288. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  289. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +3136 -3136
  290. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +54 -54
  291. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +26 -26
  292. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1105 -1105
  293. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  294. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  295. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +2306 -2306
  296. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  297. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  298. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2717 -2717
  299. package/types/uni/uts-plugin-biz/global.d.ts +7 -7
  300. package/types/uni/uts-plugin-biz/index.d.ts +7 -7
  301. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +44 -44
  302. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +21 -21
  303. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +1008 -1008
  304. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/global.d.ts +34 -34
  305. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/index.d.ts +16 -16
  306. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +24 -24
  307. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +11 -11
  308. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  309. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  310. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +212 -212
  311. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +66 -66
  312. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +32 -32
  313. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  314. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  315. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +960 -960
  316. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -24
  317. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -11
  318. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +52 -52
  319. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +25 -25
  320. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -64
  321. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -31
  322. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -900
  323. package/types/uni/uts-plugin-component/global.d.ts +2 -2
  324. package/types/uni/uts-plugin-component/index.d.ts +2 -2
  325. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +34 -34
  326. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +16 -16
  327. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +68 -66
  328. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +33 -32
  329. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +935 -927
  330. package/types/uni/uts-plugin-extend/README.md +3 -0
  331. package/types/uni/uts-plugin-extend/global.d.ts +11 -11
  332. package/types/uni/uts-plugin-extend/index.d.ts +10 -10
  333. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -7
  334. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -3
  335. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  336. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  337. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +917 -917
  338. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  339. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  340. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4770 -4770
  341. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  342. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  343. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1095 -1095
  344. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  345. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  346. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  347. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  348. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  349. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  350. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  351. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  352. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1670 -1670
  353. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  354. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  355. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +253 -253
  356. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  357. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  358. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +999 -999
  359. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  360. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  361. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  362. package/types/uni-cloud/index.d.ts +67 -67
  363. package/types/uni-cloud/interface.d.ts +1078 -1078
  364. package/types/uni-cloud/unicloud-db/index.ts +317 -317
  365. package/types/uni-global/index.d.ts +1 -1
  366. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  367. package/types/vue/LifeCycle.d.ts +55 -55
  368. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  369. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  370. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  371. package/types/vue/SliderChangeEvent.d.ts +35 -35
  372. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  373. package/types/vue/UniCanvasElement.d.ts +275 -275
  374. package/types/vue/UniCloudDBElement.d.ts +217 -217
  375. package/types/vue/UniFormElement.d.ts +54 -54
  376. package/types/vue/UniNavigatorElement.d.ts +11 -11
  377. package/types/vue/global.d.ts +191 -191
  378. package/types/vue/index.d.ts +10 -10
  379. package/types/vue-global/index.d.ts +1 -1
  380. package/uts-plugin.d.ts +33 -33
@@ -1,1049 +1,1049 @@
1
- export interface Uni {
2
- /**
3
- * 获取全局唯一的背景音频管理器 backgroundAudioManager
4
- *
5
- * @tutorial https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
6
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
7
- * @uniPlatform {
8
- * "app": {
9
- * "android": {
10
- * "osVer": "5.0",
11
- * "uniVer": "√",
12
- * "unixVer": "4.41"
13
- * },
14
- * "ios": {
15
- * "osVer": "12.0",
16
- * "uniVer": "√",
17
- * "unixVer": "4.41"
18
- * },
19
- * "harmony": {
20
- * "osVer": "3.0",
21
- * "uniVer": "4.31",
22
- * "unixVer": "4.61"
23
- * }
24
- * },
25
- * "web": {
26
- * "uniVer": "√",
27
- * "unixVer": "x"
28
- * },
29
- * "mp": {
30
- * "weixin": {
31
- * "hostVer": "1.2.0",
32
- * "uniVer": "√",
33
- * "unixVer": "4.41"
34
- * },
35
- * "alipay": {
36
- * "hostVer": "1.11.0",
37
- * "uniVer": "√",
38
- * "unixVer": "x"
39
- * },
40
- * "baidu": {
41
- * "hostVer": "√",
42
- * "uniVer": "√",
43
- * "unixVer": "x"
44
- * },
45
- * "toutiao": {
46
- * "hostVer": "√",
47
- * "uniVer": "√",
48
- * "unixVer": "x"
49
- * },
50
- * "lark": {
51
- * "hostVer": "5.20.0",
52
- * "uniVer": "√",
53
- * "unixVer": "x"
54
- * },
55
- * "qq": {
56
- * "hostVer": "√",
57
- * "uniVer": "√",
58
- * "unixVer": "x"
59
- * },
60
- * "kuaishou": {
61
- * "hostVer": "√",
62
- * "uniVer": "√",
63
- * "unixVer": "x"
64
- * },
65
- * "jd": {
66
- * "hostVer": "√",
67
- * "uniVer": "√",
68
- * "unixVer": "x"
69
- * }
70
- * }
71
- * }
72
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/BackgroundAudioManager.html
73
- */
74
- getBackgroundAudioManager(): BackgroundAudioManager;
75
- }
76
-
77
- export type GetBackgroundAudioManager = () => BackgroundAudioManager;
78
-
79
- export interface BackgroundAudioManager {
80
- /**
81
- * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
82
- * @uniPlatform
83
- {
84
- "app": {
85
- "android": {
86
- "osVer": "5.0",
87
- "uniVer": "√",
88
- "uniUtsPlugin": "x",
89
- "unixVer": "4.41",
90
- "unixUtsPlugin": "4.41"
91
- },
92
- "ios": {
93
- "osVer": "12.0",
94
- "uniVer": "√",
95
- "uniUtsPlugin": "x",
96
- "unixVer": "4.41",
97
- "unixUtsPlugin": "4.41"
98
- }
99
- }
100
- }
101
- */
102
- duration: number;
103
- /**
104
- * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
105
- * @uniPlatform
106
- {
107
- "app": {
108
- "android": {
109
- "osVer": "5.0",
110
- "uniVer": "√",
111
- "uniUtsPlugin": "x",
112
- "unixVer": "4.41",
113
- "unixUtsPlugin": "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
- "unixUtsPlugin": "4.41"
137
- },
138
- "ios": {
139
- "osVer": "12.0",
140
- "uniVer": "√",
141
- "uniUtsPlugin": "x",
142
- "unixVer": "4.41",
143
- "unixUtsPlugin": "4.41"
144
- }
145
- }
146
- }
147
- * @type boolean
148
- */
149
- paused: boolean;
150
- /**
151
- * 音频的数据源,默认为空字符串,当设置了新的 src 时,会自动开始播放 ,目前支持的格式有 m4a, aac, mp3, wav
152
- * @uniPlatform
153
- {
154
- "app": {
155
- "android": {
156
- "osVer": "5.0",
157
- "uniVer": "√",
158
- "uniUtsPlugin": "x",
159
- "unixVer": "4.41",
160
- "unixUtsPlugin": "4.41"
161
- },
162
- "ios": {
163
- "osVer": "12.0",
164
- "uniVer": "√",
165
- "uniUtsPlugin": "x",
166
- "unixVer": "4.41",
167
- "unixUtsPlugin": "4.41"
168
- }
169
- }
170
- }
171
- */
172
- src: string;
173
- /**
174
- * 音频开始播放的位置(单位:s)
175
- * @uniPlatform
176
- {
177
- "app": {
178
- "android": {
179
- "osVer": "5.0",
180
- "uniVer": "√",
181
- "uniUtsPlugin": "x",
182
- "unixVer": "4.41",
183
- "unixUtsPlugin": "4.41"
184
- },
185
- "ios": {
186
- "osVer": "12.0",
187
- "uniVer": "√",
188
- "uniUtsPlugin": "x",
189
- "unixVer": "4.41",
190
- "unixUtsPlugin": "4.41"
191
- }
192
- }
193
- }
194
- */
195
- startTime: number;
196
- /**
197
- * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
198
- * @uniPlatform
199
- {
200
- "app": {
201
- "android": {
202
- "osVer": "5.0",
203
- "uniVer": "√",
204
- "uniUtsPlugin": "x",
205
- "unixVer": "4.41",
206
- "unixUtsPlugin": "4.41"
207
- },
208
- "ios": {
209
- "osVer": "12.0",
210
- "uniVer": "√",
211
- "uniUtsPlugin": "x",
212
- "unixVer": "4.41",
213
- "unixUtsPlugin": "4.41"
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
- "unixUtsPlugin": "4.41"
230
- },
231
- "ios": {
232
- "osVer": "12.0",
233
- "uniVer": "√",
234
- "uniUtsPlugin": "x",
235
- "unixVer": "4.41",
236
- "unixUtsPlugin": "4.41"
237
- }
238
- }
239
- }
240
- */
241
- title: string;
242
- /**
243
- * 专辑名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
244
- * @uniPlatform
245
- {
246
- "app": {
247
- "android": {
248
- "osVer": "5.0",
249
- "uniVer": "√",
250
- "uniUtsPlugin": "x",
251
- "unixVer": "4.41",
252
- "unixUtsPlugin": "4.41"
253
- },
254
- "ios": {
255
- "osVer": "12.0",
256
- "uniVer": "√",
257
- "uniUtsPlugin": "x",
258
- "unixVer": "4.41",
259
- "unixUtsPlugin": "4.41"
260
- }
261
- }
262
- }
263
- */
264
- epname: string;
265
- /**
266
- * 歌手名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
267
- * @uniPlatform
268
- {
269
- "app": {
270
- "android": {
271
- "osVer": "5.0",
272
- "uniVer": "√",
273
- "uniUtsPlugin": "x",
274
- "unixVer": "4.41",
275
- "unixUtsPlugin": "4.41"
276
- },
277
- "ios": {
278
- "osVer": "12.0",
279
- "uniVer": "√",
280
- "uniUtsPlugin": "x",
281
- "unixVer": "4.41",
282
- "unixUtsPlugin": "4.41"
283
- }
284
- }
285
- }
286
- */
287
- singer: string;
288
- /**
289
- * 封面图url,用于做原生音频播放器背景图。原生音频播放器中的分享功能,分享出去的卡片配图及背景也将使用该图。
290
- * @uniPlatform
291
- {
292
- "app": {
293
- "android": {
294
- "osVer": "5.0",
295
- "uniVer": "√",
296
- "uniUtsPlugin": "x",
297
- "unixVer": "4.41",
298
- "unixUtsPlugin": "4.41"
299
- },
300
- "ios": {
301
- "osVer": "12.0",
302
- "uniVer": "√",
303
- "uniUtsPlugin": "x",
304
- "unixVer": "4.41",
305
- "unixUtsPlugin": "4.41"
306
- }
307
- }
308
- }
309
- */
310
- coverImgUrl: string;
311
- /**
312
- * 页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
313
- * @uniPlatform
314
- {
315
- "app": {
316
- "android": {
317
- "osVer": "5.0",
318
- "uniVer": "√",
319
- "uniUtsPlugin": "x",
320
- "unixVer": "x",
321
- "unixUtsPlugin": "x"
322
- },
323
- "ios": {
324
- "osVer": "12.0",
325
- "uniVer": "√",
326
- "uniUtsPlugin": "x",
327
- "unixVer": "x",
328
- "unixUtsPlugin": "x"
329
- }
330
- }
331
- }
332
- */
333
- webUrl: string;
334
- /**
335
- * 音频协议。默认值为 'http',设置 'hls' 可以支持播放 HLS 协议的直播音频
336
- * @uniPlatform
337
- {
338
- "app": {
339
- "android": {
340
- "osVer": "5.0",
341
- "uniVer": "√",
342
- "uniUtsPlugin": "x",
343
- "unixVer": "x",
344
- "unixUtsPlugin": "x"
345
- },
346
- "ios": {
347
- "osVer": "12.0",
348
- "uniVer": "√",
349
- "uniUtsPlugin": "x",
350
- "unixVer": "x",
351
- "unixUtsPlugin": "x"
352
- }
353
- }
354
- }
355
- */
356
- protocol: string;
357
- /**
358
- * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
359
- * @uniPlatform
360
- {
361
- "app": {
362
- "android": {
363
- "osVer": "5.0",
364
- "uniVer": "√",
365
- "uniUtsPlugin": "x",
366
- "unixVer": "4.41",
367
- "unixUtsPlugin": "4.41"
368
- },
369
- "ios": {
370
- "osVer": "12.0",
371
- "uniVer": "√",
372
- "uniUtsPlugin": "x",
373
- "unixVer": "4.41",
374
- "unixUtsPlugin": "4.41"
375
- }
376
- }
377
- }
378
- */
379
- playbackRate?: number;
380
- /**
381
- * 播放
382
- * @uniPlatform
383
- {
384
- "app": {
385
- "android": {
386
- "osVer": "5.0",
387
- "uniVer": "√",
388
- "uniUtsPlugin": "x",
389
- "unixVer": "4.41",
390
- "unixUtsPlugin": "4.41"
391
- },
392
- "ios": {
393
- "osVer": "12.0",
394
- "uniVer": "√",
395
- "uniUtsPlugin": "x",
396
- "unixVer": "4.41",
397
- "unixUtsPlugin": "4.41"
398
- }
399
- }
400
- }
401
- */
402
- play(): void;
403
- /**
404
- * 暂停
405
- * @uniPlatform
406
- {
407
- "app": {
408
- "android": {
409
- "osVer": "5.0",
410
- "uniVer": "√",
411
- "uniUtsPlugin": "x",
412
- "unixVer": "4.41",
413
- "unixUtsPlugin": "4.41"
414
- },
415
- "ios": {
416
- "osVer": "12.0",
417
- "uniVer": "√",
418
- "uniUtsPlugin": "x",
419
- "unixVer": "4.41",
420
- "unixUtsPlugin": "4.41"
421
- }
422
- }
423
- }
424
- */
425
- pause(): void;
426
- /**
427
- * 跳转到指定位置,单位 s
428
- * @uniPlatform
429
- {
430
- "app": {
431
- "android": {
432
- "osVer": "5.0",
433
- "uniVer": "√",
434
- "uniUtsPlugin": "x",
435
- "unixVer": "4.41",
436
- "unixUtsPlugin": "4.41"
437
- },
438
- "ios": {
439
- "osVer": "12.0",
440
- "uniVer": "√",
441
- "uniUtsPlugin": "x",
442
- "unixVer": "4.41",
443
- "unixUtsPlugin": "4.41"
444
- }
445
- }
446
- }
447
- */
448
- seek(position: number): void;
449
- /**
450
- * 停止
451
- * @uniPlatform
452
- {
453
- "app": {
454
- "android": {
455
- "osVer": "5.0",
456
- "uniVer": "√",
457
- "uniUtsPlugin": "x",
458
- "unixVer": "4.41",
459
- "unixUtsPlugin": "4.41"
460
- },
461
- "ios": {
462
- "osVer": "12.0",
463
- "uniVer": "√",
464
- "uniUtsPlugin": "x",
465
- "unixVer": "4.41",
466
- "unixUtsPlugin": "4.41"
467
- }
468
- }
469
- }
470
- */
471
- stop(): void;
472
- /**
473
- * 背景音频进入可以播放状态,但不保证后面可以流畅播放
474
- * @uniPlatform
475
- {
476
- "app": {
477
- "android": {
478
- "osVer": "5.0",
479
- "uniVer": "√",
480
- "uniUtsPlugin": "x",
481
- "unixVer": "4.41",
482
- "unixUtsPlugin": "4.41"
483
- },
484
- "ios": {
485
- "osVer": "12.0",
486
- "uniVer": "√",
487
- "uniUtsPlugin": "x",
488
- "unixVer": "4.41",
489
- "unixUtsPlugin": "4.41"
490
- }
491
- }
492
- }
493
- */
494
- onCanplay(callback: (result: any) => void): void;
495
- /**
496
- * 背景音频播放事件
497
- * @uniPlatform
498
- {
499
- "app": {
500
- "android": {
501
- "osVer": "5.0",
502
- "uniVer": "√",
503
- "uniUtsPlugin": "x",
504
- "unixVer": "4.41",
505
- "unixUtsPlugin": "4.41"
506
- },
507
- "ios": {
508
- "osVer": "12.0",
509
- "uniVer": "√",
510
- "uniUtsPlugin": "x",
511
- "unixVer": "4.41",
512
- "unixUtsPlugin": "4.41"
513
- }
514
- }
515
- }
516
- */
517
- onPlay(callback: (result: any) => void): void;
518
- /**
519
- * 背景音频暂停事件
520
- * @uniPlatform
521
- {
522
- "app": {
523
- "android": {
524
- "osVer": "5.0",
525
- "uniVer": "√",
526
- "uniUtsPlugin": "x",
527
- "unixVer": "4.41",
528
- "unixUtsPlugin": "4.41"
529
- },
530
- "ios": {
531
- "osVer": "12.0",
532
- "uniVer": "√",
533
- "uniUtsPlugin": "x",
534
- "unixVer": "4.41",
535
- "unixUtsPlugin": "4.41"
536
- }
537
- }
538
- }
539
- */
540
- onPause(callback: (result: any) => void): void;
541
- /**
542
- * 背景音频停止事件
543
- * @uniPlatform
544
- {
545
- "app": {
546
- "android": {
547
- "osVer": "5.0",
548
- "uniVer": "√",
549
- "uniUtsPlugin": "x",
550
- "unixVer": "4.41",
551
- "unixUtsPlugin": "4.41"
552
- },
553
- "ios": {
554
- "osVer": "12.0",
555
- "uniVer": "√",
556
- "uniUtsPlugin": "x",
557
- "unixVer": "4.41",
558
- "unixUtsPlugin": "4.41"
559
- }
560
- }
561
- }
562
- */
563
- onStop(callback: (result: any) => void): void;
564
- /**
565
- * 背景音频自然播放结束事件
566
- * @uniPlatform
567
- {
568
- "app": {
569
- "android": {
570
- "osVer": "5.0",
571
- "uniVer": "√",
572
- "uniUtsPlugin": "x",
573
- "unixVer": "4.41",
574
- "unixUtsPlugin": "4.41"
575
- },
576
- "ios": {
577
- "osVer": "12.0",
578
- "uniVer": "√",
579
- "uniUtsPlugin": "x",
580
- "unixVer": "4.41",
581
- "unixUtsPlugin": "4.41"
582
- }
583
- }
584
- }
585
- */
586
- onEnded(callback: (result: any) => void): void;
587
- /**
588
- * 音频进行 seek 操作事件
589
- * @uniPlatform
590
- {
591
- "app": {
592
- "android": {
593
- "osVer": "5.0",
594
- "uniVer": "√",
595
- "uniUtsPlugin": "x",
596
- "unixVer": "4.41",
597
- "unixUtsPlugin": "4.41"
598
- },
599
- "ios": {
600
- "osVer": "12.0",
601
- "uniVer": "√",
602
- "uniUtsPlugin": "x",
603
- "unixVer": "4.41",
604
- "unixUtsPlugin": "4.41"
605
- }
606
- },
607
- "web": {
608
- "uniVer": "√",
609
- "unixVer": "4.0"
610
- }
611
- }
612
- */
613
- onSeeking(callback : (result : any) => void) : void;
614
- /**
615
- * 音频完成 seek 操作事件
616
- * @uniPlatform
617
- {
618
- "app": {
619
- "android": {
620
- "osVer": "5.0",
621
- "uniVer": "√",
622
- "uniUtsPlugin": "x",
623
- "unixVer": "4.41",
624
- "unixUtsPlugin": "4.41"
625
- },
626
- "ios": {
627
- "osVer": "12.0",
628
- "uniVer": "√",
629
- "uniUtsPlugin": "x",
630
- "unixVer": "4.41",
631
- "unixUtsPlugin": "4.41"
632
- }
633
- },
634
- "web": {
635
- "uniVer": "√",
636
- "unixVer": "4.0"
637
- }
638
- }
639
- */
640
- onSeeked(callback : (result : any) => void) : void;
641
- /**
642
- * 背景音频播放进度更新事件
643
- * @uniPlatform
644
- {
645
- "app": {
646
- "android": {
647
- "osVer": "5.0",
648
- "uniVer": "√",
649
- "uniUtsPlugin": "x",
650
- "unixVer": "4.41",
651
- "unixUtsPlugin": "4.41"
652
- },
653
- "ios": {
654
- "osVer": "12.0",
655
- "uniVer": "√",
656
- "uniUtsPlugin": "x",
657
- "unixVer": "4.41",
658
- "unixUtsPlugin": "4.41"
659
- }
660
- }
661
- }
662
- */
663
- onTimeUpdate(callback: (result: any) => void): void;
664
- /**
665
- * 用户在系统音乐播放面板点击上一曲事件
666
- * @uniPlatform
667
- {
668
- "app": {
669
- "android": {
670
- "osVer": "5.0",
671
- "uniVer": "√",
672
- "uniUtsPlugin": "x",
673
- "unixVer": "4.41",
674
- "unixUtsPlugin": "4.41"
675
- },
676
- "ios": {
677
- "osVer": "12.0",
678
- "uniVer": "√",
679
- "uniUtsPlugin": "x",
680
- "unixVer": "4.41",
681
- "unixUtsPlugin": "4.41"
682
- }
683
- }
684
- }
685
- */
686
- onPrev(callback: (result: any) => void): void;
687
- /**
688
- * 用户在系统音乐播放面板点击下一曲事件
689
- * @uniPlatform
690
- {
691
- "app": {
692
- "android": {
693
- "osVer": "5.0",
694
- "uniVer": "√",
695
- "uniUtsPlugin": "x",
696
- "unixVer": "4.41",
697
- "unixUtsPlugin": "4.41"
698
- },
699
- "ios": {
700
- "osVer": "12.0",
701
- "uniVer": "√",
702
- "uniUtsPlugin": "x",
703
- "unixVer": "4.41",
704
- "unixUtsPlugin": "4.41"
705
- }
706
- }
707
- }
708
- */
709
- onNext(callback: (result: any) => void): void;
710
- /**
711
- * 背景音频播放错误事件
712
- * @uniPlatform
713
- {
714
- "app": {
715
- "android": {
716
- "osVer": "5.0",
717
- "uniVer": "√",
718
- "uniUtsPlugin": "x",
719
- "unixVer": "4.41",
720
- "unixUtsPlugin": "4.41"
721
- },
722
- "ios": {
723
- "osVer": "12.0",
724
- "uniVer": "√",
725
- "uniUtsPlugin": "x",
726
- "unixVer": "4.41",
727
- "unixUtsPlugin": "4.41"
728
- }
729
- }
730
- }
731
- */
732
- onError(callback : (result : ICreateBackgroundAudioFail) => void) : void;
733
- /**
734
- * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
735
- * @uniPlatform
736
- {
737
- "app": {
738
- "android": {
739
- "osVer": "5.0",
740
- "uniVer": "√",
741
- "uniUtsPlugin": "x",
742
- "unixVer": "4.41",
743
- "unixUtsPlugin": "4.41"
744
- },
745
- "ios": {
746
- "osVer": "12.0",
747
- "uniVer": "√",
748
- "uniUtsPlugin": "x",
749
- "unixVer": "4.41",
750
- "unixUtsPlugin": "4.41"
751
- }
752
- }
753
- }
754
- */
755
- onWaiting(callback: (result: any) => void): void;
756
- /**
757
- * 需要基础库: `3.4.8`
758
- *
759
- * 音频类型。可设置 "audio" 和 "music" 两种值,默认为 "audio"。不同音频类型对应的播放器样式不一样(实验特性,目前仅iOS和Android端支持)
760
- *
761
- * @uniPlatform {
762
- * "mp": {
763
- * "weixin": {
764
- * "hostVer": "3.4.8",
765
- * "uniVer": "√",
766
- * "unixVer": "4.41"
767
- * },
768
- * "alipay": {
769
- * "hostVer": "-",
770
- * "uniVer": "-",
771
- * "unixVer": "-"
772
- * },
773
- * "baidu": {
774
- * "hostVer": "-",
775
- * "uniVer": "-",
776
- * "unixVer": "-"
777
- * },
778
- * "toutiao": {
779
- * "hostVer": "-",
780
- * "uniVer": "-",
781
- * "unixVer": "-"
782
- * },
783
- * "lark": {
784
- * "hostVer": "-",
785
- * "uniVer": "-",
786
- * "unixVer": "-"
787
- * },
788
- * "qq": {
789
- * "hostVer": "-",
790
- * "uniVer": "-",
791
- * "unixVer": "-"
792
- * },
793
- * "kuaishou": {
794
- * "hostVer": "-",
795
- * "uniVer": "-",
796
- * "unixVer": "-"
797
- * },
798
- * "jd": {
799
- * "hostVer": "-",
800
- * "uniVer": "-",
801
- * "unixVer": "-"
802
- * }
803
- * }
804
- * }
805
- */
806
- audioType?: string | null;
807
- /**
808
- * 需要基础库: `3.4.8`
809
- *
810
- * 关联页面路径。设置后,当点击播放器上的小程序跳转链接时,将跳转到这个关联页面路径(实验特性,目前仅Android端支持)
811
- *
812
- * @uniPlatform {
813
- * "mp": {
814
- * "weixin": {
815
- * "hostVer": "3.4.8",
816
- * "uniVer": "√",
817
- * "unixVer": "4.41"
818
- * },
819
- * "alipay": {
820
- * "hostVer": "-",
821
- * "uniVer": "-",
822
- * "unixVer": "-"
823
- * },
824
- * "baidu": {
825
- * "hostVer": "-",
826
- * "uniVer": "-",
827
- * "unixVer": "-"
828
- * },
829
- * "toutiao": {
830
- * "hostVer": "-",
831
- * "uniVer": "-",
832
- * "unixVer": "-"
833
- * },
834
- * "lark": {
835
- * "hostVer": "-",
836
- * "uniVer": "-",
837
- * "unixVer": "-"
838
- * },
839
- * "qq": {
840
- * "hostVer": "-",
841
- * "uniVer": "-",
842
- * "unixVer": "-"
843
- * },
844
- * "kuaishou": {
845
- * "hostVer": "-",
846
- * "uniVer": "-",
847
- * "unixVer": "-"
848
- * },
849
- * "jd": {
850
- * "hostVer": "-",
851
- * "uniVer": "-",
852
- * "unixVer": "-"
853
- * }
854
- * }
855
- * }
856
- */
857
- referrerPath?: string | null;
858
- /**
859
- * 需要基础库: `2.13.0`
860
- *
861
- * `origin`: 发送完整的referrer; `no-referrer`: 不发送。格式固定为 `https://servicewechat.com/{appid}/{version}/page-frame.html`,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
862
- *
863
- * @uniPlatform {
864
- * "mp": {
865
- * "weixin": {
866
- * "hostVer": "2.13.0",
867
- * "uniVer": "√",
868
- * "unixVer": "4.41"
869
- * },
870
- * "alipay": {
871
- * "hostVer": "-",
872
- * "uniVer": "-",
873
- * "unixVer": "-"
874
- * },
875
- * "baidu": {
876
- * "hostVer": "-",
877
- * "uniVer": "-",
878
- * "unixVer": "-"
879
- * },
880
- * "toutiao": {
881
- * "hostVer": "-",
882
- * "uniVer": "-",
883
- * "unixVer": "-"
884
- * },
885
- * "lark": {
886
- * "hostVer": "-",
887
- * "uniVer": "-",
888
- * "unixVer": "-"
889
- * },
890
- * "qq": {
891
- * "hostVer": "-",
892
- * "uniVer": "-",
893
- * "unixVer": "-"
894
- * },
895
- * "kuaishou": {
896
- * "hostVer": "-",
897
- * "uniVer": "-",
898
- * "unixVer": "-"
899
- * },
900
- * "jd": {
901
- * "hostVer": "-",
902
- * "uniVer": "-",
903
- * "unixVer": "-"
904
- * }
905
- * }
906
- * }
907
- */
908
- referrerPolicy?: string | null;
909
- }
910
- /**
911
- * 错误码
912
- */
913
- export type CreateBackgroundAudioErrorCode =
914
- /**
915
- * 系统错误
916
- * @uniPlatform {
917
- "app": {
918
- "android": {
919
- "osVer": "5.0",
920
- "uniVer": "√",
921
- "uniUtsPlugin": "x",
922
- "unixVer": "4.41",
923
- "unixUtsPlugin": "4.41"
924
- },
925
- "ios": {
926
- "osVer": "12.0",
927
- "uniVer": "√",
928
- "uniUtsPlugin": "x",
929
- "unixVer": "4.41",
930
- "unixUtsPlugin": "4.41"
931
- }
932
- },
933
- }
934
- */
935
- 1107601 |
936
- /**
937
- * 网络错误
938
- * @uniPlatform {
939
- "app": {
940
- "android": {
941
- "osVer": "5.0",
942
- "uniVer": "√",
943
- "uniUtsPlugin": "x",
944
- "unixVer": "4.41",
945
- "unixUtsPlugin": "4.41"
946
- },
947
- "ios": {
948
- "osVer": "12.0",
949
- "uniVer": "√",
950
- "uniUtsPlugin": "x",
951
- "unixVer": "4.41",
952
- "unixUtsPlugin": "4.41"
953
- }
954
- },
955
- }
956
- */
957
- 1107602 |
958
- /**
959
- * 文件错误
960
- * @uniPlatform {
961
- "app": {
962
- "android": {
963
- "osVer": "5.0",
964
- "uniVer": "√",
965
- "uniUtsPlugin": "x",
966
- "unixVer": "4.41",
967
- "unixUtsPlugin": "4.41"
968
- },
969
- "ios": {
970
- "osVer": "12.0",
971
- "uniVer": "√",
972
- "uniUtsPlugin": "x",
973
- "unixVer": "4.41",
974
- "unixUtsPlugin": "4.41"
975
- }
976
- },
977
- }
978
- */
979
- 1107603 |
980
- /**
981
- * 格式错误
982
- * @uniPlatform {
983
- "app": {
984
- "android": {
985
- "osVer": "5.0",
986
- "uniVer": "√",
987
- "uniUtsPlugin": "x",
988
- "unixVer": "4.41",
989
- "unixUtsPlugin": "4.41"
990
- },
991
- "ios": {
992
- "osVer": "12.0",
993
- "uniVer": "√",
994
- "uniUtsPlugin": "x",
995
- "unixVer": "4.41",
996
- "unixUtsPlugin": "4.41"
997
- }
998
- },
999
- }
1000
- */
1001
- 1107604 |
1002
- /**
1003
- * 未知错误
1004
- * @uniPlatform {
1005
- "app": {
1006
- "android": {
1007
- "osVer": "5.0",
1008
- "uniVer": "√",
1009
- "uniUtsPlugin": "x",
1010
- "unixVer": "4.41",
1011
- "unixUtsPlugin": "4.41"
1012
- },
1013
- "ios": {
1014
- "osVer": "12.0",
1015
- "uniVer": "√",
1016
- "uniUtsPlugin": "x",
1017
- "unixVer": "4.41",
1018
- "unixUtsPlugin": "4.41"
1019
- }
1020
- },
1021
- }
1022
- */
1023
- 1107605 |
1024
- /**
1025
- * 播放路径不能为空
1026
- * @uniPlatform {
1027
- "app": {
1028
- "android": {
1029
- "osVer": "5.0",
1030
- "uniVer": "√",
1031
- "uniUtsPlugin": "x",
1032
- "unixVer": "4.41",
1033
- "unixUtsPlugin": "4.41"
1034
- },
1035
- "ios": {
1036
- "osVer": "12.0",
1037
- "uniVer": "√",
1038
- "uniUtsPlugin": "x",
1039
- "unixVer": "4.41",
1040
- "unixUtsPlugin": "4.41"
1041
- }
1042
- },
1043
- }
1044
- */
1045
- 1107609;
1046
-
1047
- export interface ICreateBackgroundAudioFail extends IUniError {
1048
- errCode : CreateBackgroundAudioErrorCode
1049
- };
1
+ export interface Uni {
2
+ /**
3
+ * 获取全局唯一的背景音频管理器 backgroundAudioManager
4
+ *
5
+ * @tutorial https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
6
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
7
+ * @uniPlatform {
8
+ * "app": {
9
+ * "android": {
10
+ * "osVer": "5.0",
11
+ * "uniVer": "√",
12
+ * "unixVer": "4.41"
13
+ * },
14
+ * "ios": {
15
+ * "osVer": "12.0",
16
+ * "uniVer": "√",
17
+ * "unixVer": "4.41"
18
+ * },
19
+ * "harmony": {
20
+ * "osVer": "3.0",
21
+ * "uniVer": "4.31",
22
+ * "unixVer": "4.61"
23
+ * }
24
+ * },
25
+ * "web": {
26
+ * "uniVer": "√",
27
+ * "unixVer": "x"
28
+ * },
29
+ * "mp": {
30
+ * "weixin": {
31
+ * "hostVer": "1.2.0",
32
+ * "uniVer": "√",
33
+ * "unixVer": "4.41"
34
+ * },
35
+ * "alipay": {
36
+ * "hostVer": "1.11.0",
37
+ * "uniVer": "√",
38
+ * "unixVer": "x"
39
+ * },
40
+ * "baidu": {
41
+ * "hostVer": "√",
42
+ * "uniVer": "√",
43
+ * "unixVer": "x"
44
+ * },
45
+ * "toutiao": {
46
+ * "hostVer": "√",
47
+ * "uniVer": "√",
48
+ * "unixVer": "x"
49
+ * },
50
+ * "lark": {
51
+ * "hostVer": "5.20.0",
52
+ * "uniVer": "√",
53
+ * "unixVer": "x"
54
+ * },
55
+ * "qq": {
56
+ * "hostVer": "√",
57
+ * "uniVer": "√",
58
+ * "unixVer": "x"
59
+ * },
60
+ * "kuaishou": {
61
+ * "hostVer": "√",
62
+ * "uniVer": "√",
63
+ * "unixVer": "x"
64
+ * },
65
+ * "jd": {
66
+ * "hostVer": "√",
67
+ * "uniVer": "√",
68
+ * "unixVer": "x"
69
+ * }
70
+ * }
71
+ * }
72
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/BackgroundAudioManager.html
73
+ */
74
+ getBackgroundAudioManager(): BackgroundAudioManager;
75
+ }
76
+
77
+ export type GetBackgroundAudioManager = () => BackgroundAudioManager;
78
+
79
+ export interface BackgroundAudioManager {
80
+ /**
81
+ * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
82
+ * @uniPlatform
83
+ {
84
+ "app": {
85
+ "android": {
86
+ "osVer": "5.0",
87
+ "uniVer": "√",
88
+ "uniUtsPlugin": "x",
89
+ "unixVer": "4.41",
90
+ "unixUtsPlugin": "4.41"
91
+ },
92
+ "ios": {
93
+ "osVer": "12.0",
94
+ "uniVer": "√",
95
+ "uniUtsPlugin": "x",
96
+ "unixVer": "4.41",
97
+ "unixUtsPlugin": "4.41"
98
+ }
99
+ }
100
+ }
101
+ */
102
+ duration: number;
103
+ /**
104
+ * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
105
+ * @uniPlatform
106
+ {
107
+ "app": {
108
+ "android": {
109
+ "osVer": "5.0",
110
+ "uniVer": "√",
111
+ "uniUtsPlugin": "x",
112
+ "unixVer": "4.41",
113
+ "unixUtsPlugin": "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
+ "unixUtsPlugin": "4.41"
137
+ },
138
+ "ios": {
139
+ "osVer": "12.0",
140
+ "uniVer": "√",
141
+ "uniUtsPlugin": "x",
142
+ "unixVer": "4.41",
143
+ "unixUtsPlugin": "4.41"
144
+ }
145
+ }
146
+ }
147
+ * @type boolean
148
+ */
149
+ paused: boolean;
150
+ /**
151
+ * 音频的数据源,默认为空字符串,当设置了新的 src 时,会自动开始播放 ,目前支持的格式有 m4a, aac, mp3, wav
152
+ * @uniPlatform
153
+ {
154
+ "app": {
155
+ "android": {
156
+ "osVer": "5.0",
157
+ "uniVer": "√",
158
+ "uniUtsPlugin": "x",
159
+ "unixVer": "4.41",
160
+ "unixUtsPlugin": "4.41"
161
+ },
162
+ "ios": {
163
+ "osVer": "12.0",
164
+ "uniVer": "√",
165
+ "uniUtsPlugin": "x",
166
+ "unixVer": "4.41",
167
+ "unixUtsPlugin": "4.41"
168
+ }
169
+ }
170
+ }
171
+ */
172
+ src: string;
173
+ /**
174
+ * 音频开始播放的位置(单位:s)
175
+ * @uniPlatform
176
+ {
177
+ "app": {
178
+ "android": {
179
+ "osVer": "5.0",
180
+ "uniVer": "√",
181
+ "uniUtsPlugin": "x",
182
+ "unixVer": "4.41",
183
+ "unixUtsPlugin": "4.41"
184
+ },
185
+ "ios": {
186
+ "osVer": "12.0",
187
+ "uniVer": "√",
188
+ "uniUtsPlugin": "x",
189
+ "unixVer": "4.41",
190
+ "unixUtsPlugin": "4.41"
191
+ }
192
+ }
193
+ }
194
+ */
195
+ startTime: number;
196
+ /**
197
+ * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
198
+ * @uniPlatform
199
+ {
200
+ "app": {
201
+ "android": {
202
+ "osVer": "5.0",
203
+ "uniVer": "√",
204
+ "uniUtsPlugin": "x",
205
+ "unixVer": "4.41",
206
+ "unixUtsPlugin": "4.41"
207
+ },
208
+ "ios": {
209
+ "osVer": "12.0",
210
+ "uniVer": "√",
211
+ "uniUtsPlugin": "x",
212
+ "unixVer": "4.41",
213
+ "unixUtsPlugin": "4.41"
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
+ "unixUtsPlugin": "4.41"
230
+ },
231
+ "ios": {
232
+ "osVer": "12.0",
233
+ "uniVer": "√",
234
+ "uniUtsPlugin": "x",
235
+ "unixVer": "4.41",
236
+ "unixUtsPlugin": "4.41"
237
+ }
238
+ }
239
+ }
240
+ */
241
+ title: string;
242
+ /**
243
+ * 专辑名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
244
+ * @uniPlatform
245
+ {
246
+ "app": {
247
+ "android": {
248
+ "osVer": "5.0",
249
+ "uniVer": "√",
250
+ "uniUtsPlugin": "x",
251
+ "unixVer": "4.41",
252
+ "unixUtsPlugin": "4.41"
253
+ },
254
+ "ios": {
255
+ "osVer": "12.0",
256
+ "uniVer": "√",
257
+ "uniUtsPlugin": "x",
258
+ "unixVer": "4.41",
259
+ "unixUtsPlugin": "4.41"
260
+ }
261
+ }
262
+ }
263
+ */
264
+ epname: string;
265
+ /**
266
+ * 歌手名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
267
+ * @uniPlatform
268
+ {
269
+ "app": {
270
+ "android": {
271
+ "osVer": "5.0",
272
+ "uniVer": "√",
273
+ "uniUtsPlugin": "x",
274
+ "unixVer": "4.41",
275
+ "unixUtsPlugin": "4.41"
276
+ },
277
+ "ios": {
278
+ "osVer": "12.0",
279
+ "uniVer": "√",
280
+ "uniUtsPlugin": "x",
281
+ "unixVer": "4.41",
282
+ "unixUtsPlugin": "4.41"
283
+ }
284
+ }
285
+ }
286
+ */
287
+ singer: string;
288
+ /**
289
+ * 封面图url,用于做原生音频播放器背景图。原生音频播放器中的分享功能,分享出去的卡片配图及背景也将使用该图。
290
+ * @uniPlatform
291
+ {
292
+ "app": {
293
+ "android": {
294
+ "osVer": "5.0",
295
+ "uniVer": "√",
296
+ "uniUtsPlugin": "x",
297
+ "unixVer": "4.41",
298
+ "unixUtsPlugin": "4.41"
299
+ },
300
+ "ios": {
301
+ "osVer": "12.0",
302
+ "uniVer": "√",
303
+ "uniUtsPlugin": "x",
304
+ "unixVer": "4.41",
305
+ "unixUtsPlugin": "4.41"
306
+ }
307
+ }
308
+ }
309
+ */
310
+ coverImgUrl: string;
311
+ /**
312
+ * 页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
313
+ * @uniPlatform
314
+ {
315
+ "app": {
316
+ "android": {
317
+ "osVer": "5.0",
318
+ "uniVer": "√",
319
+ "uniUtsPlugin": "x",
320
+ "unixVer": "x",
321
+ "unixUtsPlugin": "x"
322
+ },
323
+ "ios": {
324
+ "osVer": "12.0",
325
+ "uniVer": "√",
326
+ "uniUtsPlugin": "x",
327
+ "unixVer": "x",
328
+ "unixUtsPlugin": "x"
329
+ }
330
+ }
331
+ }
332
+ */
333
+ webUrl: string;
334
+ /**
335
+ * 音频协议。默认值为 'http',设置 'hls' 可以支持播放 HLS 协议的直播音频
336
+ * @uniPlatform
337
+ {
338
+ "app": {
339
+ "android": {
340
+ "osVer": "5.0",
341
+ "uniVer": "√",
342
+ "uniUtsPlugin": "x",
343
+ "unixVer": "x",
344
+ "unixUtsPlugin": "x"
345
+ },
346
+ "ios": {
347
+ "osVer": "12.0",
348
+ "uniVer": "√",
349
+ "uniUtsPlugin": "x",
350
+ "unixVer": "x",
351
+ "unixUtsPlugin": "x"
352
+ }
353
+ }
354
+ }
355
+ */
356
+ protocol: string;
357
+ /**
358
+ * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
359
+ * @uniPlatform
360
+ {
361
+ "app": {
362
+ "android": {
363
+ "osVer": "5.0",
364
+ "uniVer": "√",
365
+ "uniUtsPlugin": "x",
366
+ "unixVer": "4.41",
367
+ "unixUtsPlugin": "4.41"
368
+ },
369
+ "ios": {
370
+ "osVer": "12.0",
371
+ "uniVer": "√",
372
+ "uniUtsPlugin": "x",
373
+ "unixVer": "4.41",
374
+ "unixUtsPlugin": "4.41"
375
+ }
376
+ }
377
+ }
378
+ */
379
+ playbackRate?: number;
380
+ /**
381
+ * 播放
382
+ * @uniPlatform
383
+ {
384
+ "app": {
385
+ "android": {
386
+ "osVer": "5.0",
387
+ "uniVer": "√",
388
+ "uniUtsPlugin": "x",
389
+ "unixVer": "4.41",
390
+ "unixUtsPlugin": "4.41"
391
+ },
392
+ "ios": {
393
+ "osVer": "12.0",
394
+ "uniVer": "√",
395
+ "uniUtsPlugin": "x",
396
+ "unixVer": "4.41",
397
+ "unixUtsPlugin": "4.41"
398
+ }
399
+ }
400
+ }
401
+ */
402
+ play(): void;
403
+ /**
404
+ * 暂停
405
+ * @uniPlatform
406
+ {
407
+ "app": {
408
+ "android": {
409
+ "osVer": "5.0",
410
+ "uniVer": "√",
411
+ "uniUtsPlugin": "x",
412
+ "unixVer": "4.41",
413
+ "unixUtsPlugin": "4.41"
414
+ },
415
+ "ios": {
416
+ "osVer": "12.0",
417
+ "uniVer": "√",
418
+ "uniUtsPlugin": "x",
419
+ "unixVer": "4.41",
420
+ "unixUtsPlugin": "4.41"
421
+ }
422
+ }
423
+ }
424
+ */
425
+ pause(): void;
426
+ /**
427
+ * 跳转到指定位置,单位 s
428
+ * @uniPlatform
429
+ {
430
+ "app": {
431
+ "android": {
432
+ "osVer": "5.0",
433
+ "uniVer": "√",
434
+ "uniUtsPlugin": "x",
435
+ "unixVer": "4.41",
436
+ "unixUtsPlugin": "4.41"
437
+ },
438
+ "ios": {
439
+ "osVer": "12.0",
440
+ "uniVer": "√",
441
+ "uniUtsPlugin": "x",
442
+ "unixVer": "4.41",
443
+ "unixUtsPlugin": "4.41"
444
+ }
445
+ }
446
+ }
447
+ */
448
+ seek(position: number): void;
449
+ /**
450
+ * 停止
451
+ * @uniPlatform
452
+ {
453
+ "app": {
454
+ "android": {
455
+ "osVer": "5.0",
456
+ "uniVer": "√",
457
+ "uniUtsPlugin": "x",
458
+ "unixVer": "4.41",
459
+ "unixUtsPlugin": "4.41"
460
+ },
461
+ "ios": {
462
+ "osVer": "12.0",
463
+ "uniVer": "√",
464
+ "uniUtsPlugin": "x",
465
+ "unixVer": "4.41",
466
+ "unixUtsPlugin": "4.41"
467
+ }
468
+ }
469
+ }
470
+ */
471
+ stop(): void;
472
+ /**
473
+ * 背景音频进入可以播放状态,但不保证后面可以流畅播放
474
+ * @uniPlatform
475
+ {
476
+ "app": {
477
+ "android": {
478
+ "osVer": "5.0",
479
+ "uniVer": "√",
480
+ "uniUtsPlugin": "x",
481
+ "unixVer": "4.41",
482
+ "unixUtsPlugin": "4.41"
483
+ },
484
+ "ios": {
485
+ "osVer": "12.0",
486
+ "uniVer": "√",
487
+ "uniUtsPlugin": "x",
488
+ "unixVer": "4.41",
489
+ "unixUtsPlugin": "4.41"
490
+ }
491
+ }
492
+ }
493
+ */
494
+ onCanplay(callback: (result: any) => void): void;
495
+ /**
496
+ * 背景音频播放事件
497
+ * @uniPlatform
498
+ {
499
+ "app": {
500
+ "android": {
501
+ "osVer": "5.0",
502
+ "uniVer": "√",
503
+ "uniUtsPlugin": "x",
504
+ "unixVer": "4.41",
505
+ "unixUtsPlugin": "4.41"
506
+ },
507
+ "ios": {
508
+ "osVer": "12.0",
509
+ "uniVer": "√",
510
+ "uniUtsPlugin": "x",
511
+ "unixVer": "4.41",
512
+ "unixUtsPlugin": "4.41"
513
+ }
514
+ }
515
+ }
516
+ */
517
+ onPlay(callback: (result: any) => void): void;
518
+ /**
519
+ * 背景音频暂停事件
520
+ * @uniPlatform
521
+ {
522
+ "app": {
523
+ "android": {
524
+ "osVer": "5.0",
525
+ "uniVer": "√",
526
+ "uniUtsPlugin": "x",
527
+ "unixVer": "4.41",
528
+ "unixUtsPlugin": "4.41"
529
+ },
530
+ "ios": {
531
+ "osVer": "12.0",
532
+ "uniVer": "√",
533
+ "uniUtsPlugin": "x",
534
+ "unixVer": "4.41",
535
+ "unixUtsPlugin": "4.41"
536
+ }
537
+ }
538
+ }
539
+ */
540
+ onPause(callback: (result: any) => void): void;
541
+ /**
542
+ * 背景音频停止事件
543
+ * @uniPlatform
544
+ {
545
+ "app": {
546
+ "android": {
547
+ "osVer": "5.0",
548
+ "uniVer": "√",
549
+ "uniUtsPlugin": "x",
550
+ "unixVer": "4.41",
551
+ "unixUtsPlugin": "4.41"
552
+ },
553
+ "ios": {
554
+ "osVer": "12.0",
555
+ "uniVer": "√",
556
+ "uniUtsPlugin": "x",
557
+ "unixVer": "4.41",
558
+ "unixUtsPlugin": "4.41"
559
+ }
560
+ }
561
+ }
562
+ */
563
+ onStop(callback: (result: any) => void): void;
564
+ /**
565
+ * 背景音频自然播放结束事件
566
+ * @uniPlatform
567
+ {
568
+ "app": {
569
+ "android": {
570
+ "osVer": "5.0",
571
+ "uniVer": "√",
572
+ "uniUtsPlugin": "x",
573
+ "unixVer": "4.41",
574
+ "unixUtsPlugin": "4.41"
575
+ },
576
+ "ios": {
577
+ "osVer": "12.0",
578
+ "uniVer": "√",
579
+ "uniUtsPlugin": "x",
580
+ "unixVer": "4.41",
581
+ "unixUtsPlugin": "4.41"
582
+ }
583
+ }
584
+ }
585
+ */
586
+ onEnded(callback: (result: any) => void): void;
587
+ /**
588
+ * 音频进行 seek 操作事件
589
+ * @uniPlatform
590
+ {
591
+ "app": {
592
+ "android": {
593
+ "osVer": "5.0",
594
+ "uniVer": "√",
595
+ "uniUtsPlugin": "x",
596
+ "unixVer": "4.41",
597
+ "unixUtsPlugin": "4.41"
598
+ },
599
+ "ios": {
600
+ "osVer": "12.0",
601
+ "uniVer": "√",
602
+ "uniUtsPlugin": "x",
603
+ "unixVer": "4.41",
604
+ "unixUtsPlugin": "4.41"
605
+ }
606
+ },
607
+ "web": {
608
+ "uniVer": "√",
609
+ "unixVer": "4.0"
610
+ }
611
+ }
612
+ */
613
+ onSeeking(callback : (result : any) => void) : void;
614
+ /**
615
+ * 音频完成 seek 操作事件
616
+ * @uniPlatform
617
+ {
618
+ "app": {
619
+ "android": {
620
+ "osVer": "5.0",
621
+ "uniVer": "√",
622
+ "uniUtsPlugin": "x",
623
+ "unixVer": "4.41",
624
+ "unixUtsPlugin": "4.41"
625
+ },
626
+ "ios": {
627
+ "osVer": "12.0",
628
+ "uniVer": "√",
629
+ "uniUtsPlugin": "x",
630
+ "unixVer": "4.41",
631
+ "unixUtsPlugin": "4.41"
632
+ }
633
+ },
634
+ "web": {
635
+ "uniVer": "√",
636
+ "unixVer": "4.0"
637
+ }
638
+ }
639
+ */
640
+ onSeeked(callback : (result : any) => void) : void;
641
+ /**
642
+ * 背景音频播放进度更新事件
643
+ * @uniPlatform
644
+ {
645
+ "app": {
646
+ "android": {
647
+ "osVer": "5.0",
648
+ "uniVer": "√",
649
+ "uniUtsPlugin": "x",
650
+ "unixVer": "4.41",
651
+ "unixUtsPlugin": "4.41"
652
+ },
653
+ "ios": {
654
+ "osVer": "12.0",
655
+ "uniVer": "√",
656
+ "uniUtsPlugin": "x",
657
+ "unixVer": "4.41",
658
+ "unixUtsPlugin": "4.41"
659
+ }
660
+ }
661
+ }
662
+ */
663
+ onTimeUpdate(callback: (result: any) => void): void;
664
+ /**
665
+ * 用户在系统音乐播放面板点击上一曲事件
666
+ * @uniPlatform
667
+ {
668
+ "app": {
669
+ "android": {
670
+ "osVer": "5.0",
671
+ "uniVer": "√",
672
+ "uniUtsPlugin": "x",
673
+ "unixVer": "4.41",
674
+ "unixUtsPlugin": "4.41"
675
+ },
676
+ "ios": {
677
+ "osVer": "12.0",
678
+ "uniVer": "√",
679
+ "uniUtsPlugin": "x",
680
+ "unixVer": "4.41",
681
+ "unixUtsPlugin": "4.41"
682
+ }
683
+ }
684
+ }
685
+ */
686
+ onPrev(callback: (result: any) => void): void;
687
+ /**
688
+ * 用户在系统音乐播放面板点击下一曲事件
689
+ * @uniPlatform
690
+ {
691
+ "app": {
692
+ "android": {
693
+ "osVer": "5.0",
694
+ "uniVer": "√",
695
+ "uniUtsPlugin": "x",
696
+ "unixVer": "4.41",
697
+ "unixUtsPlugin": "4.41"
698
+ },
699
+ "ios": {
700
+ "osVer": "12.0",
701
+ "uniVer": "√",
702
+ "uniUtsPlugin": "x",
703
+ "unixVer": "4.41",
704
+ "unixUtsPlugin": "4.41"
705
+ }
706
+ }
707
+ }
708
+ */
709
+ onNext(callback: (result: any) => void): void;
710
+ /**
711
+ * 背景音频播放错误事件
712
+ * @uniPlatform
713
+ {
714
+ "app": {
715
+ "android": {
716
+ "osVer": "5.0",
717
+ "uniVer": "√",
718
+ "uniUtsPlugin": "x",
719
+ "unixVer": "4.41",
720
+ "unixUtsPlugin": "4.41"
721
+ },
722
+ "ios": {
723
+ "osVer": "12.0",
724
+ "uniVer": "√",
725
+ "uniUtsPlugin": "x",
726
+ "unixVer": "4.41",
727
+ "unixUtsPlugin": "4.41"
728
+ }
729
+ }
730
+ }
731
+ */
732
+ onError(callback : (result : ICreateBackgroundAudioFail) => void) : void;
733
+ /**
734
+ * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
735
+ * @uniPlatform
736
+ {
737
+ "app": {
738
+ "android": {
739
+ "osVer": "5.0",
740
+ "uniVer": "√",
741
+ "uniUtsPlugin": "x",
742
+ "unixVer": "4.41",
743
+ "unixUtsPlugin": "4.41"
744
+ },
745
+ "ios": {
746
+ "osVer": "12.0",
747
+ "uniVer": "√",
748
+ "uniUtsPlugin": "x",
749
+ "unixVer": "4.41",
750
+ "unixUtsPlugin": "4.41"
751
+ }
752
+ }
753
+ }
754
+ */
755
+ onWaiting(callback: (result: any) => void): void;
756
+ /**
757
+ * 需要基础库: `3.4.8`
758
+ *
759
+ * 音频类型。可设置 "audio" 和 "music" 两种值,默认为 "audio"。不同音频类型对应的播放器样式不一样(实验特性,目前仅iOS和Android端支持)
760
+ *
761
+ * @uniPlatform {
762
+ * "mp": {
763
+ * "weixin": {
764
+ * "hostVer": "3.4.8",
765
+ * "uniVer": "√",
766
+ * "unixVer": "4.41"
767
+ * },
768
+ * "alipay": {
769
+ * "hostVer": "-",
770
+ * "uniVer": "-",
771
+ * "unixVer": "-"
772
+ * },
773
+ * "baidu": {
774
+ * "hostVer": "-",
775
+ * "uniVer": "-",
776
+ * "unixVer": "-"
777
+ * },
778
+ * "toutiao": {
779
+ * "hostVer": "-",
780
+ * "uniVer": "-",
781
+ * "unixVer": "-"
782
+ * },
783
+ * "lark": {
784
+ * "hostVer": "-",
785
+ * "uniVer": "-",
786
+ * "unixVer": "-"
787
+ * },
788
+ * "qq": {
789
+ * "hostVer": "-",
790
+ * "uniVer": "-",
791
+ * "unixVer": "-"
792
+ * },
793
+ * "kuaishou": {
794
+ * "hostVer": "-",
795
+ * "uniVer": "-",
796
+ * "unixVer": "-"
797
+ * },
798
+ * "jd": {
799
+ * "hostVer": "-",
800
+ * "uniVer": "-",
801
+ * "unixVer": "-"
802
+ * }
803
+ * }
804
+ * }
805
+ */
806
+ audioType?: string | null;
807
+ /**
808
+ * 需要基础库: `3.4.8`
809
+ *
810
+ * 关联页面路径。设置后,当点击播放器上的小程序跳转链接时,将跳转到这个关联页面路径(实验特性,目前仅Android端支持)
811
+ *
812
+ * @uniPlatform {
813
+ * "mp": {
814
+ * "weixin": {
815
+ * "hostVer": "3.4.8",
816
+ * "uniVer": "√",
817
+ * "unixVer": "4.41"
818
+ * },
819
+ * "alipay": {
820
+ * "hostVer": "-",
821
+ * "uniVer": "-",
822
+ * "unixVer": "-"
823
+ * },
824
+ * "baidu": {
825
+ * "hostVer": "-",
826
+ * "uniVer": "-",
827
+ * "unixVer": "-"
828
+ * },
829
+ * "toutiao": {
830
+ * "hostVer": "-",
831
+ * "uniVer": "-",
832
+ * "unixVer": "-"
833
+ * },
834
+ * "lark": {
835
+ * "hostVer": "-",
836
+ * "uniVer": "-",
837
+ * "unixVer": "-"
838
+ * },
839
+ * "qq": {
840
+ * "hostVer": "-",
841
+ * "uniVer": "-",
842
+ * "unixVer": "-"
843
+ * },
844
+ * "kuaishou": {
845
+ * "hostVer": "-",
846
+ * "uniVer": "-",
847
+ * "unixVer": "-"
848
+ * },
849
+ * "jd": {
850
+ * "hostVer": "-",
851
+ * "uniVer": "-",
852
+ * "unixVer": "-"
853
+ * }
854
+ * }
855
+ * }
856
+ */
857
+ referrerPath?: string | null;
858
+ /**
859
+ * 需要基础库: `2.13.0`
860
+ *
861
+ * `origin`: 发送完整的referrer; `no-referrer`: 不发送。格式固定为 `https://servicewechat.com/{appid}/{version}/page-frame.html`,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
862
+ *
863
+ * @uniPlatform {
864
+ * "mp": {
865
+ * "weixin": {
866
+ * "hostVer": "2.13.0",
867
+ * "uniVer": "√",
868
+ * "unixVer": "4.41"
869
+ * },
870
+ * "alipay": {
871
+ * "hostVer": "-",
872
+ * "uniVer": "-",
873
+ * "unixVer": "-"
874
+ * },
875
+ * "baidu": {
876
+ * "hostVer": "-",
877
+ * "uniVer": "-",
878
+ * "unixVer": "-"
879
+ * },
880
+ * "toutiao": {
881
+ * "hostVer": "-",
882
+ * "uniVer": "-",
883
+ * "unixVer": "-"
884
+ * },
885
+ * "lark": {
886
+ * "hostVer": "-",
887
+ * "uniVer": "-",
888
+ * "unixVer": "-"
889
+ * },
890
+ * "qq": {
891
+ * "hostVer": "-",
892
+ * "uniVer": "-",
893
+ * "unixVer": "-"
894
+ * },
895
+ * "kuaishou": {
896
+ * "hostVer": "-",
897
+ * "uniVer": "-",
898
+ * "unixVer": "-"
899
+ * },
900
+ * "jd": {
901
+ * "hostVer": "-",
902
+ * "uniVer": "-",
903
+ * "unixVer": "-"
904
+ * }
905
+ * }
906
+ * }
907
+ */
908
+ referrerPolicy?: string | null;
909
+ }
910
+ /**
911
+ * 错误码
912
+ */
913
+ export type CreateBackgroundAudioErrorCode =
914
+ /**
915
+ * 系统错误
916
+ * @uniPlatform {
917
+ "app": {
918
+ "android": {
919
+ "osVer": "5.0",
920
+ "uniVer": "√",
921
+ "uniUtsPlugin": "x",
922
+ "unixVer": "4.41",
923
+ "unixUtsPlugin": "4.41"
924
+ },
925
+ "ios": {
926
+ "osVer": "12.0",
927
+ "uniVer": "√",
928
+ "uniUtsPlugin": "x",
929
+ "unixVer": "4.41",
930
+ "unixUtsPlugin": "4.41"
931
+ }
932
+ },
933
+ }
934
+ */
935
+ 1107601 |
936
+ /**
937
+ * 网络错误
938
+ * @uniPlatform {
939
+ "app": {
940
+ "android": {
941
+ "osVer": "5.0",
942
+ "uniVer": "√",
943
+ "uniUtsPlugin": "x",
944
+ "unixVer": "4.41",
945
+ "unixUtsPlugin": "4.41"
946
+ },
947
+ "ios": {
948
+ "osVer": "12.0",
949
+ "uniVer": "√",
950
+ "uniUtsPlugin": "x",
951
+ "unixVer": "4.41",
952
+ "unixUtsPlugin": "4.41"
953
+ }
954
+ },
955
+ }
956
+ */
957
+ 1107602 |
958
+ /**
959
+ * 文件错误
960
+ * @uniPlatform {
961
+ "app": {
962
+ "android": {
963
+ "osVer": "5.0",
964
+ "uniVer": "√",
965
+ "uniUtsPlugin": "x",
966
+ "unixVer": "4.41",
967
+ "unixUtsPlugin": "4.41"
968
+ },
969
+ "ios": {
970
+ "osVer": "12.0",
971
+ "uniVer": "√",
972
+ "uniUtsPlugin": "x",
973
+ "unixVer": "4.41",
974
+ "unixUtsPlugin": "4.41"
975
+ }
976
+ },
977
+ }
978
+ */
979
+ 1107603 |
980
+ /**
981
+ * 格式错误
982
+ * @uniPlatform {
983
+ "app": {
984
+ "android": {
985
+ "osVer": "5.0",
986
+ "uniVer": "√",
987
+ "uniUtsPlugin": "x",
988
+ "unixVer": "4.41",
989
+ "unixUtsPlugin": "4.41"
990
+ },
991
+ "ios": {
992
+ "osVer": "12.0",
993
+ "uniVer": "√",
994
+ "uniUtsPlugin": "x",
995
+ "unixVer": "4.41",
996
+ "unixUtsPlugin": "4.41"
997
+ }
998
+ },
999
+ }
1000
+ */
1001
+ 1107604 |
1002
+ /**
1003
+ * 未知错误
1004
+ * @uniPlatform {
1005
+ "app": {
1006
+ "android": {
1007
+ "osVer": "5.0",
1008
+ "uniVer": "√",
1009
+ "uniUtsPlugin": "x",
1010
+ "unixVer": "4.41",
1011
+ "unixUtsPlugin": "4.41"
1012
+ },
1013
+ "ios": {
1014
+ "osVer": "12.0",
1015
+ "uniVer": "√",
1016
+ "uniUtsPlugin": "x",
1017
+ "unixVer": "4.41",
1018
+ "unixUtsPlugin": "4.41"
1019
+ }
1020
+ },
1021
+ }
1022
+ */
1023
+ 1107605 |
1024
+ /**
1025
+ * 播放路径不能为空
1026
+ * @uniPlatform {
1027
+ "app": {
1028
+ "android": {
1029
+ "osVer": "5.0",
1030
+ "uniVer": "√",
1031
+ "uniUtsPlugin": "x",
1032
+ "unixVer": "4.41",
1033
+ "unixUtsPlugin": "4.41"
1034
+ },
1035
+ "ios": {
1036
+ "osVer": "12.0",
1037
+ "uniVer": "√",
1038
+ "uniUtsPlugin": "x",
1039
+ "unixVer": "4.41",
1040
+ "unixUtsPlugin": "4.41"
1041
+ }
1042
+ },
1043
+ }
1044
+ */
1045
+ 1107609;
1046
+
1047
+ export interface ICreateBackgroundAudioFail extends IUniError {
1048
+ errCode : CreateBackgroundAudioErrorCode
1049
+ };