@dcloudio/uni-app-x 0.7.59 → 0.7.61

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 (224) hide show
  1. package/package.json +2 -2
  2. package/types/app.d.ts +24 -9
  3. package/types/native/IUniElement.d.ts +1 -3
  4. package/types/native/UniCustomElement.d.ts +2 -2
  5. package/types/native/UniFormControl.d.ts +1 -1
  6. package/types/native/UniInputChangeEvent.d.ts +31 -0
  7. package/types/native/UniPage.d.ts +10 -2
  8. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  9. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  10. package/types/native/WebViewStyles.d.ts +1 -1
  11. package/types/native/global.d.ts +14 -0
  12. package/types/native/index.d.ts +1 -0
  13. package/types/page.d.ts +134 -22
  14. package/types/uni/uni-camera-global.d.ts +4 -0
  15. package/types/uni/uni-camera.d.ts +10 -9
  16. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  17. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  20. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  21. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  22. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  23. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -0
  24. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  25. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
  26. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -0
  27. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
  28. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +569 -139
  29. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  30. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  32. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
  33. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +22 -37
  34. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +12 -16
  35. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +5 -3
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +34 -15
  38. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
  39. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  40. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +32 -61
  41. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +45 -80
  42. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +5 -3
  43. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +2 -2
  44. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +13 -11
  45. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +16 -15
  46. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -10
  47. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +88 -4
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +54 -7
  50. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  51. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  52. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  53. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
  54. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +5 -5
  55. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
  56. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
  57. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
  58. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +16 -20
  59. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +209 -451
  60. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -698
  61. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  62. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +474 -184
  63. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
  64. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
  65. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +755 -405
  66. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
  67. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
  68. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
  69. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
  70. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +116 -124
  71. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  72. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  73. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  74. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +25 -26
  75. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +54 -84
  76. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  77. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -89
  78. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  79. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  80. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  81. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +300 -6
  82. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
  83. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
  84. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
  85. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
  86. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
  87. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
  88. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  89. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  90. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +0 -2
  91. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
  92. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +70 -82
  93. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +6 -5
  94. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +49 -72
  95. package/types/uni/uts-plugin-biz/global.d.ts +11 -0
  96. package/types/uni/uts-plugin-biz/index.d.ts +11 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
  98. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
  99. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
  100. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
  101. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
  102. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
  103. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
  104. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
  105. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
  106. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
  107. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
  108. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
  109. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
  110. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
  111. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
  112. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
  113. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
  114. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
  115. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
  116. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
  117. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
  118. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
  119. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
  120. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
  121. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
  122. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
  123. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
  124. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
  125. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
  126. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
  127. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
  128. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
  129. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
  130. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
  131. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
  132. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
  133. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +21 -16
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
  137. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
  138. package/types/uni/uts-plugin-extend/global.d.ts +0 -2
  139. package/types/uni/uts-plugin-extend/index.d.ts +0 -2
  140. package/types/uni-cloud/interface.d.ts +13 -9
  141. package/types/vue/LifeCycle.d.ts +723 -1
  142. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
  143. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
  144. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
  145. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
  146. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
  147. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
  148. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
  149. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
  150. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
  151. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
  152. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
  153. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
  154. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
  155. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
  156. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
  157. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
  158. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
  159. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
  160. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
  161. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
  162. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
  163. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
  164. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
  165. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
  166. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
  167. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
  168. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
  169. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
  170. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
  171. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
  172. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
  173. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
  174. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
  175. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
  176. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
  177. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
  178. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
  179. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
  180. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
  181. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
  182. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
  183. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
  184. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
  185. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
  186. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
  187. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
  188. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
  189. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
  190. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
  191. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
  192. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
  193. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
  194. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
  195. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
  196. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
  197. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
  198. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
  199. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
  200. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
  201. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
  202. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
  203. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
  204. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
  205. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
  206. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
  207. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
  208. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
  209. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
  210. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
  211. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
  212. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
  213. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
  214. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
  215. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
  216. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
  217. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
  218. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
  219. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
  220. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
  221. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
  222. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
  223. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
  224. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
@@ -1,1059 +0,0 @@
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
- "unixUtsPlugin": "4.18"
15
- },
16
- "ios": {
17
- "osVer": "12.0",
18
- "uniVer": "x",
19
- "uniUtsPlugin": "x",
20
- "unixVer": "4.18",
21
- "unixUtsPlugin": "4.18"
22
- },
23
- "harmony": {
24
- "osVer": "x",
25
- "uniVer": "x",
26
- "unixVer": "x"
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
- "unixUtsPlugin": "4.18"
98
- },
99
- "ios": {
100
- "osVer": "12.0",
101
- "uniVer": "x",
102
- "uniUtsPlugin": "x",
103
- "unixVer": "4.18",
104
- "unixUtsPlugin": "4.18"
105
- },
106
- "harmony": {
107
- "osVer": "x",
108
- "uniVer": "x",
109
- "unixVer": "x"
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
- "unixUtsPlugin": "4.18"
179
- },
180
- "ios": {
181
- "osVer": "12.0",
182
- "uniVer": "x",
183
- "uniUtsPlugin": "x",
184
- "unixVer": "4.18",
185
- "unixUtsPlugin": "4.18"
186
- }
187
- },
188
- "mp": {
189
- "weixin": {
190
- "hostVer": "x",
191
- "uniVer": "x",
192
- "unixVer": "x"
193
- },
194
- "alipay": {
195
- "hostVer": "x",
196
- "uniVer": "x",
197
- "unixVer": "x"
198
- },
199
- "baidu": {
200
- "hostVer": "x",
201
- "uniVer": "x",
202
- "unixVer": "x"
203
- },
204
- "toutiao": {
205
- "hostVer": "x",
206
- "uniVer": "x",
207
- "unixVer": "x"
208
- },
209
- "lark": {
210
- "hostVer": "x",
211
- "uniVer": "x",
212
- "unixVer": "x"
213
- },
214
- "qq": {
215
- "hostVer": "x",
216
- "uniVer": "x",
217
- "unixVer": "x"
218
- },
219
- "kuaishou": {
220
- "hostVer": "x",
221
- "uniVer": "x",
222
- "unixVer": "x"
223
- },
224
- "jd": {
225
- "hostVer": "x",
226
- "uniVer": "x",
227
- "unixVer": "x"
228
- }
229
- },
230
- "web": {
231
- "uniVer": "x",
232
- "unixVer": "x"
233
- }
234
- }
235
- * @example
236
- ```typescript
237
- uni.setAppTheme({
238
- theme: 'dark',
239
- success: (res) => {
240
- console.log('success')
241
- },
242
- fail: (err) => {
243
- console.log(err)
244
- },
245
- complete: (res) => {
246
- console.log('complete')
247
- }
248
- })
249
- ```
250
- */
251
- setAppTheme(options: SetAppThemeOptions): void
252
-
253
- /**
254
- * 开启监听应用主题变化
255
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onappthemechange
256
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onappthemechange
257
- * @uniPlatform
258
- {
259
- "app": {
260
- "android": {
261
- "osVer": "5.0",
262
- "uniVer": "x",
263
- "uniUtsPlugin": "x",
264
- "unixVer": "4.18",
265
- "unixUtsPlugin": "4.18"
266
- },
267
- "ios": {
268
- "osVer": "12.0",
269
- "uniVer": "x",
270
- "uniUtsPlugin": "x",
271
- "unixVer": "4.18",
272
- "unixUtsPlugin": "4.18"
273
- }
274
- },
275
- "mp": {
276
- "weixin": {
277
- "hostVer": "x",
278
- "uniVer": "x",
279
- "unixVer": "x"
280
- },
281
- "alipay": {
282
- "hostVer": "x",
283
- "uniVer": "x",
284
- "unixVer": "x"
285
- },
286
- "baidu": {
287
- "hostVer": "x",
288
- "uniVer": "x",
289
- "unixVer": "x"
290
- },
291
- "toutiao": {
292
- "hostVer": "x",
293
- "uniVer": "x",
294
- "unixVer": "x"
295
- },
296
- "lark": {
297
- "hostVer": "x",
298
- "uniVer": "x",
299
- "unixVer": "x"
300
- },
301
- "qq": {
302
- "hostVer": "x",
303
- "uniVer": "x",
304
- "unixVer": "x"
305
- },
306
- "kuaishou": {
307
- "hostVer": "x",
308
- "uniVer": "x",
309
- "unixVer": "x"
310
- },
311
- "jd": {
312
- "hostVer": "x",
313
- "uniVer": "x",
314
- "unixVer": "x"
315
- }
316
- },
317
- "web": {
318
- "uniVer": "x",
319
- "unixVer": "x"
320
- }
321
- }
322
- * @example
323
- ```typescript
324
- const id = uni.onAppThemeChange((res) => {
325
- console.log(res.appTheme)
326
- })
327
- ```
328
- */
329
- onAppThemeChange(callback: OnAppThemeChangeCallback): number
330
-
331
- /**
332
- * 取消监听应用主题变化
333
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offappthemechange
334
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offappthemechange
335
- * @uniPlatform
336
- {
337
- "app": {
338
- "android": {
339
- "osVer": "5.0",
340
- "uniVer": "x",
341
- "uniUtsPlugin": "x",
342
- "unixVer": "4.18",
343
- "unixUtsPlugin": "4.18"
344
- },
345
- "ios": {
346
- "osVer": "12.0",
347
- "uniVer": "x",
348
- "uniUtsPlugin": "x",
349
- "unixVer": "4.18",
350
- "unixUtsPlugin": "4.18"
351
- }
352
- },
353
- "web": {
354
- "uniVer": "x",
355
- "unixVer": "x"
356
- }
357
- }
358
- * @example
359
- ```typescript
360
- uni.offAppThemeChange(id)
361
- ```
362
- */
363
- offAppThemeChange(id: number): void
364
-
365
- /**
366
- * 监听宿主题状态变化。
367
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#onhostthemechange
368
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#onhostthemechange
369
- * @uniPlatform {
370
- * "app": {
371
- * "android": {
372
- * "osVer": "5.0",
373
- * "uniVer": "x",
374
- * "unixVer": "x"
375
- * },
376
- * "ios": {
377
- * "osVer": "9.0",
378
- * "uniVer": "x",
379
- * "unixVer": "x"
380
- * },
381
- * "harmony": {
382
- * "osVer": "x",
383
- * "uniVer": "x",
384
- * "unixVer": "x"
385
- * }
386
- * },
387
- * "mp": {
388
- * "weixin": {
389
- * "hostVer": "√",
390
- * "uniVer": "x",
391
- * "unixVer": "4.41"
392
- * },
393
- * "alipay": {
394
- * "hostVer": "x",
395
- * "uniVer": "x",
396
- * "unixVer": "x"
397
- * },
398
- * "baidu": {
399
- * "hostVer": "x",
400
- * "uniVer": "x",
401
- * "unixVer": "x"
402
- * },
403
- * "toutiao": {
404
- * "hostVer": "x",
405
- * "uniVer": "x",
406
- * "unixVer": "x"
407
- * },
408
- * "lark": {
409
- * "hostVer": "x",
410
- * "uniVer": "x",
411
- * "unixVer": "x"
412
- * },
413
- * "qq": {
414
- * "hostVer": "x",
415
- * "uniVer": "x",
416
- * "unixVer": "x"
417
- * },
418
- * "kuaishou": {
419
- * "hostVer": "x",
420
- * "uniVer": "x",
421
- * "unixVer": "x"
422
- * },
423
- * "jd": {
424
- * "hostVer": "x",
425
- * "uniVer": "x",
426
- * "unixVer": "x"
427
- * }
428
- * },
429
- * "web": {
430
- * "uniVer": "x",
431
- * "unixVer": "4.35"
432
- * }
433
- * }
434
- */
435
- onHostThemeChange(callback: OnHostThemeChangeCallback): number;
436
- /**
437
- * 取消监听宿主题状态变化。
438
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offhostthemechange
439
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#offhostthemechange
440
- * @uniPlatform {
441
- * "app": {
442
- * "android": {
443
- * "osVer": "5.0",
444
- * "uniVer": "x",
445
- * "unixVer": "x"
446
- * },
447
- * "ios": {
448
- * "osVer": "9.0",
449
- * "uniVer": "x",
450
- * "unixVer": "x"
451
- * },
452
- * "harmony": {
453
- * "osVer": "x",
454
- * "uniVer": "x",
455
- * "unixVer": "x"
456
- * }
457
- * },
458
- * "mp": {
459
- * "weixin": {
460
- * "hostVer": "x",
461
- * "uniVer": "x",
462
- * "unixVer": "4.41"
463
- * },
464
- * "alipay": {
465
- * "hostVer": "x",
466
- * "uniVer": "x",
467
- * "unixVer": "x"
468
- * },
469
- * "baidu": {
470
- * "hostVer": "x",
471
- * "uniVer": "x",
472
- * "unixVer": "x"
473
- * },
474
- * "toutiao": {
475
- * "hostVer": "x",
476
- * "uniVer": "x",
477
- * "unixVer": "x"
478
- * },
479
- * "lark": {
480
- * "hostVer": "x",
481
- * "uniVer": "x",
482
- * "unixVer": "x"
483
- * },
484
- * "qq": {
485
- * "hostVer": "x",
486
- * "uniVer": "x",
487
- * "unixVer": "x"
488
- * },
489
- * "kuaishou": {
490
- * "hostVer": "x",
491
- * "uniVer": "x",
492
- * "unixVer": "x"
493
- * },
494
- * "jd": {
495
- * "hostVer": "x",
496
- * "uniVer": "x",
497
- * "unixVer": "x"
498
- * }
499
- * },
500
- * "web": {
501
- * "uniVer": "x",
502
- * "unixVer": "4.35"
503
- * }
504
- * }
505
- */
506
- offHostThemeChange(id: number): void;
507
-
508
-
509
- /**
510
- * 监听系统主题状态变化。
511
- * @deprecated 已废弃,在web、小程序上推荐使用 onHostThemeChange
512
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#onthemechange
513
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#onthemechange
514
- * @uniPlatform {
515
- * "app": {
516
- * "android": {
517
- * "osVer": "5.0",
518
- * "uniVer": "3.6.9",
519
- * "unixVer": "x"
520
- * },
521
- * "ios": {
522
- * "osVer": "9.0",
523
- * "uniVer": "2.6.5",
524
- * "unixVer": "x"
525
- * },
526
- * "harmony": {
527
- * "osVer": "x",
528
- * "uniVer": "x",
529
- * "unixVer": "x"
530
- * }
531
- * },
532
- * "mp": {
533
- * "weixin": {
534
- * "hostVer": "√",
535
- * "uniVer": "2.11.0",
536
- * "unixVer": "4.41"
537
- * },
538
- * "alipay": {
539
- * "hostVer": "x",
540
- * "uniVer": "x",
541
- * "unixVer": "x"
542
- * },
543
- * "baidu": {
544
- * "hostVer": "x",
545
- * "uniVer": "x",
546
- * "unixVer": "x"
547
- * },
548
- * "toutiao": {
549
- * "hostVer": "x",
550
- * "uniVer": "x",
551
- * "unixVer": "x"
552
- * },
553
- * "lark": {
554
- * "hostVer": "√",
555
- * "uniVer": "5.3.0",
556
- * "unixVer": "x"
557
- * },
558
- * "qq": {
559
- * "hostVer": "x",
560
- * "uniVer": "x",
561
- * "unixVer": "x"
562
- * },
563
- * "kuaishou": {
564
- * "hostVer": "x",
565
- * "uniVer": "x",
566
- * "unixVer": "x"
567
- * },
568
- * "jd": {
569
- * "hostVer": "x",
570
- * "uniVer": "x",
571
- * "unixVer": "x"
572
- * }
573
- * },
574
- * "web": {
575
- * "uniVer": "3.6.9",
576
- * "unixVer": "4.0"
577
- * }
578
- * }
579
- */
580
- onThemeChange(callback: OnThemeChangeCallback): void;
581
- /**
582
- * 取消监听系统主题状态变化。
583
- * @deprecated 已废弃,在web、小程序上推荐使用 offHostThemeChange
584
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offthemechange
585
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#offthemechange
586
- * @uniPlatform {
587
- * "app": {
588
- * "android": {
589
- * "osVer": "5.0",
590
- * "uniVer": "3.6.9",
591
- * "unixVer": "x"
592
- * },
593
- * "ios": {
594
- * "osVer": "9.0",
595
- * "uniVer": "2.6.5",
596
- * "unixVer": "x"
597
- * },
598
- * "harmony": {
599
- * "osVer": "x",
600
- * "uniVer": "x",
601
- * "unixVer": "x"
602
- * }
603
- * },
604
- * "mp": {
605
- * "weixin": {
606
- * "hostVer": "√",
607
- * "uniVer": "2.11.0",
608
- * "unixVer": "4.41"
609
- * },
610
- * "alipay": {
611
- * "hostVer": "x",
612
- * "uniVer": "x",
613
- * "unixVer": "x"
614
- * },
615
- * "baidu": {
616
- * "hostVer": "x",
617
- * "uniVer": "x",
618
- * "unixVer": "x"
619
- * },
620
- * "toutiao": {
621
- * "hostVer": "x",
622
- * "uniVer": "x",
623
- * "unixVer": "x"
624
- * },
625
- * "lark": {
626
- * "hostVer": "√",
627
- * "uniVer": "5.3.0",
628
- * "unixVer": "x"
629
- * },
630
- * "qq": {
631
- * "hostVer": "x",
632
- * "uniVer": "x",
633
- * "unixVer": "x"
634
- * },
635
- * "kuaishou": {
636
- * "hostVer": "x",
637
- * "uniVer": "x",
638
- * "unixVer": "x"
639
- * },
640
- * "jd": {
641
- * "hostVer": "x",
642
- * "uniVer": "x",
643
- * "unixVer": "x"
644
- * }
645
- * },
646
- * "web": {
647
- * "uniVer": "3.6.9",
648
- * "unixVer": "4.0"
649
- * }
650
- * }
651
- */
652
- offThemeChange(callback: OnThemeChangeCallback): void;
653
- }
654
-
655
- /**
656
- * @uniPlatform
657
- {
658
- "app": {
659
- "android": {
660
- "osVer": "5.0",
661
- "uniVer": "x",
662
- "uniUtsPlugin": "x",
663
- "unixVer": "4.18",
664
- "unixUtsPlugin": "4.18"
665
- },
666
- "ios": {
667
- "osVer": "12.0",
668
- "uniVer": "x",
669
- "uniUtsPlugin": "x",
670
- "unixVer": "4.18",
671
- "unixUtsPlugin": "4.18"
672
- },
673
- "harmony": {
674
- "osVer": "x",
675
- "uniVer": "x",
676
- "unixVer": "x"
677
- }
678
- },
679
- "web": {
680
- "uniVer": "x",
681
- "unixVer": "x"
682
- }
683
- }
684
- */
685
- export type OsThemeChangeResult = {
686
- /**
687
- * 系统主题
688
- * @uniPlatform
689
- {
690
- "app": {
691
- "android": {
692
- "osVer": "5.0",
693
- "uniVer": "x",
694
- "uniUtsPlugin": "x",
695
- "unixVer": "4.18",
696
- "unixUtsPlugin": "4.18"
697
- },
698
- "ios": {
699
- "osVer": "12.0",
700
- "uniVer": "x",
701
- "uniUtsPlugin": "x",
702
- "unixVer": "4.18",
703
- "unixUtsPlugin": "4.18"
704
- },
705
- "harmony": {
706
- "osVer": "x",
707
- "uniVer": "x",
708
- "unixVer": "x"
709
- }
710
- },
711
- "web": {
712
- "uniVer": "x",
713
- "unixVer": "x"
714
- }
715
- }
716
- */
717
- osTheme: string
718
- }
719
-
720
- /**
721
- * @uniPlatform
722
- {
723
- "app": {
724
- "android": {
725
- "osVer": "5.0",
726
- "uniVer": "x",
727
- "uniUtsPlugin": "x",
728
- "unixVer": "4.18",
729
- "unixUtsPlugin": "4.18"
730
- },
731
- "ios": {
732
- "osVer": "12.0",
733
- "uniVer": "x",
734
- "uniUtsPlugin": "x",
735
- "unixVer": "4.18",
736
- "unixUtsPlugin": "4.18"
737
- },
738
- "harmony": {
739
- "osVer": "x",
740
- "uniVer": "x",
741
- "unixVer": "x"
742
- }
743
- },
744
- "web": {
745
- "uniVer": "x",
746
- "unixVer": "x"
747
- }
748
- }
749
- */
750
- export type AppThemeChangeResult = {
751
- /**
752
- * 应用主题
753
- * @uniPlatform
754
- {
755
- "app": {
756
- "android": {
757
- "osVer": "5.0",
758
- "uniVer": "x",
759
- "uniUtsPlugin": "x",
760
- "unixVer": "4.18",
761
- "unixUtsPlugin": "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": "x",
772
- "uniVer": "x",
773
- "unixVer": "x"
774
- }
775
- },
776
- "web": {
777
- "uniVer": "x",
778
- "unixVer": "x"
779
- }
780
- }
781
- */
782
- appTheme: string
783
- }
784
-
785
- /*
786
- * 系统主题相关类型定义
787
- */
788
- export type OnOsThemeChangeCallback = (res: OsThemeChangeResult) => void
789
- export type OnOsThemeChange = (callback: OnOsThemeChangeCallback) => number
790
- export type OffOsThemeChange = (id: number) => void
791
-
792
- export type OnHostThemeChange = (callback: OnHostThemeChangeCallback) => number
793
- export type OffHostThemeChange = (id: number) => void;
794
- /*
795
- * 应用主题相关类型定义
796
- */
797
- export type SetAppTheme = (options: SetAppThemeOptions) => void
798
- export type OnAppThemeChangeCallback = (res: AppThemeChangeResult) => void
799
- export type OnAppThemeChange = (callback: OnAppThemeChangeCallback) => number
800
- export type OffAppThemeChange = (id: number) => void
801
- export type SetAppThemeSuccessResult = {
802
- theme: string
803
- }
804
- export type SetAppThemeSuccessCallback = (result: SetAppThemeSuccessResult) => void;
805
- export type SetAppThemeFailCallback = (result: AppThemeFail) => void;
806
- export type SetAppThemeCompleteCallback = (result: any) => void;
807
-
808
- /**
809
- * @uniPlatform
810
- {
811
- "app": {
812
- "android": {
813
- "osVer": "5.0",
814
- "uniVer": "x",
815
- "uniUtsPlugin": "x",
816
- "unixVer": "4.18",
817
- "unixUtsPlugin": "4.18"
818
- },
819
- "ios": {
820
- "osVer": "12.0",
821
- "uniVer": "x",
822
- "uniUtsPlugin": "x",
823
- "unixVer": "4.18",
824
- "unixUtsPlugin": "4.18"
825
- },
826
- "harmony": {
827
- "osVer": "x",
828
- "uniVer": "x",
829
- "unixVer": "x"
830
- }
831
- },
832
- "web": {
833
- "uniVer": "x",
834
- "unixVer": "x"
835
- }
836
- }
837
- */
838
- export type SetAppThemeOptions = {
839
- /**
840
- * 主题
841
- * @uniPlatform
842
- {
843
- "app": {
844
- "android": {
845
- "osVer": "5.0",
846
- "uniVer": "x",
847
- "uniUtsPlugin": "x",
848
- "unixVer": "4.18",
849
- "unixUtsPlugin": "4.18"
850
- },
851
- "ios": {
852
- "osVer": "12.0",
853
- "uniVer": "x",
854
- "uniUtsPlugin": "x",
855
- "unixVer": "4.18",
856
- "unixUtsPlugin": "4.18"
857
- },
858
- "harmony": {
859
- "osVer": "x",
860
- "uniVer": "x",
861
- "unixVer": "x"
862
- }
863
- },
864
- "web": {
865
- "uniVer": "x",
866
- "unixVer": "x"
867
- }
868
- }
869
- */
870
- theme: 'light' | 'dark' | 'auto'
871
-
872
- /**
873
- * 接口调用成功的回调函数
874
- * @defaultValue null
875
- * @uniPlatform
876
- {
877
- "app": {
878
- "android": {
879
- "osVer": "5.0",
880
- "uniVer": "x",
881
- "uniUtsPlugin": "x",
882
- "unixVer": "4.18",
883
- "unixUtsPlugin": "4.18"
884
- },
885
- "ios": {
886
- "osVer": "12.0",
887
- "uniVer": "x",
888
- "uniUtsPlugin": "x",
889
- "unixVer": "4.18",
890
- "unixUtsPlugin": "4.18"
891
- },
892
- "harmony": {
893
- "osVer": "x",
894
- "uniVer": "x",
895
- "unixVer": "x"
896
- }
897
- },
898
- "web": {
899
- "uniVer": "x",
900
- "unixVer": "x"
901
- }
902
- }
903
- */
904
- success?: SetAppThemeSuccessCallback
905
-
906
- /**
907
- * 接口调用失败的回调函数
908
- * @defaultValue null
909
- * @uniPlatform
910
- {
911
- "app": {
912
- "android": {
913
- "osVer": "5.0",
914
- "uniVer": "x",
915
- "uniUtsPlugin": "x",
916
- "unixVer": "4.18",
917
- "unixUtsPlugin": "4.18"
918
- },
919
- "ios": {
920
- "osVer": "12.0",
921
- "uniVer": "x",
922
- "uniUtsPlugin": "x",
923
- "unixVer": "4.18",
924
- "unixUtsPlugin": "4.18"
925
- },
926
- "harmony": {
927
- "osVer": "x",
928
- "uniVer": "x",
929
- "unixVer": "x"
930
- }
931
- },
932
- "web": {
933
- "uniVer": "x",
934
- "unixVer": "x"
935
- }
936
- }
937
- */
938
- fail?: SetAppThemeFailCallback
939
-
940
- /**
941
- * 接口调用结束的回调函数(调用成功、失败都会执行)
942
- * @defaultValue null
943
- * @uniPlatform
944
- {
945
- "app": {
946
- "android": {
947
- "osVer": "5.0",
948
- "uniVer": "x",
949
- "uniUtsPlugin": "x",
950
- "unixVer": "4.18",
951
- "unixUtsPlugin": "4.18"
952
- },
953
- "ios": {
954
- "osVer": "12.0",
955
- "uniVer": "x",
956
- "uniUtsPlugin": "x",
957
- "unixVer": "4.18",
958
- "unixUtsPlugin": "4.18"
959
- },
960
- "harmony": {
961
- "osVer": "x",
962
- "uniVer": "x",
963
- "unixVer": "x"
964
- }
965
- },
966
- "web": {
967
- "uniVer": "x",
968
- "unixVer": "x"
969
- }
970
- }
971
- */
972
- complete?: SetAppThemeCompleteCallback
973
- }
974
-
975
- /**
976
- * 错误码
977
- * - 702001 参数错误
978
- * - 2002000 未知错误
979
- * @uniPlatform
980
- {
981
- "app": {
982
- "android": {
983
- "osVer": "5.0",
984
- "uniVer": "x",
985
- "uniUtsPlugin": "x",
986
- "unixVer": "4.18",
987
- "unixUtsPlugin": "4.18"
988
- },
989
- "ios": {
990
- "osVer": "12.0",
991
- "uniVer": "x",
992
- "uniUtsPlugin": "x",
993
- "unixVer": "4.18",
994
- "unixUtsPlugin": "4.18"
995
- },
996
- "harmony": {
997
- "osVer": "x",
998
- "uniVer": "x",
999
- "unixVer": "x"
1000
- }
1001
- },
1002
- "web": {
1003
- "uniVer": "x",
1004
- "unixVer": "x"
1005
- }
1006
- }
1007
- */
1008
- export type AppThemeErrorCode = 702001 | 2002000;
1009
- export type AppThemeFail = IAppThemeFail;
1010
- /**
1011
- * @uniPlatform
1012
- {
1013
- "app": {
1014
- "android": {
1015
- "osVer": "5.0",
1016
- "uniVer": "x",
1017
- "uniUtsPlugin": "x",
1018
- "unixVer": "4.18",
1019
- "unixUtsPlugin": "4.18"
1020
- },
1021
- "ios": {
1022
- "osVer": "12.0",
1023
- "uniVer": "x",
1024
- "uniUtsPlugin": "x",
1025
- "unixVer": "4.18",
1026
- "unixUtsPlugin": "4.18"
1027
- },
1028
- "harmony": {
1029
- "osVer": "x",
1030
- "uniVer": "x",
1031
- "unixVer": "x"
1032
- }
1033
- },
1034
- "web": {
1035
- "uniVer": "x",
1036
- "unixVer": "x"
1037
- }
1038
- }
1039
- */
1040
- export interface IAppThemeFail extends IUniError {
1041
- errCode: AppThemeErrorCode
1042
- };
1043
-
1044
- export type OnHostThemeChangeCallbackResult = {
1045
- /**
1046
- * 主题名称
1047
- */
1048
- hostTheme: 'dark' | 'light'
1049
- };
1050
- export type OnHostThemeChangeCallback = (result: OnHostThemeChangeCallbackResult) => void;
1051
-
1052
-
1053
- export type OnThemeChangeCallbackResult = {
1054
- /**
1055
- * 主题名称
1056
- */
1057
- theme: 'dark' | 'light'
1058
- };
1059
- export type OnThemeChangeCallback = (result: OnThemeChangeCallbackResult) => void;