@dcloudio/uni-app-x 0.7.112 → 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 (379) 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/native/CSSStyleDeclaration.d.ts +172 -172
  5. package/types/native/CanvasRenderingContext2D.d.ts +4720 -4720
  6. package/types/native/DrawableContext.d.ts +1893 -1893
  7. package/types/native/IUniElement.d.ts +7468 -7468
  8. package/types/native/IUniNativeViewElement.d.ts +327 -327
  9. package/types/native/SnapshotOptions.d.ts +337 -62
  10. package/types/native/UniPage.d.ts +1305 -1305
  11. package/types/native/UniResizeObserver.d.ts +749 -749
  12. package/types/native/UniSwiperAnimationFinishEvent.d.ts +59 -59
  13. package/types/native/UniSwiperChangeEvent.d.ts +58 -58
  14. package/types/page.d.ts +3154 -3112
  15. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  16. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1672 -911
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +126 -126
  19. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +14 -14
  20. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +154 -154
  21. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +14 -14
  22. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/global.d.ts +55 -0
  23. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/index.d.ts +27 -0
  24. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/interface.d.ts +1155 -0
  25. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +9 -6
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +5 -3
  27. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +978 -972
  28. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/global.d.ts +25 -0
  29. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/index.d.ts +12 -0
  30. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -0
  31. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +358 -358
  32. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +8 -8
  33. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +78 -78
  34. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +490 -479
  35. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -214
  36. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +126 -126
  37. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +30 -30
  38. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +39 -0
  39. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +19 -0
  40. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +856 -0
  41. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  42. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +147 -147
  43. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +397 -397
  44. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +6363 -6359
  45. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +554 -554
  46. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2149 -2149
  47. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1340 -1340
  48. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1707 -1707
  49. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +307 -307
  50. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +310 -310
  51. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +5 -5
  52. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +129 -129
  53. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +757 -757
  54. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +5881 -5879
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +442 -442
  56. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/global.d.ts +9 -0
  57. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/index.d.ts +5 -0
  58. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/interface.d.ts +0 -0
  59. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +171 -171
  60. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
  61. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +536 -536
  62. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +2914 -2910
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +24 -24
  64. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +208 -208
  65. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +785 -785
  66. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4243 -4243
  67. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1979 -1963
  68. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +5 -3
  69. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +229 -229
  70. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +753 -753
  71. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +84 -84
  72. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +790 -788
  73. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +447 -447
  74. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +498 -498
  75. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1552 -1548
  76. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +30 -30
  78. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2513 -2513
  79. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +81 -81
  80. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +351 -351
  81. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +107 -107
  82. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +584 -584
  83. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -722
  84. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +292 -292
  85. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +358 -358
  86. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +657 -657
  87. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/global.d.ts +9 -0
  88. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/index.d.ts +5 -0
  89. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/interface.d.ts +0 -0
  90. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1010 -1010
  91. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/global.d.ts +47 -0
  92. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/index.d.ts +23 -0
  93. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/interface.d.ts +926 -0
  94. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/global.d.ts +29 -0
  95. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/index.d.ts +14 -0
  96. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/interface.d.ts +452 -0
  97. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1442 -1442
  98. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +220 -220
  99. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +65 -65
  100. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +981 -981
  101. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
  102. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +1155 -0
  103. package/types/uni/uts-plugin-component/.temp/uni-camera.d.ts +38 -0
  104. package/types/uni/uts-plugin-component/.temp/uni-camera.ts +52 -0
  105. package/types/uni/uts-plugin-component/.temp/uni-canvas/utssdk/interface.uts +976 -0
  106. package/types/uni/uts-plugin-component/.temp/uni-canvas-dom2/utssdk/interface.uts +976 -0
  107. package/types/uni/uts-plugin-component/.temp/uni-editor.d.ts +171 -0
  108. package/types/uni/uts-plugin-component/.temp/uni-editor.ts +237 -0
  109. package/types/uni/uts-plugin-component/.temp/uni-form.d.ts +2 -0
  110. package/types/uni/uts-plugin-component/.temp/uni-form.ts +1 -0
  111. package/types/uni/uts-plugin-component/.temp/uni-input/utssdk/interface.uts +0 -0
  112. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.d.ts +56 -0
  113. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.ts +88 -0
  114. package/types/uni/uts-plugin-component/.temp/uni-match-media.d.ts +2 -0
  115. package/types/uni/uts-plugin-component/.temp/uni-match-media.ts +2 -0
  116. package/types/uni/uts-plugin-component/.temp/uni-navigator.d.ts +2 -0
  117. package/types/uni/uts-plugin-component/.temp/uni-navigator.ts +1 -0
  118. package/types/uni/uts-plugin-component/.temp/uni-page-container.d.ts +0 -0
  119. package/types/uni/uts-plugin-component/.temp/uni-page-container.ts +2 -0
  120. package/types/uni/uts-plugin-component/.temp/uni-progress.d.ts +2 -0
  121. package/types/uni/uts-plugin-component/.temp/uni-progress.ts +1 -0
  122. package/types/uni/uts-plugin-component/.temp/uni-rich-text.d.ts +7 -0
  123. package/types/uni/uts-plugin-component/.temp/uni-rich-text.ts +12 -0
  124. package/types/uni/uts-plugin-component/.temp/uni-textarea/utssdk/interface.uts +0 -0
  125. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +936 -0
  126. package/types/uni/uts-plugin-component/.temp/uni-video.d.ts +134 -0
  127. package/types/uni/uts-plugin-component/.temp/uni-video.ts +180 -0
  128. package/types/uni/uts-plugin-component/.temp/uni-web-view/utssdk/interface.uts +452 -0
  129. package/types/uni/uts-plugin-component/.temp/uni-web-view.d.ts +51 -0
  130. package/types/uni/uts-plugin-component/.temp/uni-web-view.ts +86 -0
  131. package/types/uni/uts-plugin-component/global.d.ts +79 -0
  132. package/types/uni/uts-plugin-component/index.d.ts +79 -0
  133. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/global.d.ts +29 -0
  134. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/index.d.ts +14 -0
  135. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/interface.d.ts +1673 -0
  136. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/global.d.ts +25 -0
  137. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  138. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/interface.d.ts +226 -0
  139. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +11 -0
  140. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +5 -0
  141. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +79 -0
  142. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/global.d.ts +59 -0
  143. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/index.d.ts +29 -0
  144. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  145. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/global.d.ts +9 -0
  146. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/index.d.ts +5 -0
  147. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  148. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +11 -0
  149. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +5 -0
  150. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +79 -0
  151. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +978 -976
  152. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -976
  153. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/global.d.ts +25 -0
  154. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/index.d.ts +12 -0
  155. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/interface.d.ts +423 -0
  156. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/global.d.ts +33 -0
  157. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/index.d.ts +16 -0
  158. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/interface.d.ts +499 -0
  159. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/global.d.ts +45 -0
  160. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/index.d.ts +22 -0
  161. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/interface.d.ts +217 -0
  162. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/global.d.ts +33 -0
  163. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/index.d.ts +16 -0
  164. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +3379 -0
  165. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/global.d.ts +21 -0
  166. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/index.d.ts +10 -0
  167. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +153 -0
  168. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +19 -0
  169. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +9 -0
  170. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -0
  171. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/global.d.ts +21 -0
  172. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/index.d.ts +10 -0
  173. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/interface.d.ts +560 -0
  174. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/global.d.ts +15 -0
  175. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/index.d.ts +7 -0
  176. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -0
  177. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/global.d.ts +23 -0
  178. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/index.d.ts +11 -0
  179. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/interface.d.ts +158 -0
  180. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +29 -0
  181. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +14 -0
  182. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +2304 -0
  183. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +39 -0
  184. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +19 -0
  185. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +856 -0
  186. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/global.d.ts +25 -0
  187. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/index.d.ts +13 -0
  188. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +181 -0
  189. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/global.d.ts +17 -0
  190. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/index.d.ts +8 -0
  191. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/interface.d.ts +338 -0
  192. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/global.d.ts +27 -0
  193. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/index.d.ts +13 -0
  194. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/interface.d.ts +147 -0
  195. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/global.d.ts +81 -0
  196. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/index.d.ts +40 -0
  197. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/interface.d.ts +397 -0
  198. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/global.d.ts +151 -0
  199. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -0
  200. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/interface.d.ts +6428 -0
  201. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +11 -0
  202. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +5 -0
  203. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +37 -0
  204. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +13 -0
  205. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +6 -0
  206. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +620 -0
  207. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/global.d.ts +15 -0
  208. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/index.d.ts +7 -0
  209. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2220 -0
  210. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +17 -0
  211. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +8 -0
  212. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1406 -0
  213. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/global.d.ts +15 -0
  214. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/index.d.ts +7 -0
  215. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1774 -0
  216. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/global.d.ts +11 -0
  217. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/index.d.ts +5 -0
  218. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +82 -0
  219. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +13 -0
  220. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +6 -0
  221. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +374 -0
  222. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +13 -0
  223. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +6 -0
  224. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +377 -0
  225. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +21 -0
  226. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +11 -0
  227. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -0
  228. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/global.d.ts +33 -0
  229. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/index.d.ts +16 -0
  230. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/interface.d.ts +420 -0
  231. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/global.d.ts +23 -0
  232. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/index.d.ts +11 -0
  233. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/interface.d.ts +199 -0
  234. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/global.d.ts +37 -0
  235. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/index.d.ts +18 -0
  236. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/interface.d.ts +757 -0
  237. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/global.d.ts +33 -0
  238. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/index.d.ts +16 -0
  239. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/interface.d.ts +6084 -0
  240. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/global.d.ts +13 -0
  241. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/index.d.ts +6 -0
  242. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/interface.d.ts +508 -0
  243. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/global.d.ts +25 -0
  244. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/index.d.ts +12 -0
  245. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/interface.d.ts +125 -0
  246. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/global.d.ts +17 -0
  247. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/index.d.ts +8 -0
  248. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/interface.d.ts +171 -0
  249. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/global.d.ts +45 -0
  250. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/index.d.ts +22 -0
  251. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +234 -0
  252. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/global.d.ts +29 -0
  253. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/index.d.ts +14 -0
  254. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/interface.d.ts +603 -0
  255. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/global.d.ts +61 -0
  256. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/index.d.ts +30 -0
  257. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/interface.d.ts +3443 -0
  258. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/global.d.ts +9 -0
  259. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/index.d.ts +5 -0
  260. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/interface.d.ts +3 -0
  261. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/global.d.ts +9 -0
  262. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
  263. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/interface.d.ts +3 -0
  264. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/global.d.ts +29 -0
  265. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/index.d.ts +14 -0
  266. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +386 -0
  267. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/global.d.ts +157 -0
  268. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/index.d.ts +78 -0
  269. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/interface.d.ts +5245 -0
  270. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +43 -0
  271. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +21 -0
  272. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +291 -0
  273. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/global.d.ts +69 -0
  274. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/index.d.ts +34 -0
  275. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/interface.d.ts +1047 -0
  276. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/global.d.ts +109 -0
  277. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/index.d.ts +54 -0
  278. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/interface.d.ts +4462 -0
  279. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/global.d.ts +71 -0
  280. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/index.d.ts +35 -0
  281. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +2142 -0
  282. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/global.d.ts +9 -0
  283. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/index.d.ts +5 -0
  284. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
  285. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/global.d.ts +17 -0
  286. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/index.d.ts +9 -0
  287. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/interface.d.ts +48 -0
  288. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +25 -0
  289. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +12 -0
  290. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +256 -0
  291. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/global.d.ts +29 -0
  292. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/index.d.ts +14 -0
  293. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/interface.d.ts +823 -0
  294. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/global.d.ts +27 -0
  295. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/index.d.ts +13 -0
  296. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +155 -0
  297. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/global.d.ts +33 -0
  298. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/index.d.ts +16 -0
  299. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/interface.d.ts +856 -0
  300. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/global.d.ts +9 -0
  301. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/index.d.ts +5 -0
  302. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/interface.d.ts +3 -0
  303. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/global.d.ts +9 -0
  304. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/index.d.ts +5 -0
  305. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  306. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/global.d.ts +9 -0
  307. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/index.d.ts +5 -0
  308. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/interface.d.ts +5 -0
  309. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/global.d.ts +19 -0
  310. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/index.d.ts +10 -0
  311. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/interface.d.ts +26 -0
  312. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/global.d.ts +47 -0
  313. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/index.d.ts +23 -0
  314. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/interface.d.ts +520 -0
  315. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +31 -0
  316. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +15 -0
  317. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +568 -0
  318. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/global.d.ts +33 -0
  319. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/index.d.ts +16 -0
  320. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/interface.d.ts +1693 -0
  321. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/global.d.ts +29 -0
  322. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/index.d.ts +14 -0
  323. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/interface.d.ts +191 -0
  324. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/global.d.ts +21 -0
  325. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/index.d.ts +10 -0
  326. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/interface.d.ts +2999 -0
  327. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +21 -0
  328. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +10 -0
  329. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +713 -0
  330. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/global.d.ts +59 -0
  331. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/index.d.ts +29 -0
  332. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/interface.d.ts +2731 -0
  333. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/global.d.ts +11 -0
  334. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/index.d.ts +5 -0
  335. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/interface.d.ts +81 -0
  336. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/global.d.ts +25 -0
  337. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/index.d.ts +12 -0
  338. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/interface.d.ts +429 -0
  339. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  340. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  341. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +314 -0
  342. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +41 -0
  343. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +20 -0
  344. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +584 -0
  345. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/global.d.ts +9 -0
  346. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/index.d.ts +5 -0
  347. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +3 -0
  348. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/global.d.ts +27 -0
  349. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/index.d.ts +13 -0
  350. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -0
  351. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +47 -0
  352. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +23 -0
  353. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +446 -0
  354. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/global.d.ts +21 -0
  355. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/index.d.ts +10 -0
  356. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/interface.d.ts +330 -0
  357. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/global.d.ts +79 -0
  358. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/index.d.ts +39 -0
  359. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/interface.d.ts +1030 -0
  360. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/global.d.ts +149 -0
  361. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/index.d.ts +74 -0
  362. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/interface.d.ts +1221 -0
  363. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/global.d.ts +53 -0
  364. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/index.d.ts +26 -0
  365. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/interface.d.ts +1141 -0
  366. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +0 -22
  367. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +0 -11
  368. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +862 -872
  369. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +4 -14
  370. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +2 -7
  371. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +14 -51
  372. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/global.d.ts +113 -0
  373. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/index.d.ts +56 -0
  374. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/interface.d.ts +1661 -0
  375. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +17 -17
  376. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/global.d.ts +59 -0
  377. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/index.d.ts +29 -0
  378. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/interface.d.ts +1939 -0
  379. package/types/vue/LifeCycle.d.ts +865 -854
@@ -0,0 +1,1141 @@
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
+ * @uniPlatform {
535
+ * "app": {
536
+ * "android": {
537
+ * "osVer": "5.0",
538
+ * "uniVer": "3.6.9",
539
+ * "unixVer": "x"
540
+ * },
541
+ * "ios": {
542
+ * "osVer": "9.0",
543
+ * "uniVer": "2.6.5",
544
+ * "unixVer": "x"
545
+ * },
546
+ * "harmony": {
547
+ "osVer": "5.0.0",
548
+ "uniVer": "4.71",
549
+ "unixVer": "4.71",
550
+ "unixVaporVer": "5.0"
551
+ * }
552
+ * },
553
+ * "mp": {
554
+ * "weixin": {
555
+ * "hostVer": "√",
556
+ * "uniVer": "2.11.0",
557
+ * "unixVer": "4.41"
558
+ * },
559
+ * "alipay": {
560
+ * "hostVer": "x",
561
+ * "uniVer": "x",
562
+ * "unixVer": "x"
563
+ * },
564
+ * "baidu": {
565
+ * "hostVer": "x",
566
+ * "uniVer": "x",
567
+ * "unixVer": "x"
568
+ * },
569
+ * "toutiao": {
570
+ * "hostVer": "x",
571
+ * "uniVer": "x",
572
+ * "unixVer": "x"
573
+ * },
574
+ * "lark": {
575
+ * "hostVer": "√",
576
+ * "uniVer": "5.3.0",
577
+ * "unixVer": "x"
578
+ * },
579
+ * "qq": {
580
+ * "hostVer": "x",
581
+ * "uniVer": "x",
582
+ * "unixVer": "x"
583
+ * },
584
+ * "kuaishou": {
585
+ * "hostVer": "x",
586
+ * "uniVer": "x",
587
+ * "unixVer": "x"
588
+ * },
589
+ * "jd": {
590
+ * "hostVer": "x",
591
+ * "uniVer": "x",
592
+ * "unixVer": "x"
593
+ * }
594
+ * },
595
+ * "web": {
596
+ * "uniVer": "3.6.9",
597
+ * "unixVer": "4.0"
598
+ * }
599
+ * }
600
+ */
601
+ onThemeChange(callback: OnThemeChangeCallback): void;
602
+
603
+ /**
604
+ * 取消监听系统主题状态变化。
605
+ * @deprecated 已废弃,在web、小程序上推荐使用 offHostThemeChange
606
+ * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offthemechange
607
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/system/theme.html#offthemechange
608
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/theme-change.html#offthemechange
609
+ * @uniPlatform {
610
+ * "app": {
611
+ * "android": {
612
+ * "osVer": "5.0",
613
+ * "uniVer": "3.6.9",
614
+ * "unixVer": "x"
615
+ * },
616
+ * "ios": {
617
+ * "osVer": "9.0",
618
+ * "uniVer": "2.6.5",
619
+ * "unixVer": "x"
620
+ * },
621
+ * "harmony": {
622
+ "osVer": "5.0.0",
623
+ "uniVer": "4.71",
624
+ "unixVer": "4.71",
625
+ "unixVaporVer": "5.0"
626
+ * }
627
+ * },
628
+ * "mp": {
629
+ * "weixin": {
630
+ * "hostVer": "√",
631
+ * "uniVer": "2.11.0",
632
+ * "unixVer": "4.41"
633
+ * },
634
+ * "alipay": {
635
+ * "hostVer": "x",
636
+ * "uniVer": "x",
637
+ * "unixVer": "x"
638
+ * },
639
+ * "baidu": {
640
+ * "hostVer": "x",
641
+ * "uniVer": "x",
642
+ * "unixVer": "x"
643
+ * },
644
+ * "toutiao": {
645
+ * "hostVer": "x",
646
+ * "uniVer": "x",
647
+ * "unixVer": "x"
648
+ * },
649
+ * "lark": {
650
+ * "hostVer": "√",
651
+ * "uniVer": "5.3.0",
652
+ * "unixVer": "x"
653
+ * },
654
+ * "qq": {
655
+ * "hostVer": "x",
656
+ * "uniVer": "x",
657
+ * "unixVer": "x"
658
+ * },
659
+ * "kuaishou": {
660
+ * "hostVer": "x",
661
+ * "uniVer": "x",
662
+ * "unixVer": "x"
663
+ * },
664
+ * "jd": {
665
+ * "hostVer": "x",
666
+ * "uniVer": "x",
667
+ * "unixVer": "x"
668
+ * }
669
+ * },
670
+ * "web": {
671
+ * "uniVer": "3.6.9",
672
+ * "unixVer": "4.0"
673
+ * }
674
+ * }
675
+ */
676
+ offThemeChange(callback: OnThemeChangeCallback): void;
677
+ }
678
+
679
+ /**
680
+ * @uniPlatform
681
+ {
682
+ "app": {
683
+ "android": {
684
+ "osVer": "5.0",
685
+ "uniVer": "x",
686
+ "uniUtsPlugin": "x",
687
+ "unixVer": "4.18"
688
+ },
689
+ "ios": {
690
+ "osVer": "12.0",
691
+ "uniVer": "x",
692
+ "uniUtsPlugin": "x",
693
+ "unixVer": "4.18",
694
+ "unixUtsPlugin": "4.18"
695
+ },
696
+ "harmony": {
697
+ "osVer": "5.0.0",
698
+ "uniVer": "4.71",
699
+ "unixVer": "4.71",
700
+ "unixVaporVer": "5.0"
701
+ }
702
+ },
703
+ "web": {
704
+ "uniVer": "x",
705
+ "unixVer": "x"
706
+ }
707
+ }
708
+ */
709
+ export type OsThemeChangeResult = {
710
+ /**
711
+ * 系统主题
712
+ * @uniPlatform
713
+ {
714
+ "app": {
715
+ "android": {
716
+ "osVer": "5.0",
717
+ "uniVer": "x",
718
+ "uniUtsPlugin": "x",
719
+ "unixVer": "4.18"
720
+ },
721
+ "ios": {
722
+ "osVer": "12.0",
723
+ "uniVer": "x",
724
+ "uniUtsPlugin": "x",
725
+ "unixVer": "4.18",
726
+ "unixUtsPlugin": "4.18"
727
+ },
728
+ "harmony": {
729
+ "osVer": "5.0.0",
730
+ "uniVer": "4.71",
731
+ "unixVer": "4.71",
732
+ "unixVaporVer": "5.0"
733
+ }
734
+ },
735
+ "web": {
736
+ "uniVer": "x",
737
+ "unixVer": "x"
738
+ }
739
+ }
740
+ */
741
+ osTheme:
742
+ /**
743
+ * 亮色模式
744
+ */
745
+ 'light' |
746
+ /**
747
+ * 深色模式
748
+ */
749
+ 'dark'
750
+
751
+ }
752
+
753
+ /**
754
+ * @uniPlatform
755
+ {
756
+ "app": {
757
+ "android": {
758
+ "osVer": "5.0",
759
+ "uniVer": "x",
760
+ "uniUtsPlugin": "x",
761
+ "unixVer": "4.18"
762
+ },
763
+ "ios": {
764
+ "osVer": "12.0",
765
+ "uniVer": "x",
766
+ "uniUtsPlugin": "x",
767
+ "unixVer": "4.18",
768
+ "unixUtsPlugin": "4.18"
769
+ },
770
+ "harmony": {
771
+ "osVer": "5.0.0",
772
+ "uniVer": "4.71",
773
+ "unixVer": "4.71",
774
+ "unixVaporVer": "5.0"
775
+ }
776
+ },
777
+ "web": {
778
+ "uniVer": "x",
779
+ "unixVer": "x"
780
+ }
781
+ }
782
+ */
783
+ export type AppThemeChangeResult = {
784
+ /**
785
+ * 应用主题
786
+ * @uniPlatform
787
+ {
788
+ "app": {
789
+ "android": {
790
+ "osVer": "5.0",
791
+ "uniVer": "x",
792
+ "uniUtsPlugin": "x",
793
+ "unixVer": "4.18"
794
+ },
795
+ "ios": {
796
+ "osVer": "12.0",
797
+ "uniVer": "x",
798
+ "uniUtsPlugin": "x",
799
+ "unixVer": "4.18",
800
+ "unixUtsPlugin": "4.18"
801
+ },
802
+ "harmony": {
803
+ "osVer": "5.0.0",
804
+ "uniVer": "4.71",
805
+ "unixVer": "4.71",
806
+ "unixVaporVer": "5.0"
807
+ }
808
+ },
809
+ "web": {
810
+ "uniVer": "x",
811
+ "unixVer": "x"
812
+ }
813
+ }
814
+ */
815
+ appTheme:
816
+ /**
817
+ * 亮色模式
818
+ */
819
+ 'light' |
820
+ /**
821
+ * 深色模式
822
+ */
823
+ 'dark'
824
+
825
+ }
826
+
827
+ /*
828
+ * 系统主题相关类型定义
829
+ */
830
+ export type OnOsThemeChangeCallback = (res: OsThemeChangeResult) => void
831
+ export type OnOsThemeChange = (callback: OnOsThemeChangeCallback) => number
832
+ export type OffOsThemeChange = (id: number) => void
833
+
834
+ export type OnHostThemeChange = (callback: OnHostThemeChangeCallback) => number
835
+ export type OffHostThemeChange = (id: number) => void;
836
+ /*
837
+ * 应用主题相关类型定义
838
+ */
839
+ export type SetAppTheme = (options: SetAppThemeOptions) => void
840
+ export type OnAppThemeChangeCallback = (res: AppThemeChangeResult) => void
841
+ export type OnAppThemeChange = (callback: OnAppThemeChangeCallback) => number
842
+ export type OffAppThemeChange = (id: number) => void
843
+ export type SetAppThemeSuccessResult = {
844
+ theme: string
845
+ }
846
+ export type SetAppThemeSuccessCallback = (result: SetAppThemeSuccessResult) => void;
847
+ export type SetAppThemeFailCallback = (result: AppThemeFail) => void;
848
+ export type SetAppThemeCompleteCallback = (result: any) => void;
849
+
850
+ /**
851
+ * @uniPlatform
852
+ {
853
+ "app": {
854
+ "android": {
855
+ "osVer": "5.0",
856
+ "uniVer": "x",
857
+ "uniUtsPlugin": "x",
858
+ "unixVer": "4.18"
859
+ },
860
+ "ios": {
861
+ "osVer": "12.0",
862
+ "uniVer": "x",
863
+ "uniUtsPlugin": "x",
864
+ "unixVer": "4.18",
865
+ "unixUtsPlugin": "4.18"
866
+ },
867
+ "harmony": {
868
+ "osVer": "5.0.0",
869
+ "uniVer": "4.71",
870
+ "unixVer": "4.71",
871
+ "unixVaporVer": "5.0"
872
+ }
873
+ },
874
+ "web": {
875
+ "uniVer": "x",
876
+ "unixVer": "x"
877
+ }
878
+ }
879
+ */
880
+ export type SetAppThemeOptions = {
881
+ /**
882
+ * 主题
883
+ * @uniPlatform
884
+ {
885
+ "app": {
886
+ "android": {
887
+ "osVer": "5.0",
888
+ "uniVer": "x",
889
+ "uniUtsPlugin": "x",
890
+ "unixVer": "4.18"
891
+ },
892
+ "ios": {
893
+ "osVer": "12.0",
894
+ "uniVer": "x",
895
+ "uniUtsPlugin": "x",
896
+ "unixVer": "4.18",
897
+ "unixUtsPlugin": "4.18"
898
+ },
899
+ "harmony": {
900
+ "osVer": "5.0.0",
901
+ "uniVer": "4.71",
902
+ "unixVer": "4.71",
903
+ "unixVaporVer": "5.0"
904
+ }
905
+ },
906
+ "web": {
907
+ "uniVer": "x",
908
+ "unixVer": "x"
909
+ }
910
+ }
911
+ */
912
+ theme:
913
+ /**
914
+ * 亮色模式
915
+ */
916
+ 'light' |
917
+ /**
918
+ * 深色模式
919
+ */
920
+ 'dark' |
921
+ /**
922
+ * 跟随系统模式
923
+ */
924
+ 'auto'
925
+
926
+ /**
927
+ * 接口调用成功的回调函数
928
+ * @defaultValue null
929
+ * @uniPlatform
930
+ {
931
+ "app": {
932
+ "android": {
933
+ "osVer": "5.0",
934
+ "uniVer": "x",
935
+ "uniUtsPlugin": "x",
936
+ "unixVer": "4.18"
937
+ },
938
+ "ios": {
939
+ "osVer": "12.0",
940
+ "uniVer": "x",
941
+ "uniUtsPlugin": "x",
942
+ "unixVer": "4.18",
943
+ "unixUtsPlugin": "4.18"
944
+ },
945
+ "harmony": {
946
+ "osVer": "5.0.0",
947
+ "uniVer": "4.71",
948
+ "unixVer": "4.71",
949
+ "unixVaporVer": "5.0"
950
+ }
951
+ },
952
+ "web": {
953
+ "uniVer": "x",
954
+ "unixVer": "x"
955
+ }
956
+ }
957
+ */
958
+ success?: SetAppThemeSuccessCallback
959
+
960
+ /**
961
+ * 接口调用失败的回调函数
962
+ * @defaultValue null
963
+ * @uniPlatform
964
+ {
965
+ "app": {
966
+ "android": {
967
+ "osVer": "5.0",
968
+ "uniVer": "x",
969
+ "uniUtsPlugin": "x",
970
+ "unixVer": "4.18"
971
+ },
972
+ "ios": {
973
+ "osVer": "12.0",
974
+ "uniVer": "x",
975
+ "uniUtsPlugin": "x",
976
+ "unixVer": "4.18",
977
+ "unixUtsPlugin": "4.18"
978
+ },
979
+ "harmony": {
980
+ "osVer": "5.0.0",
981
+ "uniVer": "4.71",
982
+ "unixVer": "4.71",
983
+ "unixVaporVer": "5.0"
984
+ }
985
+ },
986
+ "web": {
987
+ "uniVer": "x",
988
+ "unixVer": "x"
989
+ }
990
+ }
991
+ */
992
+ fail?: SetAppThemeFailCallback
993
+
994
+ /**
995
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
996
+ * @defaultValue null
997
+ * @uniPlatform
998
+ {
999
+ "app": {
1000
+ "android": {
1001
+ "osVer": "5.0",
1002
+ "uniVer": "x",
1003
+ "uniUtsPlugin": "x",
1004
+ "unixVer": "4.18"
1005
+ },
1006
+ "ios": {
1007
+ "osVer": "12.0",
1008
+ "uniVer": "x",
1009
+ "uniUtsPlugin": "x",
1010
+ "unixVer": "4.18",
1011
+ "unixUtsPlugin": "4.18"
1012
+ },
1013
+ "harmony": {
1014
+ "osVer": "5.0.0",
1015
+ "uniVer": "4.71",
1016
+ "unixVer": "4.71",
1017
+ "unixVaporVer": "5.0"
1018
+ }
1019
+ },
1020
+ "web": {
1021
+ "uniVer": "x",
1022
+ "unixVer": "x"
1023
+ }
1024
+ }
1025
+ */
1026
+ complete?: SetAppThemeCompleteCallback
1027
+ }
1028
+
1029
+ /**
1030
+ * 错误码
1031
+ * - 702001 参数错误
1032
+ * - 2002000 未知错误
1033
+ * @uniPlatform
1034
+ {
1035
+ "app": {
1036
+ "android": {
1037
+ "osVer": "5.0",
1038
+ "uniVer": "x",
1039
+ "uniUtsPlugin": "x",
1040
+ "unixVer": "4.18"
1041
+ },
1042
+ "ios": {
1043
+ "osVer": "12.0",
1044
+ "uniVer": "x",
1045
+ "uniUtsPlugin": "x",
1046
+ "unixVer": "4.18",
1047
+ "unixUtsPlugin": "4.18"
1048
+ },
1049
+ "harmony": {
1050
+ "osVer": "5.0.0",
1051
+ "uniVer": "4.71",
1052
+ "unixVer": "4.71",
1053
+ "unixVaporVer": "5.0"
1054
+ }
1055
+ },
1056
+ "web": {
1057
+ "uniVer": "x",
1058
+ "unixVer": "x"
1059
+ }
1060
+ }
1061
+ */
1062
+ export type AppThemeErrorCode =
1063
+ /**
1064
+ * 参数错误
1065
+ */
1066
+ 702001 |
1067
+ /**
1068
+ * 未知错误
1069
+ */
1070
+ 2002000;
1071
+
1072
+ export type AppThemeFail = IAppThemeFail;
1073
+
1074
+ /**
1075
+ * @uniPlatform
1076
+ {
1077
+ "app": {
1078
+ "android": {
1079
+ "osVer": "5.0",
1080
+ "uniVer": "x",
1081
+ "uniUtsPlugin": "x",
1082
+ "unixVer": "4.18"
1083
+ },
1084
+ "ios": {
1085
+ "osVer": "12.0",
1086
+ "uniVer": "x",
1087
+ "uniUtsPlugin": "x",
1088
+ "unixVer": "4.18",
1089
+ "unixUtsPlugin": "4.18"
1090
+ },
1091
+ "harmony": {
1092
+ "osVer": "5.0.0",
1093
+ "uniVer": "4.71",
1094
+ "unixVer": "4.71",
1095
+ "unixVaporVer": "5.0"
1096
+ }
1097
+ },
1098
+ "web": {
1099
+ "uniVer": "x",
1100
+ "unixVer": "x"
1101
+ }
1102
+ }
1103
+ */
1104
+ export interface IAppThemeFail extends IUniError {
1105
+ errCode: AppThemeErrorCode
1106
+ };
1107
+
1108
+ export type OnHostThemeChangeCallbackResult = {
1109
+ /**
1110
+ * 主题名称
1111
+ */
1112
+ hostTheme:
1113
+ /**
1114
+ * 亮色模式
1115
+ */
1116
+ 'light' |
1117
+ /**
1118
+ * 深色模式
1119
+ */
1120
+ 'dark'
1121
+ };
1122
+
1123
+ export type OnHostThemeChangeCallback = (result: OnHostThemeChangeCallbackResult) => void;
1124
+
1125
+
1126
+ export type OnThemeChangeCallbackResult = {
1127
+ /**
1128
+ * 主题名称
1129
+ */
1130
+ theme:
1131
+ /**
1132
+ * 亮色模式
1133
+ */
1134
+ 'light' |
1135
+ /**
1136
+ * 深色模式
1137
+ */
1138
+ 'dark'
1139
+ };
1140
+
1141
+ type OnThemeChangeCallback = (result: OnThemeChangeCallbackResult) => void;