@dcloudio/uni-app-x 0.7.111 → 0.7.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/package.json +1 -1
  2. package/types/dom2-internal/UniNativeView.d.ts +1 -0
  3. package/types/dom2-internal/UniPage.d.ts +16 -0
  4. package/types/dom2-internal/sharedData.d.ts +9 -14
  5. package/types/native/CSSStyleDeclaration.d.ts +172 -172
  6. package/types/native/CanvasRenderingContext2D.d.ts +4720 -4720
  7. package/types/native/DrawableContext.d.ts +1893 -1893
  8. package/types/native/IUniElement.d.ts +7468 -7461
  9. package/types/native/IUniNativeViewElement.d.ts +327 -327
  10. package/types/native/SnapshotOptions.d.ts +337 -62
  11. package/types/native/UniPage.d.ts +1305 -1305
  12. package/types/native/UniResizeObserver.d.ts +749 -749
  13. package/types/native/UniSwiperAnimationFinishEvent.d.ts +59 -59
  14. package/types/native/UniSwiperChangeEvent.d.ts +58 -58
  15. package/types/page.d.ts +3154 -3112
  16. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  17. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1672 -911
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +126 -126
  20. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +14 -14
  21. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +154 -154
  22. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +14 -14
  23. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/global.d.ts +55 -0
  24. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/index.d.ts +27 -0
  25. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/interface.d.ts +1155 -0
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +9 -6
  27. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +5 -3
  28. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +978 -972
  29. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/global.d.ts +25 -0
  30. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/index.d.ts +12 -0
  31. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -0
  32. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +358 -358
  33. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +8 -8
  34. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +78 -78
  35. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +490 -479
  36. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -214
  37. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +126 -126
  38. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +30 -30
  39. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +39 -0
  40. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +19 -0
  41. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +856 -0
  42. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  43. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +147 -147
  44. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +397 -397
  45. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +6363 -6359
  46. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +554 -554
  47. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2149 -2149
  48. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1340 -1340
  49. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1707 -1707
  50. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +307 -307
  51. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +310 -310
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +5 -5
  53. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +129 -129
  54. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +757 -757
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +5881 -5879
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +442 -442
  57. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/global.d.ts +9 -0
  58. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/index.d.ts +5 -0
  59. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/interface.d.ts +0 -0
  60. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +171 -171
  61. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
  62. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +536 -536
  63. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +2914 -2910
  64. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +24 -24
  65. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +208 -208
  66. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +785 -785
  67. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4243 -4243
  68. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1979 -1963
  69. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +5 -3
  70. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +229 -229
  71. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +753 -753
  72. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +84 -84
  73. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +790 -788
  74. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +447 -447
  75. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +498 -498
  76. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1552 -1548
  77. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +58 -58
  78. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +30 -30
  79. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2513 -2513
  80. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +81 -81
  81. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +351 -351
  82. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +107 -107
  83. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +584 -584
  84. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -722
  85. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +292 -292
  86. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +358 -358
  87. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +657 -657
  88. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/global.d.ts +9 -0
  89. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/index.d.ts +5 -0
  90. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/interface.d.ts +0 -0
  91. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1010 -1010
  92. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/global.d.ts +47 -0
  93. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/index.d.ts +23 -0
  94. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/interface.d.ts +926 -0
  95. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/global.d.ts +29 -0
  96. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/index.d.ts +14 -0
  97. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/interface.d.ts +452 -0
  98. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1442 -1442
  99. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +220 -220
  100. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +65 -65
  101. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +981 -981
  102. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
  103. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +1155 -0
  104. package/types/uni/uts-plugin-component/.temp/uni-camera.d.ts +38 -0
  105. package/types/uni/uts-plugin-component/.temp/uni-camera.ts +52 -0
  106. package/types/uni/uts-plugin-component/.temp/uni-canvas/utssdk/interface.uts +976 -0
  107. package/types/uni/uts-plugin-component/.temp/uni-canvas-dom2/utssdk/interface.uts +976 -0
  108. package/types/uni/uts-plugin-component/.temp/uni-editor.d.ts +171 -0
  109. package/types/uni/uts-plugin-component/.temp/uni-editor.ts +237 -0
  110. package/types/uni/uts-plugin-component/.temp/uni-form.d.ts +2 -0
  111. package/types/uni/uts-plugin-component/.temp/uni-form.ts +1 -0
  112. package/types/uni/uts-plugin-component/.temp/uni-input/utssdk/interface.uts +0 -0
  113. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.d.ts +56 -0
  114. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.ts +88 -0
  115. package/types/uni/uts-plugin-component/.temp/uni-match-media.d.ts +2 -0
  116. package/types/uni/uts-plugin-component/.temp/uni-match-media.ts +2 -0
  117. package/types/uni/uts-plugin-component/.temp/uni-navigator.d.ts +2 -0
  118. package/types/uni/uts-plugin-component/.temp/uni-navigator.ts +1 -0
  119. package/types/uni/uts-plugin-component/.temp/uni-page-container.d.ts +0 -0
  120. package/types/uni/uts-plugin-component/.temp/uni-page-container.ts +2 -0
  121. package/types/uni/uts-plugin-component/.temp/uni-progress.d.ts +2 -0
  122. package/types/uni/uts-plugin-component/.temp/uni-progress.ts +1 -0
  123. package/types/uni/uts-plugin-component/.temp/uni-rich-text.d.ts +7 -0
  124. package/types/uni/uts-plugin-component/.temp/uni-rich-text.ts +12 -0
  125. package/types/uni/uts-plugin-component/.temp/uni-textarea/utssdk/interface.uts +0 -0
  126. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +936 -0
  127. package/types/uni/uts-plugin-component/.temp/uni-video.d.ts +134 -0
  128. package/types/uni/uts-plugin-component/.temp/uni-video.ts +180 -0
  129. package/types/uni/uts-plugin-component/.temp/uni-web-view/utssdk/interface.uts +452 -0
  130. package/types/uni/uts-plugin-component/.temp/uni-web-view.d.ts +51 -0
  131. package/types/uni/uts-plugin-component/.temp/uni-web-view.ts +86 -0
  132. package/types/uni/uts-plugin-component/global.d.ts +79 -0
  133. package/types/uni/uts-plugin-component/index.d.ts +79 -0
  134. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/global.d.ts +29 -0
  135. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/index.d.ts +14 -0
  136. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/interface.d.ts +1673 -0
  137. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/global.d.ts +25 -0
  138. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  139. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/interface.d.ts +226 -0
  140. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +11 -0
  141. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +5 -0
  142. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +79 -0
  143. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/global.d.ts +59 -0
  144. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/index.d.ts +29 -0
  145. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  146. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/global.d.ts +9 -0
  147. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/index.d.ts +5 -0
  148. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  149. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +11 -0
  150. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +5 -0
  151. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +79 -0
  152. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +978 -976
  153. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -976
  154. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/global.d.ts +25 -0
  155. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/index.d.ts +12 -0
  156. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/interface.d.ts +423 -0
  157. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/global.d.ts +33 -0
  158. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/index.d.ts +16 -0
  159. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/interface.d.ts +499 -0
  160. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/global.d.ts +45 -0
  161. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/index.d.ts +22 -0
  162. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/interface.d.ts +217 -0
  163. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/global.d.ts +33 -0
  164. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/index.d.ts +16 -0
  165. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +3379 -0
  166. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/global.d.ts +21 -0
  167. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/index.d.ts +10 -0
  168. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +153 -0
  169. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +19 -0
  170. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +9 -0
  171. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -0
  172. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/global.d.ts +21 -0
  173. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/index.d.ts +10 -0
  174. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/interface.d.ts +560 -0
  175. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/global.d.ts +15 -0
  176. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/index.d.ts +7 -0
  177. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -0
  178. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/global.d.ts +23 -0
  179. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/index.d.ts +11 -0
  180. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/interface.d.ts +158 -0
  181. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +29 -0
  182. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +14 -0
  183. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +2304 -0
  184. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +39 -0
  185. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +19 -0
  186. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +856 -0
  187. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/global.d.ts +25 -0
  188. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/index.d.ts +13 -0
  189. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +181 -0
  190. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/global.d.ts +17 -0
  191. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/index.d.ts +8 -0
  192. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/interface.d.ts +338 -0
  193. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/global.d.ts +27 -0
  194. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/index.d.ts +13 -0
  195. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/interface.d.ts +147 -0
  196. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/global.d.ts +81 -0
  197. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/index.d.ts +40 -0
  198. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/interface.d.ts +397 -0
  199. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/global.d.ts +151 -0
  200. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -0
  201. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/interface.d.ts +6428 -0
  202. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +11 -0
  203. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +5 -0
  204. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +37 -0
  205. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +13 -0
  206. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +6 -0
  207. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +620 -0
  208. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/global.d.ts +15 -0
  209. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/index.d.ts +7 -0
  210. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2220 -0
  211. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +17 -0
  212. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +8 -0
  213. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1406 -0
  214. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/global.d.ts +15 -0
  215. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/index.d.ts +7 -0
  216. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1774 -0
  217. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/global.d.ts +11 -0
  218. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/index.d.ts +5 -0
  219. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +82 -0
  220. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +13 -0
  221. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +6 -0
  222. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +374 -0
  223. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +13 -0
  224. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +6 -0
  225. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +377 -0
  226. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +21 -0
  227. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +11 -0
  228. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -0
  229. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/global.d.ts +33 -0
  230. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/index.d.ts +16 -0
  231. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/interface.d.ts +420 -0
  232. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/global.d.ts +23 -0
  233. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/index.d.ts +11 -0
  234. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/interface.d.ts +199 -0
  235. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/global.d.ts +37 -0
  236. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/index.d.ts +18 -0
  237. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/interface.d.ts +757 -0
  238. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/global.d.ts +33 -0
  239. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/index.d.ts +16 -0
  240. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/interface.d.ts +6084 -0
  241. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/global.d.ts +13 -0
  242. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/index.d.ts +6 -0
  243. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/interface.d.ts +508 -0
  244. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/global.d.ts +25 -0
  245. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/index.d.ts +12 -0
  246. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/interface.d.ts +125 -0
  247. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/global.d.ts +17 -0
  248. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/index.d.ts +8 -0
  249. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/interface.d.ts +171 -0
  250. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/global.d.ts +45 -0
  251. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/index.d.ts +22 -0
  252. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +234 -0
  253. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/global.d.ts +29 -0
  254. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/index.d.ts +14 -0
  255. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/interface.d.ts +603 -0
  256. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/global.d.ts +61 -0
  257. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/index.d.ts +30 -0
  258. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/interface.d.ts +3443 -0
  259. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/global.d.ts +9 -0
  260. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/index.d.ts +5 -0
  261. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/interface.d.ts +3 -0
  262. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/global.d.ts +9 -0
  263. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
  264. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/interface.d.ts +3 -0
  265. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/global.d.ts +29 -0
  266. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/index.d.ts +14 -0
  267. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +386 -0
  268. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/global.d.ts +157 -0
  269. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/index.d.ts +78 -0
  270. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/interface.d.ts +5245 -0
  271. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +43 -0
  272. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +21 -0
  273. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +291 -0
  274. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/global.d.ts +69 -0
  275. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/index.d.ts +34 -0
  276. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/interface.d.ts +1047 -0
  277. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/global.d.ts +109 -0
  278. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/index.d.ts +54 -0
  279. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/interface.d.ts +4462 -0
  280. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/global.d.ts +71 -0
  281. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/index.d.ts +35 -0
  282. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +2142 -0
  283. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/global.d.ts +9 -0
  284. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/index.d.ts +5 -0
  285. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
  286. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/global.d.ts +17 -0
  287. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/index.d.ts +9 -0
  288. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/interface.d.ts +48 -0
  289. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +25 -0
  290. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +12 -0
  291. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +256 -0
  292. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/global.d.ts +29 -0
  293. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/index.d.ts +14 -0
  294. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/interface.d.ts +823 -0
  295. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/global.d.ts +27 -0
  296. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/index.d.ts +13 -0
  297. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +155 -0
  298. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/global.d.ts +33 -0
  299. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/index.d.ts +16 -0
  300. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/interface.d.ts +856 -0
  301. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/global.d.ts +9 -0
  302. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/index.d.ts +5 -0
  303. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/interface.d.ts +3 -0
  304. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/global.d.ts +9 -0
  305. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/index.d.ts +5 -0
  306. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  307. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/global.d.ts +9 -0
  308. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/index.d.ts +5 -0
  309. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/interface.d.ts +5 -0
  310. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/global.d.ts +19 -0
  311. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/index.d.ts +10 -0
  312. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/interface.d.ts +26 -0
  313. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/global.d.ts +47 -0
  314. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/index.d.ts +23 -0
  315. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/interface.d.ts +520 -0
  316. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +31 -0
  317. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +15 -0
  318. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +568 -0
  319. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/global.d.ts +33 -0
  320. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/index.d.ts +16 -0
  321. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/interface.d.ts +1693 -0
  322. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/global.d.ts +29 -0
  323. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/index.d.ts +14 -0
  324. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/interface.d.ts +191 -0
  325. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/global.d.ts +21 -0
  326. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/index.d.ts +10 -0
  327. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/interface.d.ts +2999 -0
  328. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +21 -0
  329. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +10 -0
  330. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +713 -0
  331. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/global.d.ts +59 -0
  332. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/index.d.ts +29 -0
  333. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/interface.d.ts +2731 -0
  334. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/global.d.ts +11 -0
  335. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/index.d.ts +5 -0
  336. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/interface.d.ts +81 -0
  337. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/global.d.ts +25 -0
  338. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/index.d.ts +12 -0
  339. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/interface.d.ts +429 -0
  340. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  341. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  342. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +314 -0
  343. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +41 -0
  344. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +20 -0
  345. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +584 -0
  346. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/global.d.ts +9 -0
  347. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/index.d.ts +5 -0
  348. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +3 -0
  349. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/global.d.ts +27 -0
  350. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/index.d.ts +13 -0
  351. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -0
  352. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +47 -0
  353. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +23 -0
  354. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +446 -0
  355. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/global.d.ts +21 -0
  356. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/index.d.ts +10 -0
  357. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/interface.d.ts +330 -0
  358. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/global.d.ts +79 -0
  359. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/index.d.ts +39 -0
  360. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/interface.d.ts +1030 -0
  361. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/global.d.ts +149 -0
  362. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/index.d.ts +74 -0
  363. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/interface.d.ts +1221 -0
  364. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/global.d.ts +53 -0
  365. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/index.d.ts +26 -0
  366. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/interface.d.ts +1141 -0
  367. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +0 -22
  368. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +0 -11
  369. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +862 -872
  370. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +4 -14
  371. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +2 -7
  372. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +14 -51
  373. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/global.d.ts +113 -0
  374. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/index.d.ts +56 -0
  375. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/interface.d.ts +1661 -0
  376. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +17 -17
  377. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/global.d.ts +59 -0
  378. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/index.d.ts +29 -0
  379. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/interface.d.ts +1939 -0
  380. package/types/vue/LifeCycle.d.ts +865 -854
@@ -1,536 +1,536 @@
1
- export interface Uni {
2
- /**
3
- * 开启监听系统主题变化
4
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onosthemechange
5
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onosthemechange
6
- * @uniPlatform
7
- {
8
- "app": {
9
- "android": {
10
- "osVer": "5.0",
11
- "uniVer": "x",
12
- "uniUtsPlugin": "x",
13
- "unixVer": "4.18"
14
- },
15
- "ios": {
16
- "osVer": "12.0",
17
- "uniVer": "x",
18
- "uniUtsPlugin": "x",
19
- "unixVer": "4.18",
20
- "unixUtsPlugin": "4.18"
21
- },
22
- "harmony": {
23
- "osVer": "5.0.0",
24
- "uniVer": "4.71",
25
- "unixVer": "4.71",
26
- "unixvVer": "5.0"
27
- }
28
- },
29
- "mp": {
30
- "weixin": {
31
- "hostVer": "x",
32
- "uniVer": "x",
33
- "unixVer": "x"
34
- },
35
- "alipay": {
36
- "hostVer": "x",
37
- "uniVer": "x",
38
- "unixVer": "x"
39
- },
40
- "baidu": {
41
- "hostVer": "x",
42
- "uniVer": "x",
43
- "unixVer": "x"
44
- },
45
- "toutiao": {
46
- "hostVer": "x",
47
- "uniVer": "x",
48
- "unixVer": "x"
49
- },
50
- "lark": {
51
- "hostVer": "x",
52
- "uniVer": "x",
53
- "unixVer": "x"
54
- },
55
- "qq": {
56
- "hostVer": "x",
57
- "uniVer": "x",
58
- "unixVer": "x"
59
- },
60
- "kuaishou": {
61
- "hostVer": "x",
62
- "uniVer": "x",
63
- "unixVer": "x"
64
- },
65
- "jd": {
66
- "hostVer": "x",
67
- "uniVer": "x",
68
- "unixVer": "x"
69
- }
70
- },
71
- "web": {
72
- "uniVer": "x",
73
- "unixVer": "x"
74
- }
75
- }
76
- * @example
77
- ```typescript
78
- const id = uni.onOsThemeChange((res) => {
79
- console.log(res.osTheme)
80
- })
81
- ```
82
- */
83
- onOsThemeChange(callback: OnOsThemeChangeCallback): number
84
-
85
- /**
86
- * 取消监听系统主题变化
87
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offosthemechange
88
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offosthemechange
89
- * @uniPlatform
90
- {
91
- "app": {
92
- "android": {
93
- "osVer": "5.0",
94
- "uniVer": "x",
95
- "uniUtsPlugin": "x",
96
- "unixVer": "4.18"
97
- },
98
- "ios": {
99
- "osVer": "12.0",
100
- "uniVer": "x",
101
- "uniUtsPlugin": "x",
102
- "unixVer": "4.18",
103
- "unixUtsPlugin": "4.18"
104
- },
105
- "harmony": {
106
- "osVer": "5.0.0",
107
- "uniVer": "4.71",
108
- "unixVer": "4.71",
109
- "unixvVer": "5.0"
110
- }
111
- },
112
- "mp": {
113
- "weixin": {
114
- "hostVer": "x",
115
- "uniVer": "x",
116
- "unixVer": "x"
117
- },
118
- "alipay": {
119
- "hostVer": "x",
120
- "uniVer": "x",
121
- "unixVer": "x"
122
- },
123
- "baidu": {
124
- "hostVer": "x",
125
- "uniVer": "x",
126
- "unixVer": "x"
127
- },
128
- "toutiao": {
129
- "hostVer": "x",
130
- "uniVer": "x",
131
- "unixVer": "x"
132
- },
133
- "lark": {
134
- "hostVer": "x",
135
- "uniVer": "x",
136
- "unixVer": "x"
137
- },
138
- "qq": {
139
- "hostVer": "x",
140
- "uniVer": "x",
141
- "unixVer": "x"
142
- },
143
- "kuaishou": {
144
- "hostVer": "x",
145
- "uniVer": "x",
146
- "unixVer": "x"
147
- },
148
- "jd": {
149
- "hostVer": "x",
150
- "uniVer": "x",
151
- "unixVer": "x"
152
- }
153
- },
154
- "web": {
155
- "uniVer": "x",
156
- "unixVer": "x"
157
- }
158
- }
159
- * @example
160
- ```typescript
161
- uni.offOsThemeChange(id)
162
- ```
163
- */
164
- offOsThemeChange(id: number): void
165
-
166
- /**
167
- * 设置应用主题
168
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#setapptheme
169
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#setapptheme
170
- * @uniPlatform
171
- {
172
- "app": {
173
- "android": {
174
- "osVer": "5.0",
175
- "uniVer": "x",
176
- "uniUtsPlugin": "x",
177
- "unixVer": "4.18"
178
- },
179
- "ios": {
180
- "osVer": "12.0",
181
- "uniVer": "x",
182
- "uniUtsPlugin": "x",
183
- "unixVer": "4.18",
184
- "unixUtsPlugin": "4.18"
185
- },
186
- "harmony": {
187
- "osVer": "5.0.0",
188
- "uniVer": "4.71",
189
- "unixVer": "4.71",
190
- "unixvVer": "5.0"
191
- }
192
- },
193
- "mp": {
194
- "weixin": {
195
- "hostVer": "x",
196
- "uniVer": "x",
197
- "unixVer": "x"
198
- },
199
- "alipay": {
200
- "hostVer": "x",
201
- "uniVer": "x",
202
- "unixVer": "x"
203
- },
204
- "baidu": {
205
- "hostVer": "x",
206
- "uniVer": "x",
207
- "unixVer": "x"
208
- },
209
- "toutiao": {
210
- "hostVer": "x",
211
- "uniVer": "x",
212
- "unixVer": "x"
213
- },
214
- "lark": {
215
- "hostVer": "x",
216
- "uniVer": "x",
217
- "unixVer": "x"
218
- },
219
- "qq": {
220
- "hostVer": "x",
221
- "uniVer": "x",
222
- "unixVer": "x"
223
- },
224
- "kuaishou": {
225
- "hostVer": "x",
226
- "uniVer": "x",
227
- "unixVer": "x"
228
- },
229
- "jd": {
230
- "hostVer": "x",
231
- "uniVer": "x",
232
- "unixVer": "x"
233
- }
234
- },
235
- "web": {
236
- "uniVer": "x",
237
- "unixVer": "x"
238
- }
239
- }
240
- * @example
241
- ```typescript
242
- uni.setAppTheme({
243
- theme: 'dark',
244
- success: (res) => {
245
- console.log('success')
246
- },
247
- fail: (err) => {
248
- console.log(err)
249
- },
250
- complete: (res) => {
251
- console.log('complete')
252
- }
253
- })
254
- ```
255
- */
256
- setAppTheme(options: SetAppThemeOptions): void
257
-
258
- /**
259
- * 开启监听应用主题变化
260
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onappthemechange
261
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onappthemechange
262
- * @uniPlatform
263
- {
264
- "app": {
265
- "android": {
266
- "osVer": "5.0",
267
- "uniVer": "x",
268
- "uniUtsPlugin": "x",
269
- "unixVer": "4.18"
270
- },
271
- "ios": {
272
- "osVer": "12.0",
273
- "uniVer": "x",
274
- "uniUtsPlugin": "x",
275
- "unixVer": "4.18",
276
- "unixUtsPlugin": "4.18"
277
- },
278
- "harmony": {
279
- "osVer": "5.0.0",
280
- "uniVer": "4.71",
281
- "unixVer": "4.71",
282
- "unixvVer": "5.0"
283
- }
284
- },
285
- "mp": {
286
- "weixin": {
287
- "hostVer": "x",
288
- "uniVer": "x",
289
- "unixVer": "x"
290
- },
291
- "alipay": {
292
- "hostVer": "x",
293
- "uniVer": "x",
294
- "unixVer": "x"
295
- },
296
- "baidu": {
297
- "hostVer": "x",
298
- "uniVer": "x",
299
- "unixVer": "x"
300
- },
301
- "toutiao": {
302
- "hostVer": "x",
303
- "uniVer": "x",
304
- "unixVer": "x"
305
- },
306
- "lark": {
307
- "hostVer": "x",
308
- "uniVer": "x",
309
- "unixVer": "x"
310
- },
311
- "qq": {
312
- "hostVer": "x",
313
- "uniVer": "x",
314
- "unixVer": "x"
315
- },
316
- "kuaishou": {
317
- "hostVer": "x",
318
- "uniVer": "x",
319
- "unixVer": "x"
320
- },
321
- "jd": {
322
- "hostVer": "x",
323
- "uniVer": "x",
324
- "unixVer": "x"
325
- }
326
- },
327
- "web": {
328
- "uniVer": "x",
329
- "unixVer": "x"
330
- }
331
- }
332
- * @example
333
- ```typescript
334
- const id = uni.onAppThemeChange((res) => {
335
- console.log(res.appTheme)
336
- })
337
- ```
338
- */
339
- onAppThemeChange(callback: OnAppThemeChangeCallback): number
340
-
341
- /**
342
- * 取消监听应用主题变化
343
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offappthemechange
344
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offappthemechange
345
- * @uniPlatform
346
- {
347
- "app": {
348
- "android": {
349
- "osVer": "5.0",
350
- "uniVer": "x",
351
- "uniUtsPlugin": "x",
352
- "unixVer": "4.18"
353
- },
354
- "ios": {
355
- "osVer": "12.0",
356
- "uniVer": "x",
357
- "uniUtsPlugin": "x",
358
- "unixVer": "4.18",
359
- "unixUtsPlugin": "4.18"
360
- },
361
- "harmony": {
362
- "osVer": "5.0.0",
363
- "uniVer": "4.71",
364
- "unixVer": "4.71",
365
- "unixvVer": "5.0"
366
- }
367
- },
368
- "web": {
369
- "uniVer": "x",
370
- "unixVer": "x"
371
- }
372
- }
373
- * @example
374
- ```typescript
375
- uni.offAppThemeChange(id)
376
- ```
377
- */
378
- offAppThemeChange(id: number): void
379
-
380
- /**
381
- * 监听宿主题状态变化。
382
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#onhostthemechange
383
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#onhostthemechange
384
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#onhostthemechange
385
- * @uniPlatform {
386
- * "app": {
387
- * "android": {
388
- * "osVer": "5.0",
389
- * "uniVer": "x",
390
- * "unixVer": "x"
391
- * },
392
- * "ios": {
393
- * "osVer": "9.0",
394
- * "uniVer": "x",
395
- * "unixVer": "x"
396
- * },
397
- * "harmony": {
398
- "osVer": "5.0.0",
399
- "uniVer": "4.71",
400
- "unixVer": "4.71",
401
- "unixvVer": "5.0"
402
- * }
403
- * },
404
- * "mp": {
405
- * "weixin": {
406
- * "hostVer": "√",
407
- * "uniVer": "x",
408
- * "unixVer": "4.41"
409
- * },
410
- * "alipay": {
411
- * "hostVer": "x",
412
- * "uniVer": "x",
413
- * "unixVer": "x"
414
- * },
415
- * "baidu": {
416
- * "hostVer": "x",
417
- * "uniVer": "x",
418
- * "unixVer": "x"
419
- * },
420
- * "toutiao": {
421
- * "hostVer": "x",
422
- * "uniVer": "x",
423
- * "unixVer": "x"
424
- * },
425
- * "lark": {
426
- * "hostVer": "x",
427
- * "uniVer": "x",
428
- * "unixVer": "x"
429
- * },
430
- * "qq": {
431
- * "hostVer": "x",
432
- * "uniVer": "x",
433
- * "unixVer": "x"
434
- * },
435
- * "kuaishou": {
436
- * "hostVer": "x",
437
- * "uniVer": "x",
438
- * "unixVer": "x"
439
- * },
440
- * "jd": {
441
- * "hostVer": "x",
442
- * "uniVer": "x",
443
- * "unixVer": "x"
444
- * }
445
- * },
446
- * "web": {
447
- * "uniVer": "x",
448
- * "unixVer": "4.35"
449
- * }
450
- * }
451
- */
452
- onHostThemeChange(callback: OnHostThemeChangeCallback): number;
453
-
454
- /**
455
- * 取消监听宿主题状态变化。
456
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offhostthemechange
457
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#offhostthemechange
458
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#offhostthemechange
459
- * @uniPlatform {
460
- * "app": {
461
- * "android": {
462
- * "osVer": "5.0",
463
- * "uniVer": "x",
464
- * "unixVer": "x"
465
- * },
466
- * "ios": {
467
- * "osVer": "9.0",
468
- * "uniVer": "x",
469
- * "unixVer": "x"
470
- * },
471
- * "harmony": {
472
- "osVer": "5.0.0",
473
- "uniVer": "4.71",
474
- "unixVer": "4.71",
475
- "unixvVer": "5.0"
476
- * }
477
- * },
478
- * "mp": {
479
- * "weixin": {
480
- * "hostVer": "x",
481
- * "uniVer": "x",
482
- * "unixVer": "4.41"
483
- * },
484
- * "alipay": {
485
- * "hostVer": "x",
486
- * "uniVer": "x",
487
- * "unixVer": "x"
488
- * },
489
- * "baidu": {
490
- * "hostVer": "x",
491
- * "uniVer": "x",
492
- * "unixVer": "x"
493
- * },
494
- * "toutiao": {
495
- * "hostVer": "x",
496
- * "uniVer": "x",
497
- * "unixVer": "x"
498
- * },
499
- * "lark": {
500
- * "hostVer": "x",
501
- * "uniVer": "x",
502
- * "unixVer": "x"
503
- * },
504
- * "qq": {
505
- * "hostVer": "x",
506
- * "uniVer": "x",
507
- * "unixVer": "x"
508
- * },
509
- * "kuaishou": {
510
- * "hostVer": "x",
511
- * "uniVer": "x",
512
- * "unixVer": "x"
513
- * },
514
- * "jd": {
515
- * "hostVer": "x",
516
- * "uniVer": "x",
517
- * "unixVer": "x"
518
- * }
519
- * },
520
- * "web": {
521
- * "uniVer": "x",
522
- * "unixVer": "4.35"
523
- * }
524
- * }
525
- */
526
- offHostThemeChange(id: number): void;
527
-
528
- /**
529
- * 监听系统主题状态变化。
530
- * @deprecated 已废弃,在web、小程序上推荐使用 onHostThemeChange
531
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#onthemechange
532
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#onthemechange
533
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#onthemechange
1
+ export interface Uni {
2
+ /**
3
+ * 开启监听系统主题变化
4
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onosthemechange
5
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onosthemechange
6
+ * @uniPlatform
7
+ {
8
+ "app": {
9
+ "android": {
10
+ "osVer": "5.0",
11
+ "uniVer": "x",
12
+ "uniUtsPlugin": "x",
13
+ "unixVer": "4.18"
14
+ },
15
+ "ios": {
16
+ "osVer": "12.0",
17
+ "uniVer": "x",
18
+ "uniUtsPlugin": "x",
19
+ "unixVer": "4.18",
20
+ "unixUtsPlugin": "4.18"
21
+ },
22
+ "harmony": {
23
+ "osVer": "5.0.0",
24
+ "uniVer": "4.71",
25
+ "unixVer": "4.71",
26
+ "unixVaporVer": "5.0"
27
+ }
28
+ },
29
+ "mp": {
30
+ "weixin": {
31
+ "hostVer": "x",
32
+ "uniVer": "x",
33
+ "unixVer": "x"
34
+ },
35
+ "alipay": {
36
+ "hostVer": "x",
37
+ "uniVer": "x",
38
+ "unixVer": "x"
39
+ },
40
+ "baidu": {
41
+ "hostVer": "x",
42
+ "uniVer": "x",
43
+ "unixVer": "x"
44
+ },
45
+ "toutiao": {
46
+ "hostVer": "x",
47
+ "uniVer": "x",
48
+ "unixVer": "x"
49
+ },
50
+ "lark": {
51
+ "hostVer": "x",
52
+ "uniVer": "x",
53
+ "unixVer": "x"
54
+ },
55
+ "qq": {
56
+ "hostVer": "x",
57
+ "uniVer": "x",
58
+ "unixVer": "x"
59
+ },
60
+ "kuaishou": {
61
+ "hostVer": "x",
62
+ "uniVer": "x",
63
+ "unixVer": "x"
64
+ },
65
+ "jd": {
66
+ "hostVer": "x",
67
+ "uniVer": "x",
68
+ "unixVer": "x"
69
+ }
70
+ },
71
+ "web": {
72
+ "uniVer": "x",
73
+ "unixVer": "x"
74
+ }
75
+ }
76
+ * @example
77
+ ```typescript
78
+ const id = uni.onOsThemeChange((res) => {
79
+ console.log(res.osTheme)
80
+ })
81
+ ```
82
+ */
83
+ onOsThemeChange(callback: OnOsThemeChangeCallback): number
84
+
85
+ /**
86
+ * 取消监听系统主题变化
87
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offosthemechange
88
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offosthemechange
89
+ * @uniPlatform
90
+ {
91
+ "app": {
92
+ "android": {
93
+ "osVer": "5.0",
94
+ "uniVer": "x",
95
+ "uniUtsPlugin": "x",
96
+ "unixVer": "4.18"
97
+ },
98
+ "ios": {
99
+ "osVer": "12.0",
100
+ "uniVer": "x",
101
+ "uniUtsPlugin": "x",
102
+ "unixVer": "4.18",
103
+ "unixUtsPlugin": "4.18"
104
+ },
105
+ "harmony": {
106
+ "osVer": "5.0.0",
107
+ "uniVer": "4.71",
108
+ "unixVer": "4.71",
109
+ "unixVaporVer": "5.0"
110
+ }
111
+ },
112
+ "mp": {
113
+ "weixin": {
114
+ "hostVer": "x",
115
+ "uniVer": "x",
116
+ "unixVer": "x"
117
+ },
118
+ "alipay": {
119
+ "hostVer": "x",
120
+ "uniVer": "x",
121
+ "unixVer": "x"
122
+ },
123
+ "baidu": {
124
+ "hostVer": "x",
125
+ "uniVer": "x",
126
+ "unixVer": "x"
127
+ },
128
+ "toutiao": {
129
+ "hostVer": "x",
130
+ "uniVer": "x",
131
+ "unixVer": "x"
132
+ },
133
+ "lark": {
134
+ "hostVer": "x",
135
+ "uniVer": "x",
136
+ "unixVer": "x"
137
+ },
138
+ "qq": {
139
+ "hostVer": "x",
140
+ "uniVer": "x",
141
+ "unixVer": "x"
142
+ },
143
+ "kuaishou": {
144
+ "hostVer": "x",
145
+ "uniVer": "x",
146
+ "unixVer": "x"
147
+ },
148
+ "jd": {
149
+ "hostVer": "x",
150
+ "uniVer": "x",
151
+ "unixVer": "x"
152
+ }
153
+ },
154
+ "web": {
155
+ "uniVer": "x",
156
+ "unixVer": "x"
157
+ }
158
+ }
159
+ * @example
160
+ ```typescript
161
+ uni.offOsThemeChange(id)
162
+ ```
163
+ */
164
+ offOsThemeChange(id: number): void
165
+
166
+ /**
167
+ * 设置应用主题
168
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#setapptheme
169
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#setapptheme
170
+ * @uniPlatform
171
+ {
172
+ "app": {
173
+ "android": {
174
+ "osVer": "5.0",
175
+ "uniVer": "x",
176
+ "uniUtsPlugin": "x",
177
+ "unixVer": "4.18"
178
+ },
179
+ "ios": {
180
+ "osVer": "12.0",
181
+ "uniVer": "x",
182
+ "uniUtsPlugin": "x",
183
+ "unixVer": "4.18",
184
+ "unixUtsPlugin": "4.18"
185
+ },
186
+ "harmony": {
187
+ "osVer": "5.0.0",
188
+ "uniVer": "4.71",
189
+ "unixVer": "4.71",
190
+ "unixVaporVer": "5.0"
191
+ }
192
+ },
193
+ "mp": {
194
+ "weixin": {
195
+ "hostVer": "x",
196
+ "uniVer": "x",
197
+ "unixVer": "x"
198
+ },
199
+ "alipay": {
200
+ "hostVer": "x",
201
+ "uniVer": "x",
202
+ "unixVer": "x"
203
+ },
204
+ "baidu": {
205
+ "hostVer": "x",
206
+ "uniVer": "x",
207
+ "unixVer": "x"
208
+ },
209
+ "toutiao": {
210
+ "hostVer": "x",
211
+ "uniVer": "x",
212
+ "unixVer": "x"
213
+ },
214
+ "lark": {
215
+ "hostVer": "x",
216
+ "uniVer": "x",
217
+ "unixVer": "x"
218
+ },
219
+ "qq": {
220
+ "hostVer": "x",
221
+ "uniVer": "x",
222
+ "unixVer": "x"
223
+ },
224
+ "kuaishou": {
225
+ "hostVer": "x",
226
+ "uniVer": "x",
227
+ "unixVer": "x"
228
+ },
229
+ "jd": {
230
+ "hostVer": "x",
231
+ "uniVer": "x",
232
+ "unixVer": "x"
233
+ }
234
+ },
235
+ "web": {
236
+ "uniVer": "x",
237
+ "unixVer": "x"
238
+ }
239
+ }
240
+ * @example
241
+ ```typescript
242
+ uni.setAppTheme({
243
+ theme: 'dark',
244
+ success: (res) => {
245
+ console.log('success')
246
+ },
247
+ fail: (err) => {
248
+ console.log(err)
249
+ },
250
+ complete: (res) => {
251
+ console.log('complete')
252
+ }
253
+ })
254
+ ```
255
+ */
256
+ setAppTheme(options: SetAppThemeOptions): void
257
+
258
+ /**
259
+ * 开启监听应用主题变化
260
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onappthemechange
261
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onappthemechange
262
+ * @uniPlatform
263
+ {
264
+ "app": {
265
+ "android": {
266
+ "osVer": "5.0",
267
+ "uniVer": "x",
268
+ "uniUtsPlugin": "x",
269
+ "unixVer": "4.18"
270
+ },
271
+ "ios": {
272
+ "osVer": "12.0",
273
+ "uniVer": "x",
274
+ "uniUtsPlugin": "x",
275
+ "unixVer": "4.18",
276
+ "unixUtsPlugin": "4.18"
277
+ },
278
+ "harmony": {
279
+ "osVer": "5.0.0",
280
+ "uniVer": "4.71",
281
+ "unixVer": "4.71",
282
+ "unixVaporVer": "5.0"
283
+ }
284
+ },
285
+ "mp": {
286
+ "weixin": {
287
+ "hostVer": "x",
288
+ "uniVer": "x",
289
+ "unixVer": "x"
290
+ },
291
+ "alipay": {
292
+ "hostVer": "x",
293
+ "uniVer": "x",
294
+ "unixVer": "x"
295
+ },
296
+ "baidu": {
297
+ "hostVer": "x",
298
+ "uniVer": "x",
299
+ "unixVer": "x"
300
+ },
301
+ "toutiao": {
302
+ "hostVer": "x",
303
+ "uniVer": "x",
304
+ "unixVer": "x"
305
+ },
306
+ "lark": {
307
+ "hostVer": "x",
308
+ "uniVer": "x",
309
+ "unixVer": "x"
310
+ },
311
+ "qq": {
312
+ "hostVer": "x",
313
+ "uniVer": "x",
314
+ "unixVer": "x"
315
+ },
316
+ "kuaishou": {
317
+ "hostVer": "x",
318
+ "uniVer": "x",
319
+ "unixVer": "x"
320
+ },
321
+ "jd": {
322
+ "hostVer": "x",
323
+ "uniVer": "x",
324
+ "unixVer": "x"
325
+ }
326
+ },
327
+ "web": {
328
+ "uniVer": "x",
329
+ "unixVer": "x"
330
+ }
331
+ }
332
+ * @example
333
+ ```typescript
334
+ const id = uni.onAppThemeChange((res) => {
335
+ console.log(res.appTheme)
336
+ })
337
+ ```
338
+ */
339
+ onAppThemeChange(callback: OnAppThemeChangeCallback): number
340
+
341
+ /**
342
+ * 取消监听应用主题变化
343
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offappthemechange
344
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offappthemechange
345
+ * @uniPlatform
346
+ {
347
+ "app": {
348
+ "android": {
349
+ "osVer": "5.0",
350
+ "uniVer": "x",
351
+ "uniUtsPlugin": "x",
352
+ "unixVer": "4.18"
353
+ },
354
+ "ios": {
355
+ "osVer": "12.0",
356
+ "uniVer": "x",
357
+ "uniUtsPlugin": "x",
358
+ "unixVer": "4.18",
359
+ "unixUtsPlugin": "4.18"
360
+ },
361
+ "harmony": {
362
+ "osVer": "5.0.0",
363
+ "uniVer": "4.71",
364
+ "unixVer": "4.71",
365
+ "unixVaporVer": "5.0"
366
+ }
367
+ },
368
+ "web": {
369
+ "uniVer": "x",
370
+ "unixVer": "x"
371
+ }
372
+ }
373
+ * @example
374
+ ```typescript
375
+ uni.offAppThemeChange(id)
376
+ ```
377
+ */
378
+ offAppThemeChange(id: number): void
379
+
380
+ /**
381
+ * 监听宿主题状态变化。
382
+ * @tutorial https://uniapp.dcloud.io/api/system/theme.html#onhostthemechange
383
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#onhostthemechange
384
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#onhostthemechange
385
+ * @uniPlatform {
386
+ * "app": {
387
+ * "android": {
388
+ * "osVer": "5.0",
389
+ * "uniVer": "x",
390
+ * "unixVer": "x"
391
+ * },
392
+ * "ios": {
393
+ * "osVer": "9.0",
394
+ * "uniVer": "x",
395
+ * "unixVer": "x"
396
+ * },
397
+ * "harmony": {
398
+ "osVer": "5.0.0",
399
+ "uniVer": "4.71",
400
+ "unixVer": "4.71",
401
+ "unixVaporVer": "5.0"
402
+ * }
403
+ * },
404
+ * "mp": {
405
+ * "weixin": {
406
+ * "hostVer": "√",
407
+ * "uniVer": "x",
408
+ * "unixVer": "4.41"
409
+ * },
410
+ * "alipay": {
411
+ * "hostVer": "x",
412
+ * "uniVer": "x",
413
+ * "unixVer": "x"
414
+ * },
415
+ * "baidu": {
416
+ * "hostVer": "x",
417
+ * "uniVer": "x",
418
+ * "unixVer": "x"
419
+ * },
420
+ * "toutiao": {
421
+ * "hostVer": "x",
422
+ * "uniVer": "x",
423
+ * "unixVer": "x"
424
+ * },
425
+ * "lark": {
426
+ * "hostVer": "x",
427
+ * "uniVer": "x",
428
+ * "unixVer": "x"
429
+ * },
430
+ * "qq": {
431
+ * "hostVer": "x",
432
+ * "uniVer": "x",
433
+ * "unixVer": "x"
434
+ * },
435
+ * "kuaishou": {
436
+ * "hostVer": "x",
437
+ * "uniVer": "x",
438
+ * "unixVer": "x"
439
+ * },
440
+ * "jd": {
441
+ * "hostVer": "x",
442
+ * "uniVer": "x",
443
+ * "unixVer": "x"
444
+ * }
445
+ * },
446
+ * "web": {
447
+ * "uniVer": "x",
448
+ * "unixVer": "4.35"
449
+ * }
450
+ * }
451
+ */
452
+ onHostThemeChange(callback: OnHostThemeChangeCallback): number;
453
+
454
+ /**
455
+ * 取消监听宿主题状态变化。
456
+ * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offhostthemechange
457
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#offhostthemechange
458
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#offhostthemechange
459
+ * @uniPlatform {
460
+ * "app": {
461
+ * "android": {
462
+ * "osVer": "5.0",
463
+ * "uniVer": "x",
464
+ * "unixVer": "x"
465
+ * },
466
+ * "ios": {
467
+ * "osVer": "9.0",
468
+ * "uniVer": "x",
469
+ * "unixVer": "x"
470
+ * },
471
+ * "harmony": {
472
+ "osVer": "5.0.0",
473
+ "uniVer": "4.71",
474
+ "unixVer": "4.71",
475
+ "unixVaporVer": "5.0"
476
+ * }
477
+ * },
478
+ * "mp": {
479
+ * "weixin": {
480
+ * "hostVer": "x",
481
+ * "uniVer": "x",
482
+ * "unixVer": "4.41"
483
+ * },
484
+ * "alipay": {
485
+ * "hostVer": "x",
486
+ * "uniVer": "x",
487
+ * "unixVer": "x"
488
+ * },
489
+ * "baidu": {
490
+ * "hostVer": "x",
491
+ * "uniVer": "x",
492
+ * "unixVer": "x"
493
+ * },
494
+ * "toutiao": {
495
+ * "hostVer": "x",
496
+ * "uniVer": "x",
497
+ * "unixVer": "x"
498
+ * },
499
+ * "lark": {
500
+ * "hostVer": "x",
501
+ * "uniVer": "x",
502
+ * "unixVer": "x"
503
+ * },
504
+ * "qq": {
505
+ * "hostVer": "x",
506
+ * "uniVer": "x",
507
+ * "unixVer": "x"
508
+ * },
509
+ * "kuaishou": {
510
+ * "hostVer": "x",
511
+ * "uniVer": "x",
512
+ * "unixVer": "x"
513
+ * },
514
+ * "jd": {
515
+ * "hostVer": "x",
516
+ * "uniVer": "x",
517
+ * "unixVer": "x"
518
+ * }
519
+ * },
520
+ * "web": {
521
+ * "uniVer": "x",
522
+ * "unixVer": "4.35"
523
+ * }
524
+ * }
525
+ */
526
+ offHostThemeChange(id: number): void;
527
+
528
+ /**
529
+ * 监听系统主题状态变化。
530
+ * @deprecated 已废弃,在web、小程序上推荐使用 onHostThemeChange
531
+ * @tutorial https://uniapp.dcloud.io/api/system/theme.html#onthemechange
532
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#onthemechange
533
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#onthemechange
534
534
  * @uniPlatform {
535
535
  * "app": {
536
536
  * "android": {
@@ -547,7 +547,7 @@ export interface Uni {
547
547
  * "osVer": "5.0.0",
548
548
  * "uniVer": "4.71",
549
549
  * "unixVer": "4.71",
550
- * "unixvVer": "5.0"
550
+ * "unixVaporVer": "5.0"
551
551
  * }
552
552
  * },
553
553
  * "mp": {
@@ -598,15 +598,15 @@ export interface Uni {
598
598
  * }
599
599
  * }
600
600
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onThemeChange.html
601
- */
602
- onThemeChange(callback: OnThemeChangeCallback): void;
603
-
604
- /**
605
- * 取消监听系统主题状态变化。
606
- * @deprecated 已废弃,在web、小程序上推荐使用 offHostThemeChange
607
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offthemechange
608
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#offthemechange
609
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#offthemechange
601
+ */
602
+ onThemeChange(callback: OnThemeChangeCallback): void;
603
+
604
+ /**
605
+ * 取消监听系统主题状态变化。
606
+ * @deprecated 已废弃,在web、小程序上推荐使用 offHostThemeChange
607
+ * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offthemechange
608
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#offthemechange
609
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#offthemechange
610
610
  * @uniPlatform {
611
611
  * "app": {
612
612
  * "android": {
@@ -623,7 +623,7 @@ export interface Uni {
623
623
  * "osVer": "5.0.0",
624
624
  * "uniVer": "4.71",
625
625
  * "unixVer": "4.71",
626
- * "unixvVer": "5.0"
626
+ * "unixVaporVer": "5.0"
627
627
  * }
628
628
  * },
629
629
  * "mp": {
@@ -674,459 +674,459 @@ export interface Uni {
674
674
  * }
675
675
  * }
676
676
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offThemeChange.html
677
- */
678
- offThemeChange(callback: OnThemeChangeCallback): void;
679
- }
680
-
681
- /**
682
- * @uniPlatform
683
- {
684
- "app": {
685
- "android": {
686
- "osVer": "5.0",
687
- "uniVer": "x",
688
- "uniUtsPlugin": "x",
689
- "unixVer": "4.18"
690
- },
691
- "ios": {
692
- "osVer": "12.0",
693
- "uniVer": "x",
694
- "uniUtsPlugin": "x",
695
- "unixVer": "4.18",
696
- "unixUtsPlugin": "4.18"
697
- },
698
- "harmony": {
699
- "osVer": "5.0.0",
700
- "uniVer": "4.71",
701
- "unixVer": "4.71",
702
- "unixvVer": "5.0"
703
- }
704
- },
705
- "web": {
706
- "uniVer": "x",
707
- "unixVer": "x"
708
- }
709
- }
710
- */
711
- export type OsThemeChangeResult = {
712
- /**
713
- * 系统主题
714
- * @uniPlatform
715
- {
716
- "app": {
717
- "android": {
718
- "osVer": "5.0",
719
- "uniVer": "x",
720
- "uniUtsPlugin": "x",
721
- "unixVer": "4.18"
722
- },
723
- "ios": {
724
- "osVer": "12.0",
725
- "uniVer": "x",
726
- "uniUtsPlugin": "x",
727
- "unixVer": "4.18",
728
- "unixUtsPlugin": "4.18"
729
- },
730
- "harmony": {
731
- "osVer": "5.0.0",
732
- "uniVer": "4.71",
733
- "unixVer": "4.71",
734
- "unixvVer": "5.0"
735
- }
736
- },
737
- "web": {
738
- "uniVer": "x",
739
- "unixVer": "x"
740
- }
741
- }
742
- */
743
- osTheme:
744
- /**
745
- * 亮色模式
746
- */
747
- 'light' |
748
- /**
749
- * 深色模式
750
- */
751
- 'dark'
752
-
753
- }
754
-
755
- /**
756
- * @uniPlatform
757
- {
758
- "app": {
759
- "android": {
760
- "osVer": "5.0",
761
- "uniVer": "x",
762
- "uniUtsPlugin": "x",
763
- "unixVer": "4.18"
764
- },
765
- "ios": {
766
- "osVer": "12.0",
767
- "uniVer": "x",
768
- "uniUtsPlugin": "x",
769
- "unixVer": "4.18",
770
- "unixUtsPlugin": "4.18"
771
- },
772
- "harmony": {
773
- "osVer": "5.0.0",
774
- "uniVer": "4.71",
775
- "unixVer": "4.71",
776
- "unixvVer": "5.0"
777
- }
778
- },
779
- "web": {
780
- "uniVer": "x",
781
- "unixVer": "x"
782
- }
783
- }
784
- */
785
- export type AppThemeChangeResult = {
786
- /**
787
- * 应用主题
788
- * @uniPlatform
789
- {
790
- "app": {
791
- "android": {
792
- "osVer": "5.0",
793
- "uniVer": "x",
794
- "uniUtsPlugin": "x",
795
- "unixVer": "4.18"
796
- },
797
- "ios": {
798
- "osVer": "12.0",
799
- "uniVer": "x",
800
- "uniUtsPlugin": "x",
801
- "unixVer": "4.18",
802
- "unixUtsPlugin": "4.18"
803
- },
804
- "harmony": {
805
- "osVer": "5.0.0",
806
- "uniVer": "4.71",
807
- "unixVer": "4.71",
808
- "unixvVer": "5.0"
809
- }
810
- },
811
- "web": {
812
- "uniVer": "x",
813
- "unixVer": "x"
814
- }
815
- }
816
- */
817
- appTheme:
818
- /**
819
- * 亮色模式
820
- */
821
- 'light' |
822
- /**
823
- * 深色模式
824
- */
825
- 'dark'
826
-
827
- }
828
-
829
- /*
830
- * 系统主题相关类型定义
831
- */
832
- export type OnOsThemeChangeCallback = (res: OsThemeChangeResult) => void
833
- export type OnOsThemeChange = (callback: OnOsThemeChangeCallback) => number
834
- export type OffOsThemeChange = (id: number) => void
835
-
836
- export type OnHostThemeChange = (callback: OnHostThemeChangeCallback) => number
837
- export type OffHostThemeChange = (id: number) => void;
838
- /*
839
- * 应用主题相关类型定义
840
- */
841
- export type SetAppTheme = (options: SetAppThemeOptions) => void
842
- export type OnAppThemeChangeCallback = (res: AppThemeChangeResult) => void
843
- export type OnAppThemeChange = (callback: OnAppThemeChangeCallback) => number
844
- export type OffAppThemeChange = (id: number) => void
845
- export type SetAppThemeSuccessResult = {
846
- theme: string
847
- }
848
- export type SetAppThemeSuccessCallback = (result: SetAppThemeSuccessResult) => void;
849
- export type SetAppThemeFailCallback = (result: AppThemeFail) => void;
850
- export type SetAppThemeCompleteCallback = (result: any) => void;
851
-
852
- /**
853
- * @uniPlatform
854
- {
855
- "app": {
856
- "android": {
857
- "osVer": "5.0",
858
- "uniVer": "x",
859
- "uniUtsPlugin": "x",
860
- "unixVer": "4.18"
861
- },
862
- "ios": {
863
- "osVer": "12.0",
864
- "uniVer": "x",
865
- "uniUtsPlugin": "x",
866
- "unixVer": "4.18",
867
- "unixUtsPlugin": "4.18"
868
- },
869
- "harmony": {
870
- "osVer": "5.0.0",
871
- "uniVer": "4.71",
872
- "unixVer": "4.71",
873
- "unixvVer": "5.0"
874
- }
875
- },
876
- "web": {
877
- "uniVer": "x",
878
- "unixVer": "x"
879
- }
880
- }
881
- */
882
- export type SetAppThemeOptions = {
883
- /**
884
- * 主题
885
- * @uniPlatform
886
- {
887
- "app": {
888
- "android": {
889
- "osVer": "5.0",
890
- "uniVer": "x",
891
- "uniUtsPlugin": "x",
892
- "unixVer": "4.18"
893
- },
894
- "ios": {
895
- "osVer": "12.0",
896
- "uniVer": "x",
897
- "uniUtsPlugin": "x",
898
- "unixVer": "4.18",
899
- "unixUtsPlugin": "4.18"
900
- },
901
- "harmony": {
902
- "osVer": "5.0.0",
903
- "uniVer": "4.71",
904
- "unixVer": "4.71",
905
- "unixvVer": "5.0"
906
- }
907
- },
908
- "web": {
909
- "uniVer": "x",
910
- "unixVer": "x"
911
- }
912
- }
913
- */
914
- theme:
915
- /**
916
- * 亮色模式
917
- */
918
- 'light' |
919
- /**
920
- * 深色模式
921
- */
922
- 'dark' |
923
- /**
924
- * 跟随系统模式
925
- */
926
- 'auto'
927
-
928
- /**
929
- * 接口调用成功的回调函数
930
- * @defaultValue null
931
- * @uniPlatform
932
- {
933
- "app": {
934
- "android": {
935
- "osVer": "5.0",
936
- "uniVer": "x",
937
- "uniUtsPlugin": "x",
938
- "unixVer": "4.18"
939
- },
940
- "ios": {
941
- "osVer": "12.0",
942
- "uniVer": "x",
943
- "uniUtsPlugin": "x",
944
- "unixVer": "4.18",
945
- "unixUtsPlugin": "4.18"
946
- },
947
- "harmony": {
948
- "osVer": "5.0.0",
949
- "uniVer": "4.71",
950
- "unixVer": "4.71",
951
- "unixvVer": "5.0"
952
- }
953
- },
954
- "web": {
955
- "uniVer": "x",
956
- "unixVer": "x"
957
- }
958
- }
959
- */
960
- success?: SetAppThemeSuccessCallback
961
-
962
- /**
963
- * 接口调用失败的回调函数
964
- * @defaultValue null
965
- * @uniPlatform
966
- {
967
- "app": {
968
- "android": {
969
- "osVer": "5.0",
970
- "uniVer": "x",
971
- "uniUtsPlugin": "x",
972
- "unixVer": "4.18"
973
- },
974
- "ios": {
975
- "osVer": "12.0",
976
- "uniVer": "x",
977
- "uniUtsPlugin": "x",
978
- "unixVer": "4.18",
979
- "unixUtsPlugin": "4.18"
980
- },
981
- "harmony": {
982
- "osVer": "5.0.0",
983
- "uniVer": "4.71",
984
- "unixVer": "4.71",
985
- "unixvVer": "5.0"
986
- }
987
- },
988
- "web": {
989
- "uniVer": "x",
990
- "unixVer": "x"
991
- }
992
- }
993
- */
994
- fail?: SetAppThemeFailCallback
995
-
996
- /**
997
- * 接口调用结束的回调函数(调用成功、失败都会执行)
998
- * @defaultValue null
999
- * @uniPlatform
1000
- {
1001
- "app": {
1002
- "android": {
1003
- "osVer": "5.0",
1004
- "uniVer": "x",
1005
- "uniUtsPlugin": "x",
1006
- "unixVer": "4.18"
1007
- },
1008
- "ios": {
1009
- "osVer": "12.0",
1010
- "uniVer": "x",
1011
- "uniUtsPlugin": "x",
1012
- "unixVer": "4.18",
1013
- "unixUtsPlugin": "4.18"
1014
- },
1015
- "harmony": {
1016
- "osVer": "5.0.0",
1017
- "uniVer": "4.71",
1018
- "unixVer": "4.71",
1019
- "unixvVer": "5.0"
1020
- }
1021
- },
1022
- "web": {
1023
- "uniVer": "x",
1024
- "unixVer": "x"
1025
- }
1026
- }
1027
- */
1028
- complete?: SetAppThemeCompleteCallback
1029
- }
1030
-
1031
- /**
1032
- * 错误码
1033
- * - 702001 参数错误
1034
- * - 2002000 未知错误
1035
- * @uniPlatform
1036
- {
1037
- "app": {
1038
- "android": {
1039
- "osVer": "5.0",
1040
- "uniVer": "x",
1041
- "uniUtsPlugin": "x",
1042
- "unixVer": "4.18"
1043
- },
1044
- "ios": {
1045
- "osVer": "12.0",
1046
- "uniVer": "x",
1047
- "uniUtsPlugin": "x",
1048
- "unixVer": "4.18",
1049
- "unixUtsPlugin": "4.18"
1050
- },
1051
- "harmony": {
1052
- "osVer": "5.0.0",
1053
- "uniVer": "4.71",
1054
- "unixVer": "4.71",
1055
- "unixvVer": "5.0"
1056
- }
1057
- },
1058
- "web": {
1059
- "uniVer": "x",
1060
- "unixVer": "x"
1061
- }
1062
- }
1063
- */
1064
- export type AppThemeErrorCode =
1065
- /**
1066
- * 参数错误
1067
- */
1068
- 702001 |
1069
- /**
1070
- * 未知错误
1071
- */
1072
- 2002000;
1073
-
1074
- export type AppThemeFail = IAppThemeFail;
1075
-
1076
- /**
1077
- * @uniPlatform
1078
- {
1079
- "app": {
1080
- "android": {
1081
- "osVer": "5.0",
1082
- "uniVer": "x",
1083
- "uniUtsPlugin": "x",
1084
- "unixVer": "4.18"
1085
- },
1086
- "ios": {
1087
- "osVer": "12.0",
1088
- "uniVer": "x",
1089
- "uniUtsPlugin": "x",
1090
- "unixVer": "4.18",
1091
- "unixUtsPlugin": "4.18"
1092
- },
1093
- "harmony": {
1094
- "osVer": "5.0.0",
1095
- "uniVer": "4.71",
1096
- "unixVer": "4.71",
1097
- "unixvVer": "5.0"
1098
- }
1099
- },
1100
- "web": {
1101
- "uniVer": "x",
1102
- "unixVer": "x"
1103
- }
1104
- }
1105
- */
1106
- export interface IAppThemeFail extends IUniError {
1107
- errCode: AppThemeErrorCode
1108
- };
1109
-
1110
- export type OnHostThemeChangeCallbackResult = {
1111
- /**
1112
- * 主题名称
1113
- */
1114
- hostTheme:
1115
- /**
1116
- * 亮色模式
1117
- */
1118
- 'light' |
1119
- /**
1120
- * 深色模式
1121
- */
1122
- 'dark'
1123
- };
1124
-
1125
- export type OnHostThemeChangeCallback = (result: OnHostThemeChangeCallbackResult) => void;
1126
-
1127
-
1128
- export type OnThemeChangeCallbackResult = {
1129
- /**
677
+ */
678
+ offThemeChange(callback: OnThemeChangeCallback): void;
679
+ }
680
+
681
+ /**
682
+ * @uniPlatform
683
+ {
684
+ "app": {
685
+ "android": {
686
+ "osVer": "5.0",
687
+ "uniVer": "x",
688
+ "uniUtsPlugin": "x",
689
+ "unixVer": "4.18"
690
+ },
691
+ "ios": {
692
+ "osVer": "12.0",
693
+ "uniVer": "x",
694
+ "uniUtsPlugin": "x",
695
+ "unixVer": "4.18",
696
+ "unixUtsPlugin": "4.18"
697
+ },
698
+ "harmony": {
699
+ "osVer": "5.0.0",
700
+ "uniVer": "4.71",
701
+ "unixVer": "4.71",
702
+ "unixVaporVer": "5.0"
703
+ }
704
+ },
705
+ "web": {
706
+ "uniVer": "x",
707
+ "unixVer": "x"
708
+ }
709
+ }
710
+ */
711
+ export type OsThemeChangeResult = {
712
+ /**
713
+ * 系统主题
714
+ * @uniPlatform
715
+ {
716
+ "app": {
717
+ "android": {
718
+ "osVer": "5.0",
719
+ "uniVer": "x",
720
+ "uniUtsPlugin": "x",
721
+ "unixVer": "4.18"
722
+ },
723
+ "ios": {
724
+ "osVer": "12.0",
725
+ "uniVer": "x",
726
+ "uniUtsPlugin": "x",
727
+ "unixVer": "4.18",
728
+ "unixUtsPlugin": "4.18"
729
+ },
730
+ "harmony": {
731
+ "osVer": "5.0.0",
732
+ "uniVer": "4.71",
733
+ "unixVer": "4.71",
734
+ "unixVaporVer": "5.0"
735
+ }
736
+ },
737
+ "web": {
738
+ "uniVer": "x",
739
+ "unixVer": "x"
740
+ }
741
+ }
742
+ */
743
+ osTheme:
744
+ /**
745
+ * 亮色模式
746
+ */
747
+ 'light' |
748
+ /**
749
+ * 深色模式
750
+ */
751
+ 'dark'
752
+
753
+ }
754
+
755
+ /**
756
+ * @uniPlatform
757
+ {
758
+ "app": {
759
+ "android": {
760
+ "osVer": "5.0",
761
+ "uniVer": "x",
762
+ "uniUtsPlugin": "x",
763
+ "unixVer": "4.18"
764
+ },
765
+ "ios": {
766
+ "osVer": "12.0",
767
+ "uniVer": "x",
768
+ "uniUtsPlugin": "x",
769
+ "unixVer": "4.18",
770
+ "unixUtsPlugin": "4.18"
771
+ },
772
+ "harmony": {
773
+ "osVer": "5.0.0",
774
+ "uniVer": "4.71",
775
+ "unixVer": "4.71",
776
+ "unixVaporVer": "5.0"
777
+ }
778
+ },
779
+ "web": {
780
+ "uniVer": "x",
781
+ "unixVer": "x"
782
+ }
783
+ }
784
+ */
785
+ export type AppThemeChangeResult = {
786
+ /**
787
+ * 应用主题
788
+ * @uniPlatform
789
+ {
790
+ "app": {
791
+ "android": {
792
+ "osVer": "5.0",
793
+ "uniVer": "x",
794
+ "uniUtsPlugin": "x",
795
+ "unixVer": "4.18"
796
+ },
797
+ "ios": {
798
+ "osVer": "12.0",
799
+ "uniVer": "x",
800
+ "uniUtsPlugin": "x",
801
+ "unixVer": "4.18",
802
+ "unixUtsPlugin": "4.18"
803
+ },
804
+ "harmony": {
805
+ "osVer": "5.0.0",
806
+ "uniVer": "4.71",
807
+ "unixVer": "4.71",
808
+ "unixVaporVer": "5.0"
809
+ }
810
+ },
811
+ "web": {
812
+ "uniVer": "x",
813
+ "unixVer": "x"
814
+ }
815
+ }
816
+ */
817
+ appTheme:
818
+ /**
819
+ * 亮色模式
820
+ */
821
+ 'light' |
822
+ /**
823
+ * 深色模式
824
+ */
825
+ 'dark'
826
+
827
+ }
828
+
829
+ /*
830
+ * 系统主题相关类型定义
831
+ */
832
+ export type OnOsThemeChangeCallback = (res: OsThemeChangeResult) => void
833
+ export type OnOsThemeChange = (callback: OnOsThemeChangeCallback) => number
834
+ export type OffOsThemeChange = (id: number) => void
835
+
836
+ export type OnHostThemeChange = (callback: OnHostThemeChangeCallback) => number
837
+ export type OffHostThemeChange = (id: number) => void;
838
+ /*
839
+ * 应用主题相关类型定义
840
+ */
841
+ export type SetAppTheme = (options: SetAppThemeOptions) => void
842
+ export type OnAppThemeChangeCallback = (res: AppThemeChangeResult) => void
843
+ export type OnAppThemeChange = (callback: OnAppThemeChangeCallback) => number
844
+ export type OffAppThemeChange = (id: number) => void
845
+ export type SetAppThemeSuccessResult = {
846
+ theme: string
847
+ }
848
+ export type SetAppThemeSuccessCallback = (result: SetAppThemeSuccessResult) => void;
849
+ export type SetAppThemeFailCallback = (result: AppThemeFail) => void;
850
+ export type SetAppThemeCompleteCallback = (result: any) => void;
851
+
852
+ /**
853
+ * @uniPlatform
854
+ {
855
+ "app": {
856
+ "android": {
857
+ "osVer": "5.0",
858
+ "uniVer": "x",
859
+ "uniUtsPlugin": "x",
860
+ "unixVer": "4.18"
861
+ },
862
+ "ios": {
863
+ "osVer": "12.0",
864
+ "uniVer": "x",
865
+ "uniUtsPlugin": "x",
866
+ "unixVer": "4.18",
867
+ "unixUtsPlugin": "4.18"
868
+ },
869
+ "harmony": {
870
+ "osVer": "5.0.0",
871
+ "uniVer": "4.71",
872
+ "unixVer": "4.71",
873
+ "unixVaporVer": "5.0"
874
+ }
875
+ },
876
+ "web": {
877
+ "uniVer": "x",
878
+ "unixVer": "x"
879
+ }
880
+ }
881
+ */
882
+ export type SetAppThemeOptions = {
883
+ /**
884
+ * 主题
885
+ * @uniPlatform
886
+ {
887
+ "app": {
888
+ "android": {
889
+ "osVer": "5.0",
890
+ "uniVer": "x",
891
+ "uniUtsPlugin": "x",
892
+ "unixVer": "4.18"
893
+ },
894
+ "ios": {
895
+ "osVer": "12.0",
896
+ "uniVer": "x",
897
+ "uniUtsPlugin": "x",
898
+ "unixVer": "4.18",
899
+ "unixUtsPlugin": "4.18"
900
+ },
901
+ "harmony": {
902
+ "osVer": "5.0.0",
903
+ "uniVer": "4.71",
904
+ "unixVer": "4.71",
905
+ "unixVaporVer": "5.0"
906
+ }
907
+ },
908
+ "web": {
909
+ "uniVer": "x",
910
+ "unixVer": "x"
911
+ }
912
+ }
913
+ */
914
+ theme:
915
+ /**
916
+ * 亮色模式
917
+ */
918
+ 'light' |
919
+ /**
920
+ * 深色模式
921
+ */
922
+ 'dark' |
923
+ /**
924
+ * 跟随系统模式
925
+ */
926
+ 'auto'
927
+
928
+ /**
929
+ * 接口调用成功的回调函数
930
+ * @defaultValue null
931
+ * @uniPlatform
932
+ {
933
+ "app": {
934
+ "android": {
935
+ "osVer": "5.0",
936
+ "uniVer": "x",
937
+ "uniUtsPlugin": "x",
938
+ "unixVer": "4.18"
939
+ },
940
+ "ios": {
941
+ "osVer": "12.0",
942
+ "uniVer": "x",
943
+ "uniUtsPlugin": "x",
944
+ "unixVer": "4.18",
945
+ "unixUtsPlugin": "4.18"
946
+ },
947
+ "harmony": {
948
+ "osVer": "5.0.0",
949
+ "uniVer": "4.71",
950
+ "unixVer": "4.71",
951
+ "unixVaporVer": "5.0"
952
+ }
953
+ },
954
+ "web": {
955
+ "uniVer": "x",
956
+ "unixVer": "x"
957
+ }
958
+ }
959
+ */
960
+ success?: SetAppThemeSuccessCallback
961
+
962
+ /**
963
+ * 接口调用失败的回调函数
964
+ * @defaultValue null
965
+ * @uniPlatform
966
+ {
967
+ "app": {
968
+ "android": {
969
+ "osVer": "5.0",
970
+ "uniVer": "x",
971
+ "uniUtsPlugin": "x",
972
+ "unixVer": "4.18"
973
+ },
974
+ "ios": {
975
+ "osVer": "12.0",
976
+ "uniVer": "x",
977
+ "uniUtsPlugin": "x",
978
+ "unixVer": "4.18",
979
+ "unixUtsPlugin": "4.18"
980
+ },
981
+ "harmony": {
982
+ "osVer": "5.0.0",
983
+ "uniVer": "4.71",
984
+ "unixVer": "4.71",
985
+ "unixVaporVer": "5.0"
986
+ }
987
+ },
988
+ "web": {
989
+ "uniVer": "x",
990
+ "unixVer": "x"
991
+ }
992
+ }
993
+ */
994
+ fail?: SetAppThemeFailCallback
995
+
996
+ /**
997
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
998
+ * @defaultValue null
999
+ * @uniPlatform
1000
+ {
1001
+ "app": {
1002
+ "android": {
1003
+ "osVer": "5.0",
1004
+ "uniVer": "x",
1005
+ "uniUtsPlugin": "x",
1006
+ "unixVer": "4.18"
1007
+ },
1008
+ "ios": {
1009
+ "osVer": "12.0",
1010
+ "uniVer": "x",
1011
+ "uniUtsPlugin": "x",
1012
+ "unixVer": "4.18",
1013
+ "unixUtsPlugin": "4.18"
1014
+ },
1015
+ "harmony": {
1016
+ "osVer": "5.0.0",
1017
+ "uniVer": "4.71",
1018
+ "unixVer": "4.71",
1019
+ "unixVaporVer": "5.0"
1020
+ }
1021
+ },
1022
+ "web": {
1023
+ "uniVer": "x",
1024
+ "unixVer": "x"
1025
+ }
1026
+ }
1027
+ */
1028
+ complete?: SetAppThemeCompleteCallback
1029
+ }
1030
+
1031
+ /**
1032
+ * 错误码
1033
+ * - 702001 参数错误
1034
+ * - 2002000 未知错误
1035
+ * @uniPlatform
1036
+ {
1037
+ "app": {
1038
+ "android": {
1039
+ "osVer": "5.0",
1040
+ "uniVer": "x",
1041
+ "uniUtsPlugin": "x",
1042
+ "unixVer": "4.18"
1043
+ },
1044
+ "ios": {
1045
+ "osVer": "12.0",
1046
+ "uniVer": "x",
1047
+ "uniUtsPlugin": "x",
1048
+ "unixVer": "4.18",
1049
+ "unixUtsPlugin": "4.18"
1050
+ },
1051
+ "harmony": {
1052
+ "osVer": "5.0.0",
1053
+ "uniVer": "4.71",
1054
+ "unixVer": "4.71",
1055
+ "unixVaporVer": "5.0"
1056
+ }
1057
+ },
1058
+ "web": {
1059
+ "uniVer": "x",
1060
+ "unixVer": "x"
1061
+ }
1062
+ }
1063
+ */
1064
+ export type AppThemeErrorCode =
1065
+ /**
1066
+ * 参数错误
1067
+ */
1068
+ 702001 |
1069
+ /**
1070
+ * 未知错误
1071
+ */
1072
+ 2002000;
1073
+
1074
+ export type AppThemeFail = IAppThemeFail;
1075
+
1076
+ /**
1077
+ * @uniPlatform
1078
+ {
1079
+ "app": {
1080
+ "android": {
1081
+ "osVer": "5.0",
1082
+ "uniVer": "x",
1083
+ "uniUtsPlugin": "x",
1084
+ "unixVer": "4.18"
1085
+ },
1086
+ "ios": {
1087
+ "osVer": "12.0",
1088
+ "uniVer": "x",
1089
+ "uniUtsPlugin": "x",
1090
+ "unixVer": "4.18",
1091
+ "unixUtsPlugin": "4.18"
1092
+ },
1093
+ "harmony": {
1094
+ "osVer": "5.0.0",
1095
+ "uniVer": "4.71",
1096
+ "unixVer": "4.71",
1097
+ "unixVaporVer": "5.0"
1098
+ }
1099
+ },
1100
+ "web": {
1101
+ "uniVer": "x",
1102
+ "unixVer": "x"
1103
+ }
1104
+ }
1105
+ */
1106
+ export interface IAppThemeFail extends IUniError {
1107
+ errCode: AppThemeErrorCode
1108
+ };
1109
+
1110
+ export type OnHostThemeChangeCallbackResult = {
1111
+ /**
1112
+ * 主题名称
1113
+ */
1114
+ hostTheme:
1115
+ /**
1116
+ * 亮色模式
1117
+ */
1118
+ 'light' |
1119
+ /**
1120
+ * 深色模式
1121
+ */
1122
+ 'dark'
1123
+ };
1124
+
1125
+ export type OnHostThemeChangeCallback = (result: OnHostThemeChangeCallbackResult) => void;
1126
+
1127
+
1128
+ export type OnThemeChangeCallbackResult = {
1129
+ /**
1130
1130
  * 主题名称
1131
1131
  * @uniPlatform {
1132
1132
  * "mp": {
@@ -1172,16 +1172,16 @@ export type OnThemeChangeCallbackResult = {
1172
1172
  * }
1173
1173
  * }
1174
1174
  * }
1175
- */
1176
- theme:
1177
- /**
1178
- * 亮色模式
1179
- */
1180
- 'light' |
1181
- /**
1182
- * 深色模式
1183
- */
1184
- 'dark'
1185
- };
1186
-
1187
- type OnThemeChangeCallback = (result: OnThemeChangeCallbackResult) => void;
1175
+ */
1176
+ theme:
1177
+ /**
1178
+ * 亮色模式
1179
+ */
1180
+ 'light' |
1181
+ /**
1182
+ * 深色模式
1183
+ */
1184
+ 'dark'
1185
+ };
1186
+
1187
+ type OnThemeChangeCallback = (result: OnThemeChangeCallbackResult) => void;