@dcloudio/uni-app-x 0.7.20 → 0.7.21

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 (332) 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 +27 -27
  6. package/types/app.d.ts +1002 -1002
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/CanvasRenderingContext2D.d.ts +2048 -2048
  11. package/types/native/DOMRect.d.ts +56 -56
  12. package/types/native/DrawableContext.d.ts +162 -162
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +2859 -2859
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniObjectElement.d.ts +124 -124
  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 +240 -240
  22. package/types/native/SnapshotOptions.d.ts +63 -63
  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/UniApp.d.ts +205 -205
  27. package/types/native/UniCallbackWrapper.d.ts +7 -7
  28. package/types/native/UniCanvasElement.d.ts +9 -9
  29. package/types/native/UniCustomEvent.d.ts +24 -24
  30. package/types/native/UniDocument.d.ts +83 -83
  31. package/types/native/UniElement.d.ts +79 -79
  32. package/types/native/UniError.d.ts +70 -70
  33. package/types/native/UniEvent.d.ts +92 -92
  34. package/types/native/UniFormControl.d.ts +8 -8
  35. package/types/native/UniFormControlElement.d.ts +14 -14
  36. package/types/native/UniImageErrorEvent.d.ts +33 -33
  37. package/types/native/UniImageLoadEvent.d.ts +37 -37
  38. package/types/native/UniInputBlurEvent.d.ts +36 -36
  39. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  40. package/types/native/UniInputEvent.d.ts +38 -38
  41. package/types/native/UniInputFocusEvent.d.ts +53 -53
  42. package/types/native/UniNativePage.d.ts +270 -270
  43. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  44. package/types/native/UniPageEvent.d.ts +10 -10
  45. package/types/native/UniPageManager.d.ts +27 -20
  46. package/types/native/UniPageScrollEvent.d.ts +13 -13
  47. package/types/native/UniPointerEvent.d.ts +74 -74
  48. package/types/native/UniProvider.d.ts +15 -15
  49. package/types/native/UniRefresherEvent.d.ts +18 -18
  50. package/types/native/UniResizeEvent.d.ts +34 -34
  51. package/types/native/UniResizeObserver.d.ts +184 -184
  52. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  53. package/types/native/UniScrollEvent.d.ts +42 -42
  54. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  55. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  56. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  57. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  58. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  59. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  60. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  61. package/types/native/UniTabTapEvent.d.ts +18 -18
  62. package/types/native/UniTabsElement.d.ts +59 -59
  63. package/types/native/UniTextElement.d.ts +34 -34
  64. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  65. package/types/native/UniTouchEvent.d.ts +64 -64
  66. package/types/native/UniVideoElement.d.ts +75 -75
  67. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  68. package/types/native/UniWebViewElement.d.ts +10 -10
  69. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  70. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  71. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  72. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  73. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  74. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  75. package/types/native/WebViewStyles.d.ts +20 -20
  76. package/types/native/global.d.ts +598 -598
  77. package/types/native/index.d.ts +71 -71
  78. package/types/native-global/index.d.ts +1 -1
  79. package/types/page.d.ts +1682 -1682
  80. package/types/process.d.ts +5 -5
  81. package/types/uni/base/index.d.ts +3 -3
  82. package/types/uni/env/index.d.ts +103 -103
  83. package/types/uni/global.d.ts +6 -6
  84. package/types/uni/index.d.ts +4 -4
  85. package/types/uni/uts-plugin-api/global.d.ts +58 -58
  86. package/types/uni/uts-plugin-api/index.d.ts +58 -58
  87. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
  88. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
  90. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +12 -12
  91. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +5 -5
  92. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +50 -50
  93. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  94. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  95. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  96. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -60
  97. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -29
  98. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +161 -161
  99. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  100. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  101. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  102. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -20
  103. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -9
  104. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +264 -264
  105. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  106. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  107. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  108. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  109. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  110. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  111. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  112. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  113. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  114. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  115. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  116. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  117. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  118. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  119. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -464
  120. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  121. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  122. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  123. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  124. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  125. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1336 -1336
  126. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  127. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  128. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
  129. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  130. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  131. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +91 -91
  132. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  133. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  134. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  135. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
  136. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
  137. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1840 -1840
  138. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  139. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  140. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  141. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  142. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +329 -329
  143. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  144. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  145. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  146. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  147. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  148. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  149. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  150. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  151. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  152. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  153. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  154. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  155. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  158. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  159. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  160. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +563 -564
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  167. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  168. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  169. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  170. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  171. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  172. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  173. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  174. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +30 -30
  175. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +14 -14
  176. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +374 -374
  177. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  178. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  179. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2131 -2131
  183. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  184. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  185. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +169 -169
  186. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  187. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  188. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  189. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  190. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  191. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  192. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  193. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  194. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  195. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  196. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +564 -564
  197. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  198. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  199. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  200. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
  201. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
  202. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1339 -1339
  203. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  204. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  205. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  206. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  207. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  208. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1493 -1493
  209. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  210. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  211. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  212. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  213. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  214. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  215. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  216. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  217. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  218. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  219. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +240 -240
  220. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  221. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  222. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  223. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  224. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  225. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  226. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  227. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  228. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  229. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  230. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  231. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2165 -2165
  232. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  233. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  234. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  235. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  236. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  237. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  238. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  239. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  240. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  241. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  242. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  243. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1086 -1086
  244. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  245. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  246. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  247. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  248. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  249. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  250. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +844 -844
  251. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  252. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  253. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  254. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  255. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
  256. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  257. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  258. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  259. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  260. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  261. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  262. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  263. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  264. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  265. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  266. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  267. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  268. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  269. package/types/uni/uts-plugin-extend/README.md +3 -3
  270. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  271. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  272. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  273. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  274. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  275. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  276. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  277. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  278. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  279. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  280. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  281. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  282. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  283. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  284. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  285. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  286. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  287. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  288. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  289. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  290. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  291. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  292. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  293. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  294. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  295. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  296. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  297. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  298. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  299. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  300. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  301. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  302. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  303. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  304. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  305. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  306. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  307. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  308. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  309. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  310. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  311. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  312. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  313. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  314. package/types/uni-cloud/index.d.ts +67 -67
  315. package/types/uni-cloud/interface.d.ts +987 -987
  316. package/types/uni-cloud/unicloud-db/index.ts +314 -314
  317. package/types/uni-global/index.d.ts +1 -1
  318. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  319. package/types/vue/LifeCycle.d.ts +55 -55
  320. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  321. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  322. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  323. package/types/vue/SliderChangeEvent.d.ts +35 -35
  324. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  325. package/types/vue/UniCanvasElement.d.ts +275 -275
  326. package/types/vue/UniCloudDBElement.d.ts +217 -217
  327. package/types/vue/UniFormElement.d.ts +54 -54
  328. package/types/vue/UniNavigatorElement.d.ts +11 -11
  329. package/types/vue/global.d.ts +191 -191
  330. package/types/vue/index.d.ts +10 -10
  331. package/types/vue-global/index.d.ts +1 -1
  332. package/uts-plugin.d.ts +27 -27
@@ -1,1733 +1,1733 @@
1
- export interface Uni {
2
- /**
3
- * 创建并返回 audio 上下文 audioContext 对象
4
- *
5
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-inner-audio-context.html
6
- * @tutorial-uni-app http://uniapp.dcloud.io/api/media/audio-context.html
7
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/create-inner-audio-context.html
8
- *
9
- * @uniPlatform {
10
- * "app": {
11
- * "android": {
12
- * "osVer": "5.0",
13
- * "uniVer": "√",
14
- * "unixVer": "x"
15
- * },
16
- * "ios": {
17
- * "osVer": "12.0",
18
- * "uniVer": "√",
19
- * "unixVer": "x"
20
- * },
21
- * "harmony": {
22
- * "osVer": "3.0",
23
- * "uniVer": "4.25",
24
- * "unixVer": "x"
25
- * }
26
- * },
27
- * "web": {
28
- * "uniVer": "√",
29
- * "unixVer": "4.0"
30
- * }
31
- * "mp":{
32
- * "weixin": {
33
- * "hostVer": "√",
34
- * "uniVer": "√",
35
- * "unixVer": "x"
36
- * },
37
- * "alipay": {
38
- * "hostVer": "1.23.4",
39
- * "uniVer": "√",
40
- * "unixVer": "x"
41
- * },
42
- * "baidu": {
43
- * "hostVer": "√",
44
- * "uniVer": "√",
45
- * "unixVer": "x"
46
- * },
47
- * "toutiao": {
48
- * "hostVer": "√",
49
- * "uniVer": "√",
50
- * "unixVer": "x"
51
- * },
52
- * "lark": {
53
- * "hostVer": "√",
54
- * "uniVer": "√",
55
- * "unixVer": "x"
56
- * },
57
- * "qq": {
58
- * "hostVer": "√",
59
- * "uniVer": "√",
60
- * "unixVer": "x"
61
- * },
62
- * "kuaishou": {
63
- * "hostVer": "√",
64
- * "uniVer": "√",
65
- * "unixVer": "x"
66
- * },
67
- * "jd": {
68
- * "hostVer": "√",
69
- * "uniVer": "√",
70
- * "unixVer": "x"
71
- * }
72
- * }
73
- * }
74
- */
75
- createInnerAudioContext: CreateInnerAudioContext;
76
- }
77
-
78
- export type CreateInnerAudioContext = () => InnerAudioContext;
79
-
80
- export interface InnerAudioContext {
81
- /**
82
- * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
83
- */
84
- duration: number;
85
- /**
86
- * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
87
- */
88
- currentTime: number;
89
- /**
90
- * 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
91
- * @type boolean
92
- */
93
- paused: boolean;
94
- /**
95
- * 音频的数据链接,用于直接播放。
96
- */
97
- src: string;
98
- /**
99
- * 音频开始播放的位置(单位:s)
100
- */
101
- startTime: number;
102
- /**
103
- * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
104
- */
105
- buffered: number;
106
- /**
107
- * 是否自动开始播放,默认 false
108
- * @type boolean
109
- */
110
- autoplay: boolean;
111
- /**
112
- * 是否循环播放,默认 false
113
- * @type boolean
114
- */
115
- loop: boolean;
116
- /**
117
- * 是否遵循系统静音开关,当此参数为 false 时,即使用户打开了静音开关,也能继续发出声音,默认值 true
118
- * @type boolean
119
- */
120
- obeyMuteSwitch: boolean;
121
- /**
122
- * 音量。范围 0~1。
123
- */
124
- volume: number;
125
- /**
126
- * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
127
- */
128
- playbackRate?: number;
129
- /**
130
- * 暂停
131
- */
132
- pause(): void;
133
- /**
134
- * 停止
135
- * @uniPlatform {
136
- * "app": {
137
- * "android": {
138
- * "osVer": "5.0",
139
- * "uniVer": "√",
140
- * "unixVer": "x"
141
- * },
142
- * "ios": {
143
- * "osVer": "12.0",
144
- * "uniVer": "√",
145
- * "unixVer": "x"
146
- * },
147
- * "harmony": {
148
- * "osVer": "3.0",
149
- * "uniVer": "4.25",
150
- * "unixVer": "x"
151
- * }
152
- * },
153
- * "web": {
154
- * "uniVer": "√",
155
- * "unixVer": "x"
156
- * }
157
- * "mp":{
158
- * "weixin": {
159
- * "hostVer": "√",
160
- * "uniVer": "√",
161
- * "unixVer": "x"
162
- * },
163
- * "alipay": {
164
- * "hostVer": "√",
165
- * "uniVer": "√",
166
- * "unixVer": "x"
167
- * },
168
- * "baidu": {
169
- * "hostVer": "√",
170
- * "uniVer": "√",
171
- * "unixVer": "x"
172
- * },
173
- * "toutiao": {
174
- * "hostVer": "√",
175
- * "uniVer": "√",
176
- * "unixVer": "x"
177
- * },
178
- * "lark": {
179
- * "hostVer": "√",
180
- * "uniVer": "√",
181
- * "unixVer": "x"
182
- * },
183
- * "qq": {
184
- * "hostVer": "√",
185
- * "uniVer": "√",
186
- * "unixVer": "x"
187
- * },
188
- * "kuaishou": {
189
- * "hostVer": "√",
190
- * "uniVer": "√",
191
- * "unixVer": "x"
192
- * },
193
- * "jd": {
194
- * "hostVer": "√",
195
- * "uniVer": "√",
196
- * "unixVer": "x"
197
- * }
198
- * }
199
- * }
200
- */
201
- stop(): void;
202
- /**
203
- * 播放
204
- * @uniPlatform {
205
- * "app": {
206
- * "android": {
207
- * "osVer": "5.0",
208
- * "uniVer": "√",
209
- * "unixVer": "x"
210
- * },
211
- * "ios": {
212
- * "osVer": "12.0",
213
- * "uniVer": "√",
214
- * "unixVer": "x"
215
- * },
216
- * "harmony": {
217
- * "osVer": "3.0",
218
- * "uniVer": "4.25",
219
- * "unixVer": "x"
220
- * }
221
- * },
222
- * "web": {
223
- * "uniVer": "√",
224
- * "unixVer": "x"
225
- * }
226
- * "mp":{
227
- * "weixin": {
228
- * "hostVer": "√",
229
- * "uniVer": "√",
230
- * "unixVer": "x"
231
- * },
232
- * "alipay": {
233
- * "hostVer": "√",
234
- * "uniVer": "√",
235
- * "unixVer": "x"
236
- * },
237
- * "baidu": {
238
- * "hostVer": "√",
239
- * "uniVer": "√",
240
- * "unixVer": "x"
241
- * },
242
- * "toutiao": {
243
- * "hostVer": "√",
244
- * "uniVer": "√",
245
- * "unixVer": "x"
246
- * },
247
- * "lark": {
248
- * "hostVer": "√",
249
- * "uniVer": "√",
250
- * "unixVer": "x"
251
- * },
252
- * "qq": {
253
- * "hostVer": "√",
254
- * "uniVer": "√",
255
- * "unixVer": "x"
256
- * },
257
- * "kuaishou": {
258
- * "hostVer": "√",
259
- * "uniVer": "√",
260
- * "unixVer": "x"
261
- * },
262
- * "jd": {
263
- * "hostVer": "√",
264
- * "uniVer": "√",
265
- * "unixVer": "x"
266
- * }
267
- * }
268
- * }
269
- */
270
- play(): void;
271
- /**
272
- * 跳转到指定位置,单位 s
273
- * @uniPlatform {
274
- * "app": {
275
- * "android": {
276
- * "osVer": "5.0",
277
- * "uniVer": "√",
278
- * "unixVer": "x"
279
- * },
280
- * "ios": {
281
- * "osVer": "12.0",
282
- * "uniVer": "√",
283
- * "unixVer": "x"
284
- * },
285
- * "harmony": {
286
- * "osVer": "3.0",
287
- * "uniVer": "4.25",
288
- * "unixVer": "x"
289
- * }
290
- * },
291
- * "web": {
292
- * "uniVer": "√",
293
- * "unixVer": "x"
294
- * }
295
- * "mp":{
296
- * "weixin": {
297
- * "hostVer": "√",
298
- * "uniVer": "√",
299
- * "unixVer": "x"
300
- * },
301
- * "alipay": {
302
- * "hostVer": "√",
303
- * "uniVer": "√",
304
- * "unixVer": "x"
305
- * },
306
- * "baidu": {
307
- * "hostVer": "√",
308
- * "uniVer": "√",
309
- * "unixVer": "x"
310
- * },
311
- * "toutiao": {
312
- * "hostVer": "√",
313
- * "uniVer": "√",
314
- * "unixVer": "x"
315
- * },
316
- * "lark": {
317
- * "hostVer": "√",
318
- * "uniVer": "√",
319
- * "unixVer": "x"
320
- * },
321
- * "qq": {
322
- * "hostVer": "√",
323
- * "uniVer": "√",
324
- * "unixVer": "x"
325
- * },
326
- * "kuaishou": {
327
- * "hostVer": "√",
328
- * "uniVer": "√",
329
- * "unixVer": "x"
330
- * },
331
- * "jd": {
332
- * "hostVer": "√",
333
- * "uniVer": "√",
334
- * "unixVer": "x"
335
- * }
336
- * }
337
- * }
338
- */
339
- seek(position: number): void;
340
- /**
341
- * 销毁当前实例
342
- * @uniPlatform {
343
- * "app": {
344
- * "android": {
345
- * "osVer": "5.0",
346
- * "uniVer": "√",
347
- * "unixVer": "x"
348
- * },
349
- * "ios": {
350
- * "osVer": "12.0",
351
- * "uniVer": "√",
352
- * "unixVer": "x"
353
- * },
354
- * "harmony": {
355
- * "osVer": "3.0",
356
- * "uniVer": "4.25",
357
- * "unixVer": "x"
358
- * }
359
- * },
360
- * "web": {
361
- * "uniVer": "√",
362
- * "unixVer": "x"
363
- * }
364
- * "mp":{
365
- * "weixin": {
366
- * "hostVer": "√",
367
- * "uniVer": "√",
368
- * "unixVer": "x"
369
- * },
370
- * "alipay": {
371
- * "hostVer": "√",
372
- * "uniVer": "√",
373
- * "unixVer": "x"
374
- * },
375
- * "baidu": {
376
- * "hostVer": "√",
377
- * "uniVer": "√",
378
- * "unixVer": "x"
379
- * },
380
- * "toutiao": {
381
- * "hostVer": "√",
382
- * "uniVer": "√",
383
- * "unixVer": "x"
384
- * },
385
- * "lark": {
386
- * "hostVer": "√",
387
- * "uniVer": "√",
388
- * "unixVer": "x"
389
- * },
390
- * "qq": {
391
- * "hostVer": "√",
392
- * "uniVer": "√",
393
- * "unixVer": "x"
394
- * },
395
- * "kuaishou": {
396
- * "hostVer": "√",
397
- * "uniVer": "√",
398
- * "unixVer": "x"
399
- * },
400
- * "jd": {
401
- * "hostVer": "√",
402
- * "uniVer": "√",
403
- * "unixVer": "x"
404
- * }
405
- * }
406
- * }
407
- */
408
- destroy(): void;
409
- /**
410
- * 音频进入可以播放状态,但不保证后面可以流畅播放
411
- * @uniPlatform {
412
- * "app": {
413
- * "android": {
414
- * "osVer": "5.0",
415
- * "uniVer": "√",
416
- * "unixVer": "x"
417
- * },
418
- * "ios": {
419
- * "osVer": "12.0",
420
- * "uniVer": "√",
421
- * "unixVer": "x"
422
- * },
423
- * "harmony": {
424
- * "osVer": "3.0",
425
- * "uniVer": "4.25",
426
- * "unixVer": "x"
427
- * }
428
- * },
429
- * "web": {
430
- * "uniVer": "√",
431
- * "unixVer": "x"
432
- * }
433
- * "mp":{
434
- * "weixin": {
435
- * "hostVer": "√",
436
- * "uniVer": "√",
437
- * "unixVer": "x"
438
- * },
439
- * "alipay": {
440
- * "hostVer": "√",
441
- * "uniVer": "√",
442
- * "unixVer": "x"
443
- * },
444
- * "baidu": {
445
- * "hostVer": "√",
446
- * "uniVer": "√",
447
- * "unixVer": "x"
448
- * },
449
- * "toutiao": {
450
- * "hostVer": "√",
451
- * "uniVer": "√",
452
- * "unixVer": "x"
453
- * },
454
- * "lark": {
455
- * "hostVer": "√",
456
- * "uniVer": "√",
457
- * "unixVer": "x"
458
- * },
459
- * "qq": {
460
- * "hostVer": "√",
461
- * "uniVer": "√",
462
- * "unixVer": "x"
463
- * },
464
- * "kuaishou": {
465
- * "hostVer": "√",
466
- * "uniVer": "√",
467
- * "unixVer": "x"
468
- * },
469
- * "jd": {
470
- * "hostVer": "√",
471
- * "uniVer": "√",
472
- * "unixVer": "x"
473
- * }
474
- * }
475
- * }
476
- */
477
- onCanplay(callback: (result: any) => void): void;
478
- /**
479
- * 音频播放事件
480
- * @uniPlatform {
481
- * "app": {
482
- * "android": {
483
- * "osVer": "5.0",
484
- * "uniVer": "√",
485
- * "unixVer": "x"
486
- * },
487
- * "ios": {
488
- * "osVer": "12.0",
489
- * "uniVer": "√",
490
- * "unixVer": "x"
491
- * },
492
- * "harmony": {
493
- * "osVer": "3.0",
494
- * "uniVer": "4.25",
495
- * "unixVer": "x"
496
- * }
497
- * },
498
- * "web": {
499
- * "uniVer": "√",
500
- * "unixVer": "x"
501
- * }
502
- * "mp":{
503
- * "weixin": {
504
- * "hostVer": "√",
505
- * "uniVer": "√",
506
- * "unixVer": "x"
507
- * },
508
- * "alipay": {
509
- * "hostVer": "√",
510
- * "uniVer": "√",
511
- * "unixVer": "x"
512
- * },
513
- * "baidu": {
514
- * "hostVer": "√",
515
- * "uniVer": "√",
516
- * "unixVer": "x"
517
- * },
518
- * "toutiao": {
519
- * "hostVer": "√",
520
- * "uniVer": "√",
521
- * "unixVer": "x"
522
- * },
523
- * "lark": {
524
- * "hostVer": "√",
525
- * "uniVer": "√",
526
- * "unixVer": "x"
527
- * },
528
- * "qq": {
529
- * "hostVer": "√",
530
- * "uniVer": "√",
531
- * "unixVer": "x"
532
- * },
533
- * "kuaishou": {
534
- * "hostVer": "√",
535
- * "uniVer": "√",
536
- * "unixVer": "x"
537
- * },
538
- * "jd": {
539
- * "hostVer": "√",
540
- * "uniVer": "√",
541
- * "unixVer": "x"
542
- * }
543
- * }
544
- * }
545
- */
546
- onPlay(callback: (result: any) => void): void;
547
- /**
548
- * 音频暂停事件
549
- * @uniPlatform {
550
- * "app": {
551
- * "android": {
552
- * "osVer": "4.4",
553
- * "uniVer": "√",
554
- * "unixVer": "3.9.0"
555
- * }
556
- * }
557
- * }
558
- */
559
- onPause(callback: (result: any) => void): void;
560
- /**
561
- * 音频停止事件
562
- * @uniPlatform {
563
- * "app": {
564
- * "android": {
565
- * "osVer": "5.0",
566
- * "uniVer": "√",
567
- * "unixVer": "x"
568
- * },
569
- * "ios": {
570
- * "osVer": "12.0",
571
- * "uniVer": "√",
572
- * "unixVer": "x"
573
- * },
574
- * "harmony": {
575
- * "osVer": "3.0",
576
- * "uniVer": "4.25",
577
- * "unixVer": "x"
578
- * }
579
- * },
580
- * "web": {
581
- * "uniVer": "√",
582
- * "unixVer": "x"
583
- * }
584
- * "mp":{
585
- * "weixin": {
586
- * "hostVer": "√",
587
- * "uniVer": "√",
588
- * "unixVer": "x"
589
- * },
590
- * "alipay": {
591
- * "hostVer": "√",
592
- * "uniVer": "√",
593
- * "unixVer": "x"
594
- * },
595
- * "baidu": {
596
- * "hostVer": "√",
597
- * "uniVer": "√",
598
- * "unixVer": "x"
599
- * },
600
- * "toutiao": {
601
- * "hostVer": "√",
602
- * "uniVer": "√",
603
- * "unixVer": "x"
604
- * },
605
- * "lark": {
606
- * "hostVer": "√",
607
- * "uniVer": "√",
608
- * "unixVer": "x"
609
- * },
610
- * "qq": {
611
- * "hostVer": "√",
612
- * "uniVer": "√",
613
- * "unixVer": "x"
614
- * },
615
- * "kuaishou": {
616
- * "hostVer": "√",
617
- * "uniVer": "√",
618
- * "unixVer": "x"
619
- * },
620
- * "jd": {
621
- * "hostVer": "√",
622
- * "uniVer": "√",
623
- * "unixVer": "x"
624
- * }
625
- * }
626
- * }
627
- */
628
- onStop(callback: (result: any) => void): void;
629
- /**
630
- * 音频自然播放结束事件
631
- * @uniPlatform {
632
- * "app": {
633
- * "android": {
634
- * "osVer": "5.0",
635
- * "uniVer": "√",
636
- * "unixVer": "x"
637
- * },
638
- * "ios": {
639
- * "osVer": "12.0",
640
- * "uniVer": "√",
641
- * "unixVer": "x"
642
- * },
643
- * "harmony": {
644
- * "osVer": "3.0",
645
- * "uniVer": "4.25",
646
- * "unixVer": "x"
647
- * }
648
- * },
649
- * "web": {
650
- * "uniVer": "√",
651
- * "unixVer": "x"
652
- * }
653
- * "mp":{
654
- * "weixin": {
655
- * "hostVer": "√",
656
- * "uniVer": "√",
657
- * "unixVer": "x"
658
- * },
659
- * "alipay": {
660
- * "hostVer": "√",
661
- * "uniVer": "√",
662
- * "unixVer": "x"
663
- * },
664
- * "baidu": {
665
- * "hostVer": "√",
666
- * "uniVer": "√",
667
- * "unixVer": "x"
668
- * },
669
- * "toutiao": {
670
- * "hostVer": "√",
671
- * "uniVer": "√",
672
- * "unixVer": "x"
673
- * },
674
- * "lark": {
675
- * "hostVer": "√",
676
- * "uniVer": "√",
677
- * "unixVer": "x"
678
- * },
679
- * "qq": {
680
- * "hostVer": "√",
681
- * "uniVer": "√",
682
- * "unixVer": "x"
683
- * },
684
- * "kuaishou": {
685
- * "hostVer": "√",
686
- * "uniVer": "√",
687
- * "unixVer": "x"
688
- * },
689
- * "jd": {
690
- * "hostVer": "√",
691
- * "uniVer": "√",
692
- * "unixVer": "x"
693
- * }
694
- * }
695
- * }
696
- */
697
- onEnded(callback: (result: any) => void): void;
698
- /**
699
- * 音频播放进度更新事件
700
- * @uniPlatform {
701
- * "app": {
702
- * "android": {
703
- * "osVer": "5.0",
704
- * "uniVer": "√",
705
- * "unixVer": "x"
706
- * },
707
- * "ios": {
708
- * "osVer": "12.0",
709
- * "uniVer": "√",
710
- * "unixVer": "x"
711
- * },
712
- * "harmony": {
713
- * "osVer": "3.0",
714
- * "uniVer": "4.25",
715
- * "unixVer": "x"
716
- * }
717
- * },
718
- * "web": {
719
- * "uniVer": "√",
720
- * "unixVer": "x"
721
- * }
722
- * "mp":{
723
- * "weixin": {
724
- * "hostVer": "√",
725
- * "uniVer": "√",
726
- * "unixVer": "x"
727
- * },
728
- * "alipay": {
729
- * "hostVer": "√",
730
- * "uniVer": "√",
731
- * "unixVer": "x"
732
- * },
733
- * "baidu": {
734
- * "hostVer": "√",
735
- * "uniVer": "√",
736
- * "unixVer": "x"
737
- * },
738
- * "toutiao": {
739
- * "hostVer": "√",
740
- * "uniVer": "√",
741
- * "unixVer": "x"
742
- * },
743
- * "lark": {
744
- * "hostVer": "√",
745
- * "uniVer": "√",
746
- * "unixVer": "x"
747
- * },
748
- * "qq": {
749
- * "hostVer": "√",
750
- * "uniVer": "√",
751
- * "unixVer": "x"
752
- * },
753
- * "kuaishou": {
754
- * "hostVer": "√",
755
- * "uniVer": "√",
756
- * "unixVer": "x"
757
- * },
758
- * "jd": {
759
- * "hostVer": "√",
760
- * "uniVer": "√",
761
- * "unixVer": "x"
762
- * }
763
- * }
764
- * }
765
- */
766
- onTimeUpdate(callback: (result: any) => void): void;
767
- /**
768
- * 音频播放错误事件
769
- * @uniPlatform {
770
- * "app": {
771
- * "android": {
772
- * "osVer": "5.0",
773
- * "uniVer": "√",
774
- * "unixVer": "x"
775
- * },
776
- * "ios": {
777
- * "osVer": "12.0",
778
- * "uniVer": "√",
779
- * "unixVer": "x"
780
- * },
781
- * "harmony": {
782
- * "osVer": "3.0",
783
- * "uniVer": "4.25",
784
- * "unixVer": "x"
785
- * }
786
- * },
787
- * "web": {
788
- * "uniVer": "√",
789
- * "unixVer": "x"
790
- * }
791
- * "mp":{
792
- * "weixin": {
793
- * "hostVer": "√",
794
- * "uniVer": "√",
795
- * "unixVer": "x"
796
- * },
797
- * "alipay": {
798
- * "hostVer": "√",
799
- * "uniVer": "√",
800
- * "unixVer": "x"
801
- * },
802
- * "baidu": {
803
- * "hostVer": "√",
804
- * "uniVer": "√",
805
- * "unixVer": "x"
806
- * },
807
- * "toutiao": {
808
- * "hostVer": "√",
809
- * "uniVer": "√",
810
- * "unixVer": "x"
811
- * },
812
- * "lark": {
813
- * "hostVer": "√",
814
- * "uniVer": "√",
815
- * "unixVer": "x"
816
- * },
817
- * "qq": {
818
- * "hostVer": "√",
819
- * "uniVer": "√",
820
- * "unixVer": "x"
821
- * },
822
- * "kuaishou": {
823
- * "hostVer": "√",
824
- * "uniVer": "√",
825
- * "unixVer": "x"
826
- * },
827
- * "jd": {
828
- * "hostVer": "√",
829
- * "uniVer": "√",
830
- * "unixVer": "x"
831
- * }
832
- * }
833
- * }
834
- */
835
- onError(callback: (result: any) => void): void;
836
- /**
837
- * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
838
- * @uniPlatform {
839
- * "app": {
840
- * "android": {
841
- * "osVer": "5.0",
842
- * "uniVer": "√",
843
- * "unixVer": "x"
844
- * },
845
- * "ios": {
846
- * "osVer": "12.0",
847
- * "uniVer": "√",
848
- * "unixVer": "x"
849
- * },
850
- * "harmony": {
851
- * "osVer": "3.0",
852
- * "uniVer": "4.25",
853
- * "unixVer": "x"
854
- * }
855
- * },
856
- * "web": {
857
- * "uniVer": "√",
858
- * "unixVer": "x"
859
- * }
860
- * "mp":{
861
- * "weixin": {
862
- * "hostVer": "√",
863
- * "uniVer": "√",
864
- * "unixVer": "x"
865
- * },
866
- * "alipay": {
867
- * "hostVer": "√",
868
- * "uniVer": "√",
869
- * "unixVer": "x"
870
- * },
871
- * "baidu": {
872
- * "hostVer": "√",
873
- * "uniVer": "√",
874
- * "unixVer": "x"
875
- * },
876
- * "toutiao": {
877
- * "hostVer": "√",
878
- * "uniVer": "√",
879
- * "unixVer": "x"
880
- * },
881
- * "lark": {
882
- * "hostVer": "√",
883
- * "uniVer": "√",
884
- * "unixVer": "x"
885
- * },
886
- * "qq": {
887
- * "hostVer": "√",
888
- * "uniVer": "√",
889
- * "unixVer": "x"
890
- * },
891
- * "kuaishou": {
892
- * "hostVer": "√",
893
- * "uniVer": "√",
894
- * "unixVer": "x"
895
- * },
896
- * "jd": {
897
- * "hostVer": "√",
898
- * "uniVer": "√",
899
- * "unixVer": "x"
900
- * }
901
- * }
902
- * }
903
- */
904
- onWaiting(callback: (result: any) => void): void;
905
- /**
906
- * 音频进行 seek 操作事件
907
- * @uniPlatform {
908
- * "app": {
909
- * "android": {
910
- * "osVer": "5.0",
911
- * "uniVer": "√",
912
- * "unixVer": "x"
913
- * },
914
- * "ios": {
915
- * "osVer": "12.0",
916
- * "uniVer": "√",
917
- * "unixVer": "x"
918
- * },
919
- * "harmony": {
920
- * "osVer": "3.0",
921
- * "uniVer": "4.25",
922
- * "unixVer": "x"
923
- * }
924
- * },
925
- * "web": {
926
- * "uniVer": "√",
927
- * "unixVer": "x"
928
- * }
929
- * "mp":{
930
- * "weixin": {
931
- * "hostVer": "√",
932
- * "uniVer": "√",
933
- * "unixVer": "x"
934
- * },
935
- * "alipay": {
936
- * "hostVer": "√",
937
- * "uniVer": "√",
938
- * "unixVer": "x"
939
- * },
940
- * "baidu": {
941
- * "hostVer": "√",
942
- * "uniVer": "√",
943
- * "unixVer": "x"
944
- * },
945
- * "toutiao": {
946
- * "hostVer": "√",
947
- * "uniVer": "√",
948
- * "unixVer": "x"
949
- * },
950
- * "lark": {
951
- * "hostVer": "√",
952
- * "uniVer": "√",
953
- * "unixVer": "x"
954
- * },
955
- * "qq": {
956
- * "hostVer": "√",
957
- * "uniVer": "√",
958
- * "unixVer": "x"
959
- * },
960
- * "kuaishou": {
961
- * "hostVer": "√",
962
- * "uniVer": "√",
963
- * "unixVer": "x"
964
- * },
965
- * "jd": {
966
- * "hostVer": "√",
967
- * "uniVer": "√",
968
- * "unixVer": "x"
969
- * }
970
- * }
971
- * }
972
- */
973
- onSeeking(callback: (result: any) => void): void;
974
- /**
975
- * 音频完成 seek 操作事件
976
- * @uniPlatform {
977
- * "app": {
978
- * "android": {
979
- * "osVer": "5.0",
980
- * "uniVer": "√",
981
- * "unixVer": "x"
982
- * },
983
- * "ios": {
984
- * "osVer": "12.0",
985
- * "uniVer": "√",
986
- * "unixVer": "x"
987
- * },
988
- * "harmony": {
989
- * "osVer": "3.0",
990
- * "uniVer": "4.25",
991
- * "unixVer": "x"
992
- * }
993
- * },
994
- * "web": {
995
- * "uniVer": "√",
996
- * "unixVer": "x"
997
- * }
998
- * "mp":{
999
- * "weixin": {
1000
- * "hostVer": "√",
1001
- * "uniVer": "√",
1002
- * "unixVer": "x"
1003
- * },
1004
- * "alipay": {
1005
- * "hostVer": "√",
1006
- * "uniVer": "√",
1007
- * "unixVer": "x"
1008
- * },
1009
- * "baidu": {
1010
- * "hostVer": "√",
1011
- * "uniVer": "√",
1012
- * "unixVer": "x"
1013
- * },
1014
- * "toutiao": {
1015
- * "hostVer": "√",
1016
- * "uniVer": "√",
1017
- * "unixVer": "x"
1018
- * },
1019
- * "lark": {
1020
- * "hostVer": "√",
1021
- * "uniVer": "√",
1022
- * "unixVer": "x"
1023
- * },
1024
- * "qq": {
1025
- * "hostVer": "√",
1026
- * "uniVer": "√",
1027
- * "unixVer": "x"
1028
- * },
1029
- * "kuaishou": {
1030
- * "hostVer": "√",
1031
- * "uniVer": "√",
1032
- * "unixVer": "x"
1033
- * },
1034
- * "jd": {
1035
- * "hostVer": "√",
1036
- * "uniVer": "√",
1037
- * "unixVer": "x"
1038
- * }
1039
- * }
1040
- * }
1041
- */
1042
- onSeeked(callback: (result: any) => void): void;
1043
- /**
1044
- * 取消监听 onCanplay 事件
1045
- * @uniPlatform {
1046
- * "app": {
1047
- * "android": {
1048
- * "osVer": "5.0",
1049
- * "uniVer": "x",
1050
- * "unixVer": "x"
1051
- * },
1052
- * "ios": {
1053
- * "osVer": "12.0",
1054
- * "uniVer": "x",
1055
- * "unixVer": "x"
1056
- * },
1057
- * "harmony": {
1058
- * "osVer": "3.0",
1059
- * "uniVer": "x",
1060
- * "unixVer": "x"
1061
- * }
1062
- * },
1063
- * "web": {
1064
- * "uniVer": "√",
1065
- * "unixVer": "x"
1066
- * }
1067
- * "mp":{
1068
- * "weixin": {
1069
- * "hostVer": "1.9.0",
1070
- * "uniVer": "√",
1071
- * "unixVer": "x"
1072
- * },
1073
- * "alipay": {
1074
- * "hostVer": "√",
1075
- * "uniVer": "√",
1076
- * "unixVer": "x"
1077
- * },
1078
- * "baidu": {
1079
- * "hostVer": "√",
1080
- * "uniVer": "√",
1081
- * "unixVer": "x"
1082
- * },
1083
- * "toutiao": {
1084
- * "hostVer": "√",
1085
- * "uniVer": "√",
1086
- * "unixVer": "x"
1087
- * },
1088
- * "lark": {
1089
- * "hostVer": "x",
1090
- * "uniVer": "x",
1091
- * "unixVer": "x"
1092
- * },
1093
- * "qq": {
1094
- * "hostVer": "x",
1095
- * "uniVer": "x",
1096
- * "unixVer": "x"
1097
- * },
1098
- * "kuaishou": {
1099
- * "hostVer": "x",
1100
- * "uniVer": "x",
1101
- * "unixVer": "x"
1102
- * },
1103
- * "jd": {
1104
- * "hostVer": "x",
1105
- * "uniVer": "x",
1106
- * "unixVer": "x"
1107
- * }
1108
- * }
1109
- * }
1110
- */
1111
- offCanplay(callback: (result: any) => void): void;
1112
- /**
1113
- * 取消监听 onPlay 事件
1114
- * @uniPlatform {
1115
- * "app": {
1116
- * "android": {
1117
- * "osVer": "5.0",
1118
- * "uniVer": "x",
1119
- * "unixVer": "x"
1120
- * },
1121
- * "ios": {
1122
- * "osVer": "12.0",
1123
- * "uniVer": "x",
1124
- * "unixVer": "x"
1125
- * },
1126
- * "harmony": {
1127
- * "osVer": "3.0",
1128
- * "uniVer": "x",
1129
- * "unixVer": "x"
1130
- * }
1131
- * },
1132
- * "web": {
1133
- * "uniVer": "√",
1134
- * "unixVer": "x"
1135
- * }
1136
- * "mp":{
1137
- * "weixin": {
1138
- * "hostVer": "1.9.0",
1139
- * "uniVer": "√",
1140
- * "unixVer": "x"
1141
- * },
1142
- * "alipay": {
1143
- * "hostVer": "√",
1144
- * "uniVer": "√",
1145
- * "unixVer": "x"
1146
- * },
1147
- * "baidu": {
1148
- * "hostVer": "√",
1149
- * "uniVer": "√",
1150
- * "unixVer": "x"
1151
- * },
1152
- * "toutiao": {
1153
- * "hostVer": "√",
1154
- * "uniVer": "√",
1155
- * "unixVer": "x"
1156
- * },
1157
- * "lark": {
1158
- * "hostVer": "x",
1159
- * "uniVer": "x",
1160
- * "unixVer": "x"
1161
- * },
1162
- * "qq": {
1163
- * "hostVer": "x",
1164
- * "uniVer": "x",
1165
- * "unixVer": "x"
1166
- * },
1167
- * "kuaishou": {
1168
- * "hostVer": "x",
1169
- * "uniVer": "x",
1170
- * "unixVer": "x"
1171
- * },
1172
- * "jd": {
1173
- * "hostVer": "x",
1174
- * "uniVer": "x",
1175
- * "unixVer": "x"
1176
- * }
1177
- * }
1178
- * }
1179
- */
1180
- offPlay(callback: (result: any) => void): void;
1181
- /**
1182
- * 取消监听 onPause 事件
1183
- * @uniPlatform {
1184
- * "app": {
1185
- * "android": {
1186
- * "osVer": "5.0",
1187
- * "uniVer": "x",
1188
- * "unixVer": "x"
1189
- * },
1190
- * "ios": {
1191
- * "osVer": "12.0",
1192
- * "uniVer": "x",
1193
- * "unixVer": "x"
1194
- * },
1195
- * "harmony": {
1196
- * "osVer": "3.0",
1197
- * "uniVer": "x",
1198
- * "unixVer": "x"
1199
- * }
1200
- * },
1201
- * "web": {
1202
- * "uniVer": "√",
1203
- * "unixVer": "x"
1204
- * }
1205
- * "mp":{
1206
- * "weixin": {
1207
- * "hostVer": "1.9.0",
1208
- * "uniVer": "√",
1209
- * "unixVer": "x"
1210
- * },
1211
- * "alipay": {
1212
- * "hostVer": "√",
1213
- * "uniVer": "√",
1214
- * "unixVer": "x"
1215
- * },
1216
- * "baidu": {
1217
- * "hostVer": "√",
1218
- * "uniVer": "√",
1219
- * "unixVer": "x"
1220
- * },
1221
- * "toutiao": {
1222
- * "hostVer": "√",
1223
- * "uniVer": "√",
1224
- * "unixVer": "x"
1225
- * },
1226
- * "lark": {
1227
- * "hostVer": "x",
1228
- * "uniVer": "x",
1229
- * "unixVer": "x"
1230
- * },
1231
- * "qq": {
1232
- * "hostVer": "x",
1233
- * "uniVer": "x",
1234
- * "unixVer": "x"
1235
- * },
1236
- * "kuaishou": {
1237
- * "hostVer": "x",
1238
- * "uniVer": "x",
1239
- * "unixVer": "x"
1240
- * },
1241
- * "jd": {
1242
- * "hostVer": "x",
1243
- * "uniVer": "x",
1244
- * "unixVer": "x"
1245
- * }
1246
- * }
1247
- * }
1248
- */
1249
- offPause(callback: (result: any) => void): void;
1250
- /**
1251
- * 取消监听 onStop 事件
1252
- * @uniPlatform {
1253
- * "app": {
1254
- * "android": {
1255
- * "osVer": "5.0",
1256
- * "uniVer": "x",
1257
- * "unixVer": "x"
1258
- * },
1259
- * "ios": {
1260
- * "osVer": "12.0",
1261
- * "uniVer": "x",
1262
- * "unixVer": "x"
1263
- * },
1264
- * "harmony": {
1265
- * "osVer": "3.0",
1266
- * "uniVer": "4.25",
1267
- * "unixVer": "x"
1268
- * }
1269
- * },
1270
- * "web": {
1271
- * "uniVer": "√",
1272
- * "unixVer": "x"
1273
- * }
1274
- * "mp":{
1275
- * "weixin": {
1276
- * "hostVer": "1.9.0",
1277
- * "uniVer": "√",
1278
- * "unixVer": "x"
1279
- * },
1280
- * "alipay": {
1281
- * "hostVer": "√",
1282
- * "uniVer": "√",
1283
- * "unixVer": "x"
1284
- * },
1285
- * "baidu": {
1286
- * "hostVer": "√",
1287
- * "uniVer": "√",
1288
- * "unixVer": "x"
1289
- * },
1290
- * "toutiao": {
1291
- * "hostVer": "√",
1292
- * "uniVer": "√",
1293
- * "unixVer": "x"
1294
- * },
1295
- * "lark": {
1296
- * "hostVer": "x",
1297
- * "uniVer": "x",
1298
- * "unixVer": "x"
1299
- * },
1300
- * "qq": {
1301
- * "hostVer": "x",
1302
- * "uniVer": "x",
1303
- * "unixVer": "x"
1304
- * },
1305
- * "kuaishou": {
1306
- * "hostVer": "x",
1307
- * "uniVer": "x",
1308
- * "unixVer": "x"
1309
- * },
1310
- * "jd": {
1311
- * "hostVer": "x",
1312
- * "uniVer": "x",
1313
- * "unixVer": "x"
1314
- * }
1315
- * }
1316
- * }
1317
- */
1318
- offStop(callback: (result: any) => void): void;
1319
- /**
1320
- * 取消监听 onEnded 事件
1321
- * @uniPlatform {
1322
- * "app": {
1323
- * "android": {
1324
- * "osVer": "5.0",
1325
- * "uniVer": "x",
1326
- * "unixVer": "x"
1327
- * },
1328
- * "ios": {
1329
- * "osVer": "12.0",
1330
- * "uniVer": "x",
1331
- * "unixVer": "x"
1332
- * },
1333
- * "harmony": {
1334
- * "osVer": "3.0",
1335
- * "uniVer": "x",
1336
- * "unixVer": "x"
1337
- * }
1338
- * },
1339
- * "web": {
1340
- * "uniVer": "√",
1341
- * "unixVer": "x"
1342
- * }
1343
- * "mp":{
1344
- * "weixin": {
1345
- * "hostVer": "1.9.0",
1346
- * "uniVer": "√",
1347
- * "unixVer": "x"
1348
- * },
1349
- * "alipay": {
1350
- * "hostVer": "√",
1351
- * "uniVer": "√",
1352
- * "unixVer": "x"
1353
- * },
1354
- * "baidu": {
1355
- * "hostVer": "√",
1356
- * "uniVer": "√",
1357
- * "unixVer": "x"
1358
- * },
1359
- * "toutiao": {
1360
- * "hostVer": "√",
1361
- * "uniVer": "√",
1362
- * "unixVer": "x"
1363
- * },
1364
- * "lark": {
1365
- * "hostVer": "x",
1366
- * "uniVer": "x",
1367
- * "unixVer": "x"
1368
- * },
1369
- * "qq": {
1370
- * "hostVer": "x",
1371
- * "uniVer": "x",
1372
- * "unixVer": "x"
1373
- * },
1374
- * "kuaishou": {
1375
- * "hostVer": "x",
1376
- * "uniVer": "x",
1377
- * "unixVer": "x"
1378
- * },
1379
- * "jd": {
1380
- * "hostVer": "x",
1381
- * "uniVer": "x",
1382
- * "unixVer": "x"
1383
- * }
1384
- * }
1385
- * }
1386
- */
1387
- offEnded(callback: (result: any) => void): void;
1388
- /**
1389
- * 取消监听 onTimeUpdate 事件
1390
- * @uniPlatform {
1391
- * "app": {
1392
- * "android": {
1393
- * "osVer": "5.0",
1394
- * "uniVer": "x",
1395
- * "unixVer": "x"
1396
- * },
1397
- * "ios": {
1398
- * "osVer": "12.0",
1399
- * "uniVer": "x",
1400
- * "unixVer": "x"
1401
- * },
1402
- * "harmony": {
1403
- * "osVer": "3.0",
1404
- * "uniVer": "x",
1405
- * "unixVer": "x"
1406
- * }
1407
- * },
1408
- * "web": {
1409
- * "uniVer": "√",
1410
- * "unixVer": "x"
1411
- * }
1412
- * "mp":{
1413
- * "weixin": {
1414
- * "hostVer": "1.9.0",
1415
- * "uniVer": "√",
1416
- * "unixVer": "x"
1417
- * },
1418
- * "alipay": {
1419
- * "hostVer": "√",
1420
- * "uniVer": "√",
1421
- * "unixVer": "x"
1422
- * },
1423
- * "baidu": {
1424
- * "hostVer": "√",
1425
- * "uniVer": "√",
1426
- * "unixVer": "x"
1427
- * },
1428
- * "toutiao": {
1429
- * "hostVer": "√",
1430
- * "uniVer": "√",
1431
- * "unixVer": "x"
1432
- * },
1433
- * "lark": {
1434
- * "hostVer": "x",
1435
- * "uniVer": "x",
1436
- * "unixVer": "x"
1437
- * },
1438
- * "qq": {
1439
- * "hostVer": "x",
1440
- * "uniVer": "x",
1441
- * "unixVer": "x"
1442
- * },
1443
- * "kuaishou": {
1444
- * "hostVer": "x",
1445
- * "uniVer": "x",
1446
- * "unixVer": "x"
1447
- * },
1448
- * "jd": {
1449
- * "hostVer": "x",
1450
- * "uniVer": "x",
1451
- * "unixVer": "x"
1452
- * }
1453
- * }
1454
- * }
1455
- */
1456
- offTimeUpdate(callback: (result: any) => void): void;
1457
- /**
1458
- * 取消监听 onWaiting 事件
1459
- * @uniPlatform {
1460
- * "app": {
1461
- * "android": {
1462
- * "osVer": "5.0",
1463
- * "uniVer": "x",
1464
- * "unixVer": "x"
1465
- * },
1466
- * "ios": {
1467
- * "osVer": "12.0",
1468
- * "uniVer": "x",
1469
- * "unixVer": "x"
1470
- * },
1471
- * "harmony": {
1472
- * "osVer": "3.0",
1473
- * "uniVer": "x",
1474
- * "unixVer": "x"
1475
- * }
1476
- * },
1477
- * "web": {
1478
- * "uniVer": "√",
1479
- * "unixVer": "x"
1480
- * }
1481
- * "mp":{
1482
- * "weixin": {
1483
- * "hostVer": "1.9.0",
1484
- * "uniVer": "√",
1485
- * "unixVer": "x"
1486
- * },
1487
- * "alipay": {
1488
- * "hostVer": "√",
1489
- * "uniVer": "√",
1490
- * "unixVer": "x"
1491
- * },
1492
- * "baidu": {
1493
- * "hostVer": "√",
1494
- * "uniVer": "√",
1495
- * "unixVer": "x"
1496
- * },
1497
- * "toutiao": {
1498
- * "hostVer": "√",
1499
- * "uniVer": "√",
1500
- * "unixVer": "x"
1501
- * },
1502
- * "lark": {
1503
- * "hostVer": "x",
1504
- * "uniVer": "x",
1505
- * "unixVer": "x"
1506
- * },
1507
- * "qq": {
1508
- * "hostVer": "x",
1509
- * "uniVer": "x",
1510
- * "unixVer": "x"
1511
- * },
1512
- * "kuaishou": {
1513
- * "hostVer": "x",
1514
- * "uniVer": "x",
1515
- * "unixVer": "x"
1516
- * },
1517
- * "jd": {
1518
- * "hostVer": "x",
1519
- * "uniVer": "x",
1520
- * "unixVer": "x"
1521
- * }
1522
- * }
1523
- * }
1524
- */
1525
- offError(callback: (result: any) => void): void;
1526
- /**
1527
- * 取消监听 onWaiting 事件
1528
- * @uniPlatform {
1529
- * "app": {
1530
- * "android": {
1531
- * "osVer": "5.0",
1532
- * "uniVer": "x",
1533
- * "unixVer": "x"
1534
- * },
1535
- * "ios": {
1536
- * "osVer": "12.0",
1537
- * "uniVer": "x",
1538
- * "unixVer": "x"
1539
- * },
1540
- * "harmony": {
1541
- * "osVer": "3.0",
1542
- * "uniVer": "x",
1543
- * "unixVer": "x"
1544
- * }
1545
- * },
1546
- * "web": {
1547
- * "uniVer": "√",
1548
- * "unixVer": "x"
1549
- * }
1550
- * "mp":{
1551
- * "weixin": {
1552
- * "hostVer": "1.9.0",
1553
- * "uniVer": "√",
1554
- * "unixVer": "x"
1555
- * },
1556
- * "alipay": {
1557
- * "hostVer": "√",
1558
- * "uniVer": "√",
1559
- * "unixVer": "x"
1560
- * },
1561
- * "baidu": {
1562
- * "hostVer": "√",
1563
- * "uniVer": "√",
1564
- * "unixVer": "x"
1565
- * },
1566
- * "toutiao": {
1567
- * "hostVer": "√",
1568
- * "uniVer": "√",
1569
- * "unixVer": "x"
1570
- * },
1571
- * "lark": {
1572
- * "hostVer": "x",
1573
- * "uniVer": "x",
1574
- * "unixVer": "x"
1575
- * },
1576
- * "qq": {
1577
- * "hostVer": "x",
1578
- * "uniVer": "x",
1579
- * "unixVer": "x"
1580
- * },
1581
- * "kuaishou": {
1582
- * "hostVer": "x",
1583
- * "uniVer": "x",
1584
- * "unixVer": "x"
1585
- * },
1586
- * "jd": {
1587
- * "hostVer": "x",
1588
- * "uniVer": "x",
1589
- * "unixVer": "x"
1590
- * }
1591
- * }
1592
- * }
1593
- */
1594
- offWaiting(callback: (result: any) => void): void;
1595
- /**
1596
- * 取消监听 onSeeking 事件
1597
- * @uniPlatform {
1598
- * "app": {
1599
- * "android": {
1600
- * "osVer": "5.0",
1601
- * "uniVer": "x",
1602
- * "unixVer": "x"
1603
- * },
1604
- * "ios": {
1605
- * "osVer": "12.0",
1606
- * "uniVer": "x",
1607
- * "unixVer": "x"
1608
- * },
1609
- * "harmony": {
1610
- * "osVer": "3.0",
1611
- * "uniVer": "x",
1612
- * "unixVer": "x"
1613
- * }
1614
- * },
1615
- * "web": {
1616
- * "uniVer": "√",
1617
- * "unixVer": "x"
1618
- * }
1619
- * "mp":{
1620
- * "weixin": {
1621
- * "hostVer": "1.9.0",
1622
- * "uniVer": "√",
1623
- * "unixVer": "x"
1624
- * },
1625
- * "alipay": {
1626
- * "hostVer": "√",
1627
- * "uniVer": "√",
1628
- * "unixVer": "x"
1629
- * },
1630
- * "baidu": {
1631
- * "hostVer": "√",
1632
- * "uniVer": "√",
1633
- * "unixVer": "x"
1634
- * },
1635
- * "toutiao": {
1636
- * "hostVer": "√",
1637
- * "uniVer": "√",
1638
- * "unixVer": "x"
1639
- * },
1640
- * "lark": {
1641
- * "hostVer": "x",
1642
- * "uniVer": "x",
1643
- * "unixVer": "x"
1644
- * },
1645
- * "qq": {
1646
- * "hostVer": "x",
1647
- * "uniVer": "x",
1648
- * "unixVer": "x"
1649
- * },
1650
- * "kuaishou": {
1651
- * "hostVer": "x",
1652
- * "uniVer": "x",
1653
- * "unixVer": "x"
1654
- * },
1655
- * "jd": {
1656
- * "hostVer": "x",
1657
- * "uniVer": "x",
1658
- * "unixVer": "x"
1659
- * }
1660
- * }
1661
- * }
1662
- */
1663
- offSeeking(callback: (result: any) => void): void;
1664
- /**
1665
- * 取消监听 onSeeked 事件
1666
- * @uniPlatform {
1667
- * "app": {
1668
- * "android": {
1669
- * "osVer": "5.0",
1670
- * "uniVer": "x",
1671
- * "unixVer": "x"
1672
- * },
1673
- * "ios": {
1674
- * "osVer": "12.0",
1675
- * "uniVer": "x",
1676
- * "unixVer": "x"
1677
- * },
1678
- * "harmony": {
1679
- * "osVer": "3.0",
1680
- * "uniVer": "x",
1681
- * "unixVer": "x"
1682
- * }
1683
- * },
1684
- * "web": {
1685
- * "uniVer": "√",
1686
- * "unixVer": "x"
1687
- * }
1688
- * "mp":{
1689
- * "weixin": {
1690
- * "hostVer": "1.9.0",
1691
- * "uniVer": "√",
1692
- * "unixVer": "x"
1693
- * },
1694
- * "alipay": {
1695
- * "hostVer": "√",
1696
- * "uniVer": "√",
1697
- * "unixVer": "x"
1698
- * },
1699
- * "baidu": {
1700
- * "hostVer": "√",
1701
- * "uniVer": "√",
1702
- * "unixVer": "x"
1703
- * },
1704
- * "toutiao": {
1705
- * "hostVer": "√",
1706
- * "uniVer": "√",
1707
- * "unixVer": "x"
1708
- * },
1709
- * "lark": {
1710
- * "hostVer": "x",
1711
- * "uniVer": "x",
1712
- * "unixVer": "x"
1713
- * },
1714
- * "qq": {
1715
- * "hostVer": "x",
1716
- * "uniVer": "x",
1717
- * "unixVer": "x"
1718
- * },
1719
- * "kuaishou": {
1720
- * "hostVer": "x",
1721
- * "uniVer": "x",
1722
- * "unixVer": "x"
1723
- * },
1724
- * "jd": {
1725
- * "hostVer": "x",
1726
- * "uniVer": "x",
1727
- * "unixVer": "x"
1728
- * }
1729
- * }
1730
- * }
1731
- */
1732
- offSeeked(callback: (result: any) => void): void;
1733
- }
1
+ export interface Uni {
2
+ /**
3
+ * 创建并返回 audio 上下文 audioContext 对象
4
+ *
5
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-inner-audio-context.html
6
+ * @tutorial-uni-app http://uniapp.dcloud.io/api/media/audio-context.html
7
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/create-inner-audio-context.html
8
+ *
9
+ * @uniPlatform {
10
+ * "app": {
11
+ * "android": {
12
+ * "osVer": "5.0",
13
+ * "uniVer": "√",
14
+ * "unixVer": "x"
15
+ * },
16
+ * "ios": {
17
+ * "osVer": "12.0",
18
+ * "uniVer": "√",
19
+ * "unixVer": "x"
20
+ * },
21
+ * "harmony": {
22
+ * "osVer": "3.0",
23
+ * "uniVer": "4.25",
24
+ * "unixVer": "x"
25
+ * }
26
+ * },
27
+ * "web": {
28
+ * "uniVer": "√",
29
+ * "unixVer": "4.0"
30
+ * }
31
+ * "mp":{
32
+ * "weixin": {
33
+ * "hostVer": "√",
34
+ * "uniVer": "√",
35
+ * "unixVer": "x"
36
+ * },
37
+ * "alipay": {
38
+ * "hostVer": "1.23.4",
39
+ * "uniVer": "√",
40
+ * "unixVer": "x"
41
+ * },
42
+ * "baidu": {
43
+ * "hostVer": "√",
44
+ * "uniVer": "√",
45
+ * "unixVer": "x"
46
+ * },
47
+ * "toutiao": {
48
+ * "hostVer": "√",
49
+ * "uniVer": "√",
50
+ * "unixVer": "x"
51
+ * },
52
+ * "lark": {
53
+ * "hostVer": "√",
54
+ * "uniVer": "√",
55
+ * "unixVer": "x"
56
+ * },
57
+ * "qq": {
58
+ * "hostVer": "√",
59
+ * "uniVer": "√",
60
+ * "unixVer": "x"
61
+ * },
62
+ * "kuaishou": {
63
+ * "hostVer": "√",
64
+ * "uniVer": "√",
65
+ * "unixVer": "x"
66
+ * },
67
+ * "jd": {
68
+ * "hostVer": "√",
69
+ * "uniVer": "√",
70
+ * "unixVer": "x"
71
+ * }
72
+ * }
73
+ * }
74
+ */
75
+ createInnerAudioContext: CreateInnerAudioContext;
76
+ }
77
+
78
+ export type CreateInnerAudioContext = () => InnerAudioContext;
79
+
80
+ export interface InnerAudioContext {
81
+ /**
82
+ * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
83
+ */
84
+ duration: number;
85
+ /**
86
+ * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
87
+ */
88
+ currentTime: number;
89
+ /**
90
+ * 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
91
+ * @type boolean
92
+ */
93
+ paused: boolean;
94
+ /**
95
+ * 音频的数据链接,用于直接播放。
96
+ */
97
+ src: string;
98
+ /**
99
+ * 音频开始播放的位置(单位:s)
100
+ */
101
+ startTime: number;
102
+ /**
103
+ * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
104
+ */
105
+ buffered: number;
106
+ /**
107
+ * 是否自动开始播放,默认 false
108
+ * @type boolean
109
+ */
110
+ autoplay: boolean;
111
+ /**
112
+ * 是否循环播放,默认 false
113
+ * @type boolean
114
+ */
115
+ loop: boolean;
116
+ /**
117
+ * 是否遵循系统静音开关,当此参数为 false 时,即使用户打开了静音开关,也能继续发出声音,默认值 true
118
+ * @type boolean
119
+ */
120
+ obeyMuteSwitch: boolean;
121
+ /**
122
+ * 音量。范围 0~1。
123
+ */
124
+ volume: number;
125
+ /**
126
+ * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
127
+ */
128
+ playbackRate?: number;
129
+ /**
130
+ * 暂停
131
+ */
132
+ pause(): void;
133
+ /**
134
+ * 停止
135
+ * @uniPlatform {
136
+ * "app": {
137
+ * "android": {
138
+ * "osVer": "5.0",
139
+ * "uniVer": "√",
140
+ * "unixVer": "x"
141
+ * },
142
+ * "ios": {
143
+ * "osVer": "12.0",
144
+ * "uniVer": "√",
145
+ * "unixVer": "x"
146
+ * },
147
+ * "harmony": {
148
+ * "osVer": "3.0",
149
+ * "uniVer": "4.25",
150
+ * "unixVer": "x"
151
+ * }
152
+ * },
153
+ * "web": {
154
+ * "uniVer": "√",
155
+ * "unixVer": "x"
156
+ * }
157
+ * "mp":{
158
+ * "weixin": {
159
+ * "hostVer": "√",
160
+ * "uniVer": "√",
161
+ * "unixVer": "x"
162
+ * },
163
+ * "alipay": {
164
+ * "hostVer": "√",
165
+ * "uniVer": "√",
166
+ * "unixVer": "x"
167
+ * },
168
+ * "baidu": {
169
+ * "hostVer": "√",
170
+ * "uniVer": "√",
171
+ * "unixVer": "x"
172
+ * },
173
+ * "toutiao": {
174
+ * "hostVer": "√",
175
+ * "uniVer": "√",
176
+ * "unixVer": "x"
177
+ * },
178
+ * "lark": {
179
+ * "hostVer": "√",
180
+ * "uniVer": "√",
181
+ * "unixVer": "x"
182
+ * },
183
+ * "qq": {
184
+ * "hostVer": "√",
185
+ * "uniVer": "√",
186
+ * "unixVer": "x"
187
+ * },
188
+ * "kuaishou": {
189
+ * "hostVer": "√",
190
+ * "uniVer": "√",
191
+ * "unixVer": "x"
192
+ * },
193
+ * "jd": {
194
+ * "hostVer": "√",
195
+ * "uniVer": "√",
196
+ * "unixVer": "x"
197
+ * }
198
+ * }
199
+ * }
200
+ */
201
+ stop(): void;
202
+ /**
203
+ * 播放
204
+ * @uniPlatform {
205
+ * "app": {
206
+ * "android": {
207
+ * "osVer": "5.0",
208
+ * "uniVer": "√",
209
+ * "unixVer": "x"
210
+ * },
211
+ * "ios": {
212
+ * "osVer": "12.0",
213
+ * "uniVer": "√",
214
+ * "unixVer": "x"
215
+ * },
216
+ * "harmony": {
217
+ * "osVer": "3.0",
218
+ * "uniVer": "4.25",
219
+ * "unixVer": "x"
220
+ * }
221
+ * },
222
+ * "web": {
223
+ * "uniVer": "√",
224
+ * "unixVer": "x"
225
+ * }
226
+ * "mp":{
227
+ * "weixin": {
228
+ * "hostVer": "√",
229
+ * "uniVer": "√",
230
+ * "unixVer": "x"
231
+ * },
232
+ * "alipay": {
233
+ * "hostVer": "√",
234
+ * "uniVer": "√",
235
+ * "unixVer": "x"
236
+ * },
237
+ * "baidu": {
238
+ * "hostVer": "√",
239
+ * "uniVer": "√",
240
+ * "unixVer": "x"
241
+ * },
242
+ * "toutiao": {
243
+ * "hostVer": "√",
244
+ * "uniVer": "√",
245
+ * "unixVer": "x"
246
+ * },
247
+ * "lark": {
248
+ * "hostVer": "√",
249
+ * "uniVer": "√",
250
+ * "unixVer": "x"
251
+ * },
252
+ * "qq": {
253
+ * "hostVer": "√",
254
+ * "uniVer": "√",
255
+ * "unixVer": "x"
256
+ * },
257
+ * "kuaishou": {
258
+ * "hostVer": "√",
259
+ * "uniVer": "√",
260
+ * "unixVer": "x"
261
+ * },
262
+ * "jd": {
263
+ * "hostVer": "√",
264
+ * "uniVer": "√",
265
+ * "unixVer": "x"
266
+ * }
267
+ * }
268
+ * }
269
+ */
270
+ play(): void;
271
+ /**
272
+ * 跳转到指定位置,单位 s
273
+ * @uniPlatform {
274
+ * "app": {
275
+ * "android": {
276
+ * "osVer": "5.0",
277
+ * "uniVer": "√",
278
+ * "unixVer": "x"
279
+ * },
280
+ * "ios": {
281
+ * "osVer": "12.0",
282
+ * "uniVer": "√",
283
+ * "unixVer": "x"
284
+ * },
285
+ * "harmony": {
286
+ * "osVer": "3.0",
287
+ * "uniVer": "4.25",
288
+ * "unixVer": "x"
289
+ * }
290
+ * },
291
+ * "web": {
292
+ * "uniVer": "√",
293
+ * "unixVer": "x"
294
+ * }
295
+ * "mp":{
296
+ * "weixin": {
297
+ * "hostVer": "√",
298
+ * "uniVer": "√",
299
+ * "unixVer": "x"
300
+ * },
301
+ * "alipay": {
302
+ * "hostVer": "√",
303
+ * "uniVer": "√",
304
+ * "unixVer": "x"
305
+ * },
306
+ * "baidu": {
307
+ * "hostVer": "√",
308
+ * "uniVer": "√",
309
+ * "unixVer": "x"
310
+ * },
311
+ * "toutiao": {
312
+ * "hostVer": "√",
313
+ * "uniVer": "√",
314
+ * "unixVer": "x"
315
+ * },
316
+ * "lark": {
317
+ * "hostVer": "√",
318
+ * "uniVer": "√",
319
+ * "unixVer": "x"
320
+ * },
321
+ * "qq": {
322
+ * "hostVer": "√",
323
+ * "uniVer": "√",
324
+ * "unixVer": "x"
325
+ * },
326
+ * "kuaishou": {
327
+ * "hostVer": "√",
328
+ * "uniVer": "√",
329
+ * "unixVer": "x"
330
+ * },
331
+ * "jd": {
332
+ * "hostVer": "√",
333
+ * "uniVer": "√",
334
+ * "unixVer": "x"
335
+ * }
336
+ * }
337
+ * }
338
+ */
339
+ seek(position: number): void;
340
+ /**
341
+ * 销毁当前实例
342
+ * @uniPlatform {
343
+ * "app": {
344
+ * "android": {
345
+ * "osVer": "5.0",
346
+ * "uniVer": "√",
347
+ * "unixVer": "x"
348
+ * },
349
+ * "ios": {
350
+ * "osVer": "12.0",
351
+ * "uniVer": "√",
352
+ * "unixVer": "x"
353
+ * },
354
+ * "harmony": {
355
+ * "osVer": "3.0",
356
+ * "uniVer": "4.25",
357
+ * "unixVer": "x"
358
+ * }
359
+ * },
360
+ * "web": {
361
+ * "uniVer": "√",
362
+ * "unixVer": "x"
363
+ * }
364
+ * "mp":{
365
+ * "weixin": {
366
+ * "hostVer": "√",
367
+ * "uniVer": "√",
368
+ * "unixVer": "x"
369
+ * },
370
+ * "alipay": {
371
+ * "hostVer": "√",
372
+ * "uniVer": "√",
373
+ * "unixVer": "x"
374
+ * },
375
+ * "baidu": {
376
+ * "hostVer": "√",
377
+ * "uniVer": "√",
378
+ * "unixVer": "x"
379
+ * },
380
+ * "toutiao": {
381
+ * "hostVer": "√",
382
+ * "uniVer": "√",
383
+ * "unixVer": "x"
384
+ * },
385
+ * "lark": {
386
+ * "hostVer": "√",
387
+ * "uniVer": "√",
388
+ * "unixVer": "x"
389
+ * },
390
+ * "qq": {
391
+ * "hostVer": "√",
392
+ * "uniVer": "√",
393
+ * "unixVer": "x"
394
+ * },
395
+ * "kuaishou": {
396
+ * "hostVer": "√",
397
+ * "uniVer": "√",
398
+ * "unixVer": "x"
399
+ * },
400
+ * "jd": {
401
+ * "hostVer": "√",
402
+ * "uniVer": "√",
403
+ * "unixVer": "x"
404
+ * }
405
+ * }
406
+ * }
407
+ */
408
+ destroy(): void;
409
+ /**
410
+ * 音频进入可以播放状态,但不保证后面可以流畅播放
411
+ * @uniPlatform {
412
+ * "app": {
413
+ * "android": {
414
+ * "osVer": "5.0",
415
+ * "uniVer": "√",
416
+ * "unixVer": "x"
417
+ * },
418
+ * "ios": {
419
+ * "osVer": "12.0",
420
+ * "uniVer": "√",
421
+ * "unixVer": "x"
422
+ * },
423
+ * "harmony": {
424
+ * "osVer": "3.0",
425
+ * "uniVer": "4.25",
426
+ * "unixVer": "x"
427
+ * }
428
+ * },
429
+ * "web": {
430
+ * "uniVer": "√",
431
+ * "unixVer": "x"
432
+ * }
433
+ * "mp":{
434
+ * "weixin": {
435
+ * "hostVer": "√",
436
+ * "uniVer": "√",
437
+ * "unixVer": "x"
438
+ * },
439
+ * "alipay": {
440
+ * "hostVer": "√",
441
+ * "uniVer": "√",
442
+ * "unixVer": "x"
443
+ * },
444
+ * "baidu": {
445
+ * "hostVer": "√",
446
+ * "uniVer": "√",
447
+ * "unixVer": "x"
448
+ * },
449
+ * "toutiao": {
450
+ * "hostVer": "√",
451
+ * "uniVer": "√",
452
+ * "unixVer": "x"
453
+ * },
454
+ * "lark": {
455
+ * "hostVer": "√",
456
+ * "uniVer": "√",
457
+ * "unixVer": "x"
458
+ * },
459
+ * "qq": {
460
+ * "hostVer": "√",
461
+ * "uniVer": "√",
462
+ * "unixVer": "x"
463
+ * },
464
+ * "kuaishou": {
465
+ * "hostVer": "√",
466
+ * "uniVer": "√",
467
+ * "unixVer": "x"
468
+ * },
469
+ * "jd": {
470
+ * "hostVer": "√",
471
+ * "uniVer": "√",
472
+ * "unixVer": "x"
473
+ * }
474
+ * }
475
+ * }
476
+ */
477
+ onCanplay(callback: (result: any) => void): void;
478
+ /**
479
+ * 音频播放事件
480
+ * @uniPlatform {
481
+ * "app": {
482
+ * "android": {
483
+ * "osVer": "5.0",
484
+ * "uniVer": "√",
485
+ * "unixVer": "x"
486
+ * },
487
+ * "ios": {
488
+ * "osVer": "12.0",
489
+ * "uniVer": "√",
490
+ * "unixVer": "x"
491
+ * },
492
+ * "harmony": {
493
+ * "osVer": "3.0",
494
+ * "uniVer": "4.25",
495
+ * "unixVer": "x"
496
+ * }
497
+ * },
498
+ * "web": {
499
+ * "uniVer": "√",
500
+ * "unixVer": "x"
501
+ * }
502
+ * "mp":{
503
+ * "weixin": {
504
+ * "hostVer": "√",
505
+ * "uniVer": "√",
506
+ * "unixVer": "x"
507
+ * },
508
+ * "alipay": {
509
+ * "hostVer": "√",
510
+ * "uniVer": "√",
511
+ * "unixVer": "x"
512
+ * },
513
+ * "baidu": {
514
+ * "hostVer": "√",
515
+ * "uniVer": "√",
516
+ * "unixVer": "x"
517
+ * },
518
+ * "toutiao": {
519
+ * "hostVer": "√",
520
+ * "uniVer": "√",
521
+ * "unixVer": "x"
522
+ * },
523
+ * "lark": {
524
+ * "hostVer": "√",
525
+ * "uniVer": "√",
526
+ * "unixVer": "x"
527
+ * },
528
+ * "qq": {
529
+ * "hostVer": "√",
530
+ * "uniVer": "√",
531
+ * "unixVer": "x"
532
+ * },
533
+ * "kuaishou": {
534
+ * "hostVer": "√",
535
+ * "uniVer": "√",
536
+ * "unixVer": "x"
537
+ * },
538
+ * "jd": {
539
+ * "hostVer": "√",
540
+ * "uniVer": "√",
541
+ * "unixVer": "x"
542
+ * }
543
+ * }
544
+ * }
545
+ */
546
+ onPlay(callback: (result: any) => void): void;
547
+ /**
548
+ * 音频暂停事件
549
+ * @uniPlatform {
550
+ * "app": {
551
+ * "android": {
552
+ * "osVer": "4.4",
553
+ * "uniVer": "√",
554
+ * "unixVer": "3.9.0"
555
+ * }
556
+ * }
557
+ * }
558
+ */
559
+ onPause(callback: (result: any) => void): void;
560
+ /**
561
+ * 音频停止事件
562
+ * @uniPlatform {
563
+ * "app": {
564
+ * "android": {
565
+ * "osVer": "5.0",
566
+ * "uniVer": "√",
567
+ * "unixVer": "x"
568
+ * },
569
+ * "ios": {
570
+ * "osVer": "12.0",
571
+ * "uniVer": "√",
572
+ * "unixVer": "x"
573
+ * },
574
+ * "harmony": {
575
+ * "osVer": "3.0",
576
+ * "uniVer": "4.25",
577
+ * "unixVer": "x"
578
+ * }
579
+ * },
580
+ * "web": {
581
+ * "uniVer": "√",
582
+ * "unixVer": "x"
583
+ * }
584
+ * "mp":{
585
+ * "weixin": {
586
+ * "hostVer": "√",
587
+ * "uniVer": "√",
588
+ * "unixVer": "x"
589
+ * },
590
+ * "alipay": {
591
+ * "hostVer": "√",
592
+ * "uniVer": "√",
593
+ * "unixVer": "x"
594
+ * },
595
+ * "baidu": {
596
+ * "hostVer": "√",
597
+ * "uniVer": "√",
598
+ * "unixVer": "x"
599
+ * },
600
+ * "toutiao": {
601
+ * "hostVer": "√",
602
+ * "uniVer": "√",
603
+ * "unixVer": "x"
604
+ * },
605
+ * "lark": {
606
+ * "hostVer": "√",
607
+ * "uniVer": "√",
608
+ * "unixVer": "x"
609
+ * },
610
+ * "qq": {
611
+ * "hostVer": "√",
612
+ * "uniVer": "√",
613
+ * "unixVer": "x"
614
+ * },
615
+ * "kuaishou": {
616
+ * "hostVer": "√",
617
+ * "uniVer": "√",
618
+ * "unixVer": "x"
619
+ * },
620
+ * "jd": {
621
+ * "hostVer": "√",
622
+ * "uniVer": "√",
623
+ * "unixVer": "x"
624
+ * }
625
+ * }
626
+ * }
627
+ */
628
+ onStop(callback: (result: any) => void): void;
629
+ /**
630
+ * 音频自然播放结束事件
631
+ * @uniPlatform {
632
+ * "app": {
633
+ * "android": {
634
+ * "osVer": "5.0",
635
+ * "uniVer": "√",
636
+ * "unixVer": "x"
637
+ * },
638
+ * "ios": {
639
+ * "osVer": "12.0",
640
+ * "uniVer": "√",
641
+ * "unixVer": "x"
642
+ * },
643
+ * "harmony": {
644
+ * "osVer": "3.0",
645
+ * "uniVer": "4.25",
646
+ * "unixVer": "x"
647
+ * }
648
+ * },
649
+ * "web": {
650
+ * "uniVer": "√",
651
+ * "unixVer": "x"
652
+ * }
653
+ * "mp":{
654
+ * "weixin": {
655
+ * "hostVer": "√",
656
+ * "uniVer": "√",
657
+ * "unixVer": "x"
658
+ * },
659
+ * "alipay": {
660
+ * "hostVer": "√",
661
+ * "uniVer": "√",
662
+ * "unixVer": "x"
663
+ * },
664
+ * "baidu": {
665
+ * "hostVer": "√",
666
+ * "uniVer": "√",
667
+ * "unixVer": "x"
668
+ * },
669
+ * "toutiao": {
670
+ * "hostVer": "√",
671
+ * "uniVer": "√",
672
+ * "unixVer": "x"
673
+ * },
674
+ * "lark": {
675
+ * "hostVer": "√",
676
+ * "uniVer": "√",
677
+ * "unixVer": "x"
678
+ * },
679
+ * "qq": {
680
+ * "hostVer": "√",
681
+ * "uniVer": "√",
682
+ * "unixVer": "x"
683
+ * },
684
+ * "kuaishou": {
685
+ * "hostVer": "√",
686
+ * "uniVer": "√",
687
+ * "unixVer": "x"
688
+ * },
689
+ * "jd": {
690
+ * "hostVer": "√",
691
+ * "uniVer": "√",
692
+ * "unixVer": "x"
693
+ * }
694
+ * }
695
+ * }
696
+ */
697
+ onEnded(callback: (result: any) => void): void;
698
+ /**
699
+ * 音频播放进度更新事件
700
+ * @uniPlatform {
701
+ * "app": {
702
+ * "android": {
703
+ * "osVer": "5.0",
704
+ * "uniVer": "√",
705
+ * "unixVer": "x"
706
+ * },
707
+ * "ios": {
708
+ * "osVer": "12.0",
709
+ * "uniVer": "√",
710
+ * "unixVer": "x"
711
+ * },
712
+ * "harmony": {
713
+ * "osVer": "3.0",
714
+ * "uniVer": "4.25",
715
+ * "unixVer": "x"
716
+ * }
717
+ * },
718
+ * "web": {
719
+ * "uniVer": "√",
720
+ * "unixVer": "x"
721
+ * }
722
+ * "mp":{
723
+ * "weixin": {
724
+ * "hostVer": "√",
725
+ * "uniVer": "√",
726
+ * "unixVer": "x"
727
+ * },
728
+ * "alipay": {
729
+ * "hostVer": "√",
730
+ * "uniVer": "√",
731
+ * "unixVer": "x"
732
+ * },
733
+ * "baidu": {
734
+ * "hostVer": "√",
735
+ * "uniVer": "√",
736
+ * "unixVer": "x"
737
+ * },
738
+ * "toutiao": {
739
+ * "hostVer": "√",
740
+ * "uniVer": "√",
741
+ * "unixVer": "x"
742
+ * },
743
+ * "lark": {
744
+ * "hostVer": "√",
745
+ * "uniVer": "√",
746
+ * "unixVer": "x"
747
+ * },
748
+ * "qq": {
749
+ * "hostVer": "√",
750
+ * "uniVer": "√",
751
+ * "unixVer": "x"
752
+ * },
753
+ * "kuaishou": {
754
+ * "hostVer": "√",
755
+ * "uniVer": "√",
756
+ * "unixVer": "x"
757
+ * },
758
+ * "jd": {
759
+ * "hostVer": "√",
760
+ * "uniVer": "√",
761
+ * "unixVer": "x"
762
+ * }
763
+ * }
764
+ * }
765
+ */
766
+ onTimeUpdate(callback: (result: any) => void): void;
767
+ /**
768
+ * 音频播放错误事件
769
+ * @uniPlatform {
770
+ * "app": {
771
+ * "android": {
772
+ * "osVer": "5.0",
773
+ * "uniVer": "√",
774
+ * "unixVer": "x"
775
+ * },
776
+ * "ios": {
777
+ * "osVer": "12.0",
778
+ * "uniVer": "√",
779
+ * "unixVer": "x"
780
+ * },
781
+ * "harmony": {
782
+ * "osVer": "3.0",
783
+ * "uniVer": "4.25",
784
+ * "unixVer": "x"
785
+ * }
786
+ * },
787
+ * "web": {
788
+ * "uniVer": "√",
789
+ * "unixVer": "x"
790
+ * }
791
+ * "mp":{
792
+ * "weixin": {
793
+ * "hostVer": "√",
794
+ * "uniVer": "√",
795
+ * "unixVer": "x"
796
+ * },
797
+ * "alipay": {
798
+ * "hostVer": "√",
799
+ * "uniVer": "√",
800
+ * "unixVer": "x"
801
+ * },
802
+ * "baidu": {
803
+ * "hostVer": "√",
804
+ * "uniVer": "√",
805
+ * "unixVer": "x"
806
+ * },
807
+ * "toutiao": {
808
+ * "hostVer": "√",
809
+ * "uniVer": "√",
810
+ * "unixVer": "x"
811
+ * },
812
+ * "lark": {
813
+ * "hostVer": "√",
814
+ * "uniVer": "√",
815
+ * "unixVer": "x"
816
+ * },
817
+ * "qq": {
818
+ * "hostVer": "√",
819
+ * "uniVer": "√",
820
+ * "unixVer": "x"
821
+ * },
822
+ * "kuaishou": {
823
+ * "hostVer": "√",
824
+ * "uniVer": "√",
825
+ * "unixVer": "x"
826
+ * },
827
+ * "jd": {
828
+ * "hostVer": "√",
829
+ * "uniVer": "√",
830
+ * "unixVer": "x"
831
+ * }
832
+ * }
833
+ * }
834
+ */
835
+ onError(callback: (result: any) => void): void;
836
+ /**
837
+ * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
838
+ * @uniPlatform {
839
+ * "app": {
840
+ * "android": {
841
+ * "osVer": "5.0",
842
+ * "uniVer": "√",
843
+ * "unixVer": "x"
844
+ * },
845
+ * "ios": {
846
+ * "osVer": "12.0",
847
+ * "uniVer": "√",
848
+ * "unixVer": "x"
849
+ * },
850
+ * "harmony": {
851
+ * "osVer": "3.0",
852
+ * "uniVer": "4.25",
853
+ * "unixVer": "x"
854
+ * }
855
+ * },
856
+ * "web": {
857
+ * "uniVer": "√",
858
+ * "unixVer": "x"
859
+ * }
860
+ * "mp":{
861
+ * "weixin": {
862
+ * "hostVer": "√",
863
+ * "uniVer": "√",
864
+ * "unixVer": "x"
865
+ * },
866
+ * "alipay": {
867
+ * "hostVer": "√",
868
+ * "uniVer": "√",
869
+ * "unixVer": "x"
870
+ * },
871
+ * "baidu": {
872
+ * "hostVer": "√",
873
+ * "uniVer": "√",
874
+ * "unixVer": "x"
875
+ * },
876
+ * "toutiao": {
877
+ * "hostVer": "√",
878
+ * "uniVer": "√",
879
+ * "unixVer": "x"
880
+ * },
881
+ * "lark": {
882
+ * "hostVer": "√",
883
+ * "uniVer": "√",
884
+ * "unixVer": "x"
885
+ * },
886
+ * "qq": {
887
+ * "hostVer": "√",
888
+ * "uniVer": "√",
889
+ * "unixVer": "x"
890
+ * },
891
+ * "kuaishou": {
892
+ * "hostVer": "√",
893
+ * "uniVer": "√",
894
+ * "unixVer": "x"
895
+ * },
896
+ * "jd": {
897
+ * "hostVer": "√",
898
+ * "uniVer": "√",
899
+ * "unixVer": "x"
900
+ * }
901
+ * }
902
+ * }
903
+ */
904
+ onWaiting(callback: (result: any) => void): void;
905
+ /**
906
+ * 音频进行 seek 操作事件
907
+ * @uniPlatform {
908
+ * "app": {
909
+ * "android": {
910
+ * "osVer": "5.0",
911
+ * "uniVer": "√",
912
+ * "unixVer": "x"
913
+ * },
914
+ * "ios": {
915
+ * "osVer": "12.0",
916
+ * "uniVer": "√",
917
+ * "unixVer": "x"
918
+ * },
919
+ * "harmony": {
920
+ * "osVer": "3.0",
921
+ * "uniVer": "4.25",
922
+ * "unixVer": "x"
923
+ * }
924
+ * },
925
+ * "web": {
926
+ * "uniVer": "√",
927
+ * "unixVer": "x"
928
+ * }
929
+ * "mp":{
930
+ * "weixin": {
931
+ * "hostVer": "√",
932
+ * "uniVer": "√",
933
+ * "unixVer": "x"
934
+ * },
935
+ * "alipay": {
936
+ * "hostVer": "√",
937
+ * "uniVer": "√",
938
+ * "unixVer": "x"
939
+ * },
940
+ * "baidu": {
941
+ * "hostVer": "√",
942
+ * "uniVer": "√",
943
+ * "unixVer": "x"
944
+ * },
945
+ * "toutiao": {
946
+ * "hostVer": "√",
947
+ * "uniVer": "√",
948
+ * "unixVer": "x"
949
+ * },
950
+ * "lark": {
951
+ * "hostVer": "√",
952
+ * "uniVer": "√",
953
+ * "unixVer": "x"
954
+ * },
955
+ * "qq": {
956
+ * "hostVer": "√",
957
+ * "uniVer": "√",
958
+ * "unixVer": "x"
959
+ * },
960
+ * "kuaishou": {
961
+ * "hostVer": "√",
962
+ * "uniVer": "√",
963
+ * "unixVer": "x"
964
+ * },
965
+ * "jd": {
966
+ * "hostVer": "√",
967
+ * "uniVer": "√",
968
+ * "unixVer": "x"
969
+ * }
970
+ * }
971
+ * }
972
+ */
973
+ onSeeking(callback: (result: any) => void): void;
974
+ /**
975
+ * 音频完成 seek 操作事件
976
+ * @uniPlatform {
977
+ * "app": {
978
+ * "android": {
979
+ * "osVer": "5.0",
980
+ * "uniVer": "√",
981
+ * "unixVer": "x"
982
+ * },
983
+ * "ios": {
984
+ * "osVer": "12.0",
985
+ * "uniVer": "√",
986
+ * "unixVer": "x"
987
+ * },
988
+ * "harmony": {
989
+ * "osVer": "3.0",
990
+ * "uniVer": "4.25",
991
+ * "unixVer": "x"
992
+ * }
993
+ * },
994
+ * "web": {
995
+ * "uniVer": "√",
996
+ * "unixVer": "x"
997
+ * }
998
+ * "mp":{
999
+ * "weixin": {
1000
+ * "hostVer": "√",
1001
+ * "uniVer": "√",
1002
+ * "unixVer": "x"
1003
+ * },
1004
+ * "alipay": {
1005
+ * "hostVer": "√",
1006
+ * "uniVer": "√",
1007
+ * "unixVer": "x"
1008
+ * },
1009
+ * "baidu": {
1010
+ * "hostVer": "√",
1011
+ * "uniVer": "√",
1012
+ * "unixVer": "x"
1013
+ * },
1014
+ * "toutiao": {
1015
+ * "hostVer": "√",
1016
+ * "uniVer": "√",
1017
+ * "unixVer": "x"
1018
+ * },
1019
+ * "lark": {
1020
+ * "hostVer": "√",
1021
+ * "uniVer": "√",
1022
+ * "unixVer": "x"
1023
+ * },
1024
+ * "qq": {
1025
+ * "hostVer": "√",
1026
+ * "uniVer": "√",
1027
+ * "unixVer": "x"
1028
+ * },
1029
+ * "kuaishou": {
1030
+ * "hostVer": "√",
1031
+ * "uniVer": "√",
1032
+ * "unixVer": "x"
1033
+ * },
1034
+ * "jd": {
1035
+ * "hostVer": "√",
1036
+ * "uniVer": "√",
1037
+ * "unixVer": "x"
1038
+ * }
1039
+ * }
1040
+ * }
1041
+ */
1042
+ onSeeked(callback: (result: any) => void): void;
1043
+ /**
1044
+ * 取消监听 onCanplay 事件
1045
+ * @uniPlatform {
1046
+ * "app": {
1047
+ * "android": {
1048
+ * "osVer": "5.0",
1049
+ * "uniVer": "x",
1050
+ * "unixVer": "x"
1051
+ * },
1052
+ * "ios": {
1053
+ * "osVer": "12.0",
1054
+ * "uniVer": "x",
1055
+ * "unixVer": "x"
1056
+ * },
1057
+ * "harmony": {
1058
+ * "osVer": "3.0",
1059
+ * "uniVer": "x",
1060
+ * "unixVer": "x"
1061
+ * }
1062
+ * },
1063
+ * "web": {
1064
+ * "uniVer": "√",
1065
+ * "unixVer": "x"
1066
+ * }
1067
+ * "mp":{
1068
+ * "weixin": {
1069
+ * "hostVer": "1.9.0",
1070
+ * "uniVer": "√",
1071
+ * "unixVer": "x"
1072
+ * },
1073
+ * "alipay": {
1074
+ * "hostVer": "√",
1075
+ * "uniVer": "√",
1076
+ * "unixVer": "x"
1077
+ * },
1078
+ * "baidu": {
1079
+ * "hostVer": "√",
1080
+ * "uniVer": "√",
1081
+ * "unixVer": "x"
1082
+ * },
1083
+ * "toutiao": {
1084
+ * "hostVer": "√",
1085
+ * "uniVer": "√",
1086
+ * "unixVer": "x"
1087
+ * },
1088
+ * "lark": {
1089
+ * "hostVer": "x",
1090
+ * "uniVer": "x",
1091
+ * "unixVer": "x"
1092
+ * },
1093
+ * "qq": {
1094
+ * "hostVer": "x",
1095
+ * "uniVer": "x",
1096
+ * "unixVer": "x"
1097
+ * },
1098
+ * "kuaishou": {
1099
+ * "hostVer": "x",
1100
+ * "uniVer": "x",
1101
+ * "unixVer": "x"
1102
+ * },
1103
+ * "jd": {
1104
+ * "hostVer": "x",
1105
+ * "uniVer": "x",
1106
+ * "unixVer": "x"
1107
+ * }
1108
+ * }
1109
+ * }
1110
+ */
1111
+ offCanplay(callback: (result: any) => void): void;
1112
+ /**
1113
+ * 取消监听 onPlay 事件
1114
+ * @uniPlatform {
1115
+ * "app": {
1116
+ * "android": {
1117
+ * "osVer": "5.0",
1118
+ * "uniVer": "x",
1119
+ * "unixVer": "x"
1120
+ * },
1121
+ * "ios": {
1122
+ * "osVer": "12.0",
1123
+ * "uniVer": "x",
1124
+ * "unixVer": "x"
1125
+ * },
1126
+ * "harmony": {
1127
+ * "osVer": "3.0",
1128
+ * "uniVer": "x",
1129
+ * "unixVer": "x"
1130
+ * }
1131
+ * },
1132
+ * "web": {
1133
+ * "uniVer": "√",
1134
+ * "unixVer": "x"
1135
+ * }
1136
+ * "mp":{
1137
+ * "weixin": {
1138
+ * "hostVer": "1.9.0",
1139
+ * "uniVer": "√",
1140
+ * "unixVer": "x"
1141
+ * },
1142
+ * "alipay": {
1143
+ * "hostVer": "√",
1144
+ * "uniVer": "√",
1145
+ * "unixVer": "x"
1146
+ * },
1147
+ * "baidu": {
1148
+ * "hostVer": "√",
1149
+ * "uniVer": "√",
1150
+ * "unixVer": "x"
1151
+ * },
1152
+ * "toutiao": {
1153
+ * "hostVer": "√",
1154
+ * "uniVer": "√",
1155
+ * "unixVer": "x"
1156
+ * },
1157
+ * "lark": {
1158
+ * "hostVer": "x",
1159
+ * "uniVer": "x",
1160
+ * "unixVer": "x"
1161
+ * },
1162
+ * "qq": {
1163
+ * "hostVer": "x",
1164
+ * "uniVer": "x",
1165
+ * "unixVer": "x"
1166
+ * },
1167
+ * "kuaishou": {
1168
+ * "hostVer": "x",
1169
+ * "uniVer": "x",
1170
+ * "unixVer": "x"
1171
+ * },
1172
+ * "jd": {
1173
+ * "hostVer": "x",
1174
+ * "uniVer": "x",
1175
+ * "unixVer": "x"
1176
+ * }
1177
+ * }
1178
+ * }
1179
+ */
1180
+ offPlay(callback: (result: any) => void): void;
1181
+ /**
1182
+ * 取消监听 onPause 事件
1183
+ * @uniPlatform {
1184
+ * "app": {
1185
+ * "android": {
1186
+ * "osVer": "5.0",
1187
+ * "uniVer": "x",
1188
+ * "unixVer": "x"
1189
+ * },
1190
+ * "ios": {
1191
+ * "osVer": "12.0",
1192
+ * "uniVer": "x",
1193
+ * "unixVer": "x"
1194
+ * },
1195
+ * "harmony": {
1196
+ * "osVer": "3.0",
1197
+ * "uniVer": "x",
1198
+ * "unixVer": "x"
1199
+ * }
1200
+ * },
1201
+ * "web": {
1202
+ * "uniVer": "√",
1203
+ * "unixVer": "x"
1204
+ * }
1205
+ * "mp":{
1206
+ * "weixin": {
1207
+ * "hostVer": "1.9.0",
1208
+ * "uniVer": "√",
1209
+ * "unixVer": "x"
1210
+ * },
1211
+ * "alipay": {
1212
+ * "hostVer": "√",
1213
+ * "uniVer": "√",
1214
+ * "unixVer": "x"
1215
+ * },
1216
+ * "baidu": {
1217
+ * "hostVer": "√",
1218
+ * "uniVer": "√",
1219
+ * "unixVer": "x"
1220
+ * },
1221
+ * "toutiao": {
1222
+ * "hostVer": "√",
1223
+ * "uniVer": "√",
1224
+ * "unixVer": "x"
1225
+ * },
1226
+ * "lark": {
1227
+ * "hostVer": "x",
1228
+ * "uniVer": "x",
1229
+ * "unixVer": "x"
1230
+ * },
1231
+ * "qq": {
1232
+ * "hostVer": "x",
1233
+ * "uniVer": "x",
1234
+ * "unixVer": "x"
1235
+ * },
1236
+ * "kuaishou": {
1237
+ * "hostVer": "x",
1238
+ * "uniVer": "x",
1239
+ * "unixVer": "x"
1240
+ * },
1241
+ * "jd": {
1242
+ * "hostVer": "x",
1243
+ * "uniVer": "x",
1244
+ * "unixVer": "x"
1245
+ * }
1246
+ * }
1247
+ * }
1248
+ */
1249
+ offPause(callback: (result: any) => void): void;
1250
+ /**
1251
+ * 取消监听 onStop 事件
1252
+ * @uniPlatform {
1253
+ * "app": {
1254
+ * "android": {
1255
+ * "osVer": "5.0",
1256
+ * "uniVer": "x",
1257
+ * "unixVer": "x"
1258
+ * },
1259
+ * "ios": {
1260
+ * "osVer": "12.0",
1261
+ * "uniVer": "x",
1262
+ * "unixVer": "x"
1263
+ * },
1264
+ * "harmony": {
1265
+ * "osVer": "3.0",
1266
+ * "uniVer": "4.25",
1267
+ * "unixVer": "x"
1268
+ * }
1269
+ * },
1270
+ * "web": {
1271
+ * "uniVer": "√",
1272
+ * "unixVer": "x"
1273
+ * }
1274
+ * "mp":{
1275
+ * "weixin": {
1276
+ * "hostVer": "1.9.0",
1277
+ * "uniVer": "√",
1278
+ * "unixVer": "x"
1279
+ * },
1280
+ * "alipay": {
1281
+ * "hostVer": "√",
1282
+ * "uniVer": "√",
1283
+ * "unixVer": "x"
1284
+ * },
1285
+ * "baidu": {
1286
+ * "hostVer": "√",
1287
+ * "uniVer": "√",
1288
+ * "unixVer": "x"
1289
+ * },
1290
+ * "toutiao": {
1291
+ * "hostVer": "√",
1292
+ * "uniVer": "√",
1293
+ * "unixVer": "x"
1294
+ * },
1295
+ * "lark": {
1296
+ * "hostVer": "x",
1297
+ * "uniVer": "x",
1298
+ * "unixVer": "x"
1299
+ * },
1300
+ * "qq": {
1301
+ * "hostVer": "x",
1302
+ * "uniVer": "x",
1303
+ * "unixVer": "x"
1304
+ * },
1305
+ * "kuaishou": {
1306
+ * "hostVer": "x",
1307
+ * "uniVer": "x",
1308
+ * "unixVer": "x"
1309
+ * },
1310
+ * "jd": {
1311
+ * "hostVer": "x",
1312
+ * "uniVer": "x",
1313
+ * "unixVer": "x"
1314
+ * }
1315
+ * }
1316
+ * }
1317
+ */
1318
+ offStop(callback: (result: any) => void): void;
1319
+ /**
1320
+ * 取消监听 onEnded 事件
1321
+ * @uniPlatform {
1322
+ * "app": {
1323
+ * "android": {
1324
+ * "osVer": "5.0",
1325
+ * "uniVer": "x",
1326
+ * "unixVer": "x"
1327
+ * },
1328
+ * "ios": {
1329
+ * "osVer": "12.0",
1330
+ * "uniVer": "x",
1331
+ * "unixVer": "x"
1332
+ * },
1333
+ * "harmony": {
1334
+ * "osVer": "3.0",
1335
+ * "uniVer": "x",
1336
+ * "unixVer": "x"
1337
+ * }
1338
+ * },
1339
+ * "web": {
1340
+ * "uniVer": "√",
1341
+ * "unixVer": "x"
1342
+ * }
1343
+ * "mp":{
1344
+ * "weixin": {
1345
+ * "hostVer": "1.9.0",
1346
+ * "uniVer": "√",
1347
+ * "unixVer": "x"
1348
+ * },
1349
+ * "alipay": {
1350
+ * "hostVer": "√",
1351
+ * "uniVer": "√",
1352
+ * "unixVer": "x"
1353
+ * },
1354
+ * "baidu": {
1355
+ * "hostVer": "√",
1356
+ * "uniVer": "√",
1357
+ * "unixVer": "x"
1358
+ * },
1359
+ * "toutiao": {
1360
+ * "hostVer": "√",
1361
+ * "uniVer": "√",
1362
+ * "unixVer": "x"
1363
+ * },
1364
+ * "lark": {
1365
+ * "hostVer": "x",
1366
+ * "uniVer": "x",
1367
+ * "unixVer": "x"
1368
+ * },
1369
+ * "qq": {
1370
+ * "hostVer": "x",
1371
+ * "uniVer": "x",
1372
+ * "unixVer": "x"
1373
+ * },
1374
+ * "kuaishou": {
1375
+ * "hostVer": "x",
1376
+ * "uniVer": "x",
1377
+ * "unixVer": "x"
1378
+ * },
1379
+ * "jd": {
1380
+ * "hostVer": "x",
1381
+ * "uniVer": "x",
1382
+ * "unixVer": "x"
1383
+ * }
1384
+ * }
1385
+ * }
1386
+ */
1387
+ offEnded(callback: (result: any) => void): void;
1388
+ /**
1389
+ * 取消监听 onTimeUpdate 事件
1390
+ * @uniPlatform {
1391
+ * "app": {
1392
+ * "android": {
1393
+ * "osVer": "5.0",
1394
+ * "uniVer": "x",
1395
+ * "unixVer": "x"
1396
+ * },
1397
+ * "ios": {
1398
+ * "osVer": "12.0",
1399
+ * "uniVer": "x",
1400
+ * "unixVer": "x"
1401
+ * },
1402
+ * "harmony": {
1403
+ * "osVer": "3.0",
1404
+ * "uniVer": "x",
1405
+ * "unixVer": "x"
1406
+ * }
1407
+ * },
1408
+ * "web": {
1409
+ * "uniVer": "√",
1410
+ * "unixVer": "x"
1411
+ * }
1412
+ * "mp":{
1413
+ * "weixin": {
1414
+ * "hostVer": "1.9.0",
1415
+ * "uniVer": "√",
1416
+ * "unixVer": "x"
1417
+ * },
1418
+ * "alipay": {
1419
+ * "hostVer": "√",
1420
+ * "uniVer": "√",
1421
+ * "unixVer": "x"
1422
+ * },
1423
+ * "baidu": {
1424
+ * "hostVer": "√",
1425
+ * "uniVer": "√",
1426
+ * "unixVer": "x"
1427
+ * },
1428
+ * "toutiao": {
1429
+ * "hostVer": "√",
1430
+ * "uniVer": "√",
1431
+ * "unixVer": "x"
1432
+ * },
1433
+ * "lark": {
1434
+ * "hostVer": "x",
1435
+ * "uniVer": "x",
1436
+ * "unixVer": "x"
1437
+ * },
1438
+ * "qq": {
1439
+ * "hostVer": "x",
1440
+ * "uniVer": "x",
1441
+ * "unixVer": "x"
1442
+ * },
1443
+ * "kuaishou": {
1444
+ * "hostVer": "x",
1445
+ * "uniVer": "x",
1446
+ * "unixVer": "x"
1447
+ * },
1448
+ * "jd": {
1449
+ * "hostVer": "x",
1450
+ * "uniVer": "x",
1451
+ * "unixVer": "x"
1452
+ * }
1453
+ * }
1454
+ * }
1455
+ */
1456
+ offTimeUpdate(callback: (result: any) => void): void;
1457
+ /**
1458
+ * 取消监听 onWaiting 事件
1459
+ * @uniPlatform {
1460
+ * "app": {
1461
+ * "android": {
1462
+ * "osVer": "5.0",
1463
+ * "uniVer": "x",
1464
+ * "unixVer": "x"
1465
+ * },
1466
+ * "ios": {
1467
+ * "osVer": "12.0",
1468
+ * "uniVer": "x",
1469
+ * "unixVer": "x"
1470
+ * },
1471
+ * "harmony": {
1472
+ * "osVer": "3.0",
1473
+ * "uniVer": "x",
1474
+ * "unixVer": "x"
1475
+ * }
1476
+ * },
1477
+ * "web": {
1478
+ * "uniVer": "√",
1479
+ * "unixVer": "x"
1480
+ * }
1481
+ * "mp":{
1482
+ * "weixin": {
1483
+ * "hostVer": "1.9.0",
1484
+ * "uniVer": "√",
1485
+ * "unixVer": "x"
1486
+ * },
1487
+ * "alipay": {
1488
+ * "hostVer": "√",
1489
+ * "uniVer": "√",
1490
+ * "unixVer": "x"
1491
+ * },
1492
+ * "baidu": {
1493
+ * "hostVer": "√",
1494
+ * "uniVer": "√",
1495
+ * "unixVer": "x"
1496
+ * },
1497
+ * "toutiao": {
1498
+ * "hostVer": "√",
1499
+ * "uniVer": "√",
1500
+ * "unixVer": "x"
1501
+ * },
1502
+ * "lark": {
1503
+ * "hostVer": "x",
1504
+ * "uniVer": "x",
1505
+ * "unixVer": "x"
1506
+ * },
1507
+ * "qq": {
1508
+ * "hostVer": "x",
1509
+ * "uniVer": "x",
1510
+ * "unixVer": "x"
1511
+ * },
1512
+ * "kuaishou": {
1513
+ * "hostVer": "x",
1514
+ * "uniVer": "x",
1515
+ * "unixVer": "x"
1516
+ * },
1517
+ * "jd": {
1518
+ * "hostVer": "x",
1519
+ * "uniVer": "x",
1520
+ * "unixVer": "x"
1521
+ * }
1522
+ * }
1523
+ * }
1524
+ */
1525
+ offError(callback: (result: any) => void): void;
1526
+ /**
1527
+ * 取消监听 onWaiting 事件
1528
+ * @uniPlatform {
1529
+ * "app": {
1530
+ * "android": {
1531
+ * "osVer": "5.0",
1532
+ * "uniVer": "x",
1533
+ * "unixVer": "x"
1534
+ * },
1535
+ * "ios": {
1536
+ * "osVer": "12.0",
1537
+ * "uniVer": "x",
1538
+ * "unixVer": "x"
1539
+ * },
1540
+ * "harmony": {
1541
+ * "osVer": "3.0",
1542
+ * "uniVer": "x",
1543
+ * "unixVer": "x"
1544
+ * }
1545
+ * },
1546
+ * "web": {
1547
+ * "uniVer": "√",
1548
+ * "unixVer": "x"
1549
+ * }
1550
+ * "mp":{
1551
+ * "weixin": {
1552
+ * "hostVer": "1.9.0",
1553
+ * "uniVer": "√",
1554
+ * "unixVer": "x"
1555
+ * },
1556
+ * "alipay": {
1557
+ * "hostVer": "√",
1558
+ * "uniVer": "√",
1559
+ * "unixVer": "x"
1560
+ * },
1561
+ * "baidu": {
1562
+ * "hostVer": "√",
1563
+ * "uniVer": "√",
1564
+ * "unixVer": "x"
1565
+ * },
1566
+ * "toutiao": {
1567
+ * "hostVer": "√",
1568
+ * "uniVer": "√",
1569
+ * "unixVer": "x"
1570
+ * },
1571
+ * "lark": {
1572
+ * "hostVer": "x",
1573
+ * "uniVer": "x",
1574
+ * "unixVer": "x"
1575
+ * },
1576
+ * "qq": {
1577
+ * "hostVer": "x",
1578
+ * "uniVer": "x",
1579
+ * "unixVer": "x"
1580
+ * },
1581
+ * "kuaishou": {
1582
+ * "hostVer": "x",
1583
+ * "uniVer": "x",
1584
+ * "unixVer": "x"
1585
+ * },
1586
+ * "jd": {
1587
+ * "hostVer": "x",
1588
+ * "uniVer": "x",
1589
+ * "unixVer": "x"
1590
+ * }
1591
+ * }
1592
+ * }
1593
+ */
1594
+ offWaiting(callback: (result: any) => void): void;
1595
+ /**
1596
+ * 取消监听 onSeeking 事件
1597
+ * @uniPlatform {
1598
+ * "app": {
1599
+ * "android": {
1600
+ * "osVer": "5.0",
1601
+ * "uniVer": "x",
1602
+ * "unixVer": "x"
1603
+ * },
1604
+ * "ios": {
1605
+ * "osVer": "12.0",
1606
+ * "uniVer": "x",
1607
+ * "unixVer": "x"
1608
+ * },
1609
+ * "harmony": {
1610
+ * "osVer": "3.0",
1611
+ * "uniVer": "x",
1612
+ * "unixVer": "x"
1613
+ * }
1614
+ * },
1615
+ * "web": {
1616
+ * "uniVer": "√",
1617
+ * "unixVer": "x"
1618
+ * }
1619
+ * "mp":{
1620
+ * "weixin": {
1621
+ * "hostVer": "1.9.0",
1622
+ * "uniVer": "√",
1623
+ * "unixVer": "x"
1624
+ * },
1625
+ * "alipay": {
1626
+ * "hostVer": "√",
1627
+ * "uniVer": "√",
1628
+ * "unixVer": "x"
1629
+ * },
1630
+ * "baidu": {
1631
+ * "hostVer": "√",
1632
+ * "uniVer": "√",
1633
+ * "unixVer": "x"
1634
+ * },
1635
+ * "toutiao": {
1636
+ * "hostVer": "√",
1637
+ * "uniVer": "√",
1638
+ * "unixVer": "x"
1639
+ * },
1640
+ * "lark": {
1641
+ * "hostVer": "x",
1642
+ * "uniVer": "x",
1643
+ * "unixVer": "x"
1644
+ * },
1645
+ * "qq": {
1646
+ * "hostVer": "x",
1647
+ * "uniVer": "x",
1648
+ * "unixVer": "x"
1649
+ * },
1650
+ * "kuaishou": {
1651
+ * "hostVer": "x",
1652
+ * "uniVer": "x",
1653
+ * "unixVer": "x"
1654
+ * },
1655
+ * "jd": {
1656
+ * "hostVer": "x",
1657
+ * "uniVer": "x",
1658
+ * "unixVer": "x"
1659
+ * }
1660
+ * }
1661
+ * }
1662
+ */
1663
+ offSeeking(callback: (result: any) => void): void;
1664
+ /**
1665
+ * 取消监听 onSeeked 事件
1666
+ * @uniPlatform {
1667
+ * "app": {
1668
+ * "android": {
1669
+ * "osVer": "5.0",
1670
+ * "uniVer": "x",
1671
+ * "unixVer": "x"
1672
+ * },
1673
+ * "ios": {
1674
+ * "osVer": "12.0",
1675
+ * "uniVer": "x",
1676
+ * "unixVer": "x"
1677
+ * },
1678
+ * "harmony": {
1679
+ * "osVer": "3.0",
1680
+ * "uniVer": "x",
1681
+ * "unixVer": "x"
1682
+ * }
1683
+ * },
1684
+ * "web": {
1685
+ * "uniVer": "√",
1686
+ * "unixVer": "x"
1687
+ * }
1688
+ * "mp":{
1689
+ * "weixin": {
1690
+ * "hostVer": "1.9.0",
1691
+ * "uniVer": "√",
1692
+ * "unixVer": "x"
1693
+ * },
1694
+ * "alipay": {
1695
+ * "hostVer": "√",
1696
+ * "uniVer": "√",
1697
+ * "unixVer": "x"
1698
+ * },
1699
+ * "baidu": {
1700
+ * "hostVer": "√",
1701
+ * "uniVer": "√",
1702
+ * "unixVer": "x"
1703
+ * },
1704
+ * "toutiao": {
1705
+ * "hostVer": "√",
1706
+ * "uniVer": "√",
1707
+ * "unixVer": "x"
1708
+ * },
1709
+ * "lark": {
1710
+ * "hostVer": "x",
1711
+ * "uniVer": "x",
1712
+ * "unixVer": "x"
1713
+ * },
1714
+ * "qq": {
1715
+ * "hostVer": "x",
1716
+ * "uniVer": "x",
1717
+ * "unixVer": "x"
1718
+ * },
1719
+ * "kuaishou": {
1720
+ * "hostVer": "x",
1721
+ * "uniVer": "x",
1722
+ * "unixVer": "x"
1723
+ * },
1724
+ * "jd": {
1725
+ * "hostVer": "x",
1726
+ * "uniVer": "x",
1727
+ * "unixVer": "x"
1728
+ * }
1729
+ * }
1730
+ * }
1731
+ */
1732
+ offSeeked(callback: (result: any) => void): void;
1733
+ }