@dcloudio/uni-app-x 0.7.20 → 0.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +27 -27
  6. package/types/app.d.ts +1002 -1002
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/CanvasRenderingContext2D.d.ts +2048 -2048
  11. package/types/native/DOMRect.d.ts +56 -56
  12. package/types/native/DrawableContext.d.ts +162 -162
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +2859 -2859
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniObjectElement.d.ts +124 -124
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +240 -240
  22. package/types/native/SnapshotOptions.d.ts +63 -63
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniApp.d.ts +205 -205
  27. package/types/native/UniCallbackWrapper.d.ts +7 -7
  28. package/types/native/UniCanvasElement.d.ts +9 -9
  29. package/types/native/UniCustomEvent.d.ts +24 -24
  30. package/types/native/UniDocument.d.ts +83 -83
  31. package/types/native/UniElement.d.ts +79 -79
  32. package/types/native/UniError.d.ts +70 -70
  33. package/types/native/UniEvent.d.ts +92 -92
  34. package/types/native/UniFormControl.d.ts +8 -8
  35. package/types/native/UniFormControlElement.d.ts +14 -14
  36. package/types/native/UniImageErrorEvent.d.ts +33 -33
  37. package/types/native/UniImageLoadEvent.d.ts +37 -37
  38. package/types/native/UniInputBlurEvent.d.ts +36 -36
  39. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  40. package/types/native/UniInputEvent.d.ts +38 -38
  41. package/types/native/UniInputFocusEvent.d.ts +53 -53
  42. package/types/native/UniNativePage.d.ts +270 -270
  43. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  44. package/types/native/UniPageEvent.d.ts +10 -10
  45. package/types/native/UniPageManager.d.ts +27 -20
  46. package/types/native/UniPageScrollEvent.d.ts +13 -13
  47. package/types/native/UniPointerEvent.d.ts +74 -74
  48. package/types/native/UniProvider.d.ts +15 -15
  49. package/types/native/UniRefresherEvent.d.ts +18 -18
  50. package/types/native/UniResizeEvent.d.ts +34 -34
  51. package/types/native/UniResizeObserver.d.ts +184 -184
  52. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  53. package/types/native/UniScrollEvent.d.ts +42 -42
  54. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  55. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  56. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  57. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  58. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  59. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  60. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  61. package/types/native/UniTabTapEvent.d.ts +18 -18
  62. package/types/native/UniTabsElement.d.ts +59 -59
  63. package/types/native/UniTextElement.d.ts +34 -34
  64. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  65. package/types/native/UniTouchEvent.d.ts +64 -64
  66. package/types/native/UniVideoElement.d.ts +75 -75
  67. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  68. package/types/native/UniWebViewElement.d.ts +10 -10
  69. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  70. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  71. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  72. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  73. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  74. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  75. package/types/native/WebViewStyles.d.ts +20 -20
  76. package/types/native/global.d.ts +598 -598
  77. package/types/native/index.d.ts +71 -71
  78. package/types/native-global/index.d.ts +1 -1
  79. package/types/page.d.ts +1682 -1682
  80. package/types/process.d.ts +5 -5
  81. package/types/uni/base/index.d.ts +3 -3
  82. package/types/uni/env/index.d.ts +103 -103
  83. package/types/uni/global.d.ts +6 -6
  84. package/types/uni/index.d.ts +4 -4
  85. package/types/uni/uts-plugin-api/global.d.ts +58 -58
  86. package/types/uni/uts-plugin-api/index.d.ts +58 -58
  87. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
  88. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
  90. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +12 -12
  91. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +5 -5
  92. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +50 -50
  93. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  94. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  95. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  96. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -60
  97. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -29
  98. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +161 -161
  99. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  100. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  101. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  102. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -20
  103. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -9
  104. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +264 -264
  105. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  106. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  107. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  108. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  109. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  110. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  111. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  112. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  113. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  114. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  115. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  116. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  117. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  118. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  119. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -464
  120. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  121. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  122. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  123. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  124. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  125. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1336 -1336
  126. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  127. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  128. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
  129. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  130. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  131. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +91 -91
  132. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  133. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  134. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  135. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
  136. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
  137. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1840 -1840
  138. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  139. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  140. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  141. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  142. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +329 -329
  143. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  144. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  145. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  146. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  147. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  148. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  149. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  150. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  151. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  152. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  153. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  154. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  155. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  158. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  159. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  160. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +563 -564
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  167. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  168. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  169. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  170. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  171. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  172. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  173. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  174. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +30 -30
  175. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +14 -14
  176. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +374 -374
  177. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  178. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  179. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2131 -2131
  183. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  184. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  185. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +169 -169
  186. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  187. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  188. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  189. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  190. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  191. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  192. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  193. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  194. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  195. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  196. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +564 -564
  197. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  198. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  199. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  200. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
  201. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
  202. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1339 -1339
  203. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  204. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  205. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  206. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  207. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  208. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1493 -1493
  209. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  210. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  211. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  212. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  213. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  214. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  215. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  216. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  217. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  218. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  219. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +240 -240
  220. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  221. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  222. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  223. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  224. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  225. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  226. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  227. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  228. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  229. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  230. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  231. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2165 -2165
  232. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  233. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  234. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  235. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  236. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  237. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  238. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  239. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  240. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  241. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  242. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  243. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1086 -1086
  244. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  245. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  246. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  247. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  248. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  249. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  250. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +844 -844
  251. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  252. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  253. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  254. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  255. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
  256. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  257. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  258. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  259. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  260. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  261. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  262. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  263. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  264. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  265. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  266. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  267. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  268. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  269. package/types/uni/uts-plugin-extend/README.md +3 -3
  270. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  271. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  272. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  273. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  274. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  275. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  276. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  277. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  278. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  279. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  280. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  281. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  282. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  283. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  284. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  285. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  286. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  287. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  288. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  289. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  290. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  291. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  292. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  293. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  294. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  295. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  296. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  297. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  298. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  299. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  300. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  301. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  302. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  303. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  304. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  305. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  306. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  307. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  308. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  309. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  310. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  311. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  312. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  313. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  314. package/types/uni-cloud/index.d.ts +67 -67
  315. package/types/uni-cloud/interface.d.ts +987 -987
  316. package/types/uni-cloud/unicloud-db/index.ts +314 -314
  317. package/types/uni-global/index.d.ts +1 -1
  318. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  319. package/types/vue/LifeCycle.d.ts +55 -55
  320. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  321. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  322. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  323. package/types/vue/SliderChangeEvent.d.ts +35 -35
  324. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  325. package/types/vue/UniCanvasElement.d.ts +275 -275
  326. package/types/vue/UniCloudDBElement.d.ts +217 -217
  327. package/types/vue/UniFormElement.d.ts +54 -54
  328. package/types/vue/UniNavigatorElement.d.ts +11 -11
  329. package/types/vue/global.d.ts +191 -191
  330. package/types/vue/index.d.ts +10 -10
  331. package/types/vue-global/index.d.ts +1 -1
  332. package/uts-plugin.d.ts +27 -27
@@ -1,2131 +1,2131 @@
1
- export interface Uni {
2
- /**
3
- * getSystemInfo()
4
- * @description
5
- * 异步获取系统信息
6
- * @param {GetSystemInfoOptions} options
7
- * @return {void}
8
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/info.html
9
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-system-info.html
10
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-system-info.html
11
- * @uniPlatform
12
- * {
13
- * "app": {
14
- * "android": {
15
- * "osVer": "5.0",
16
- * "uniVer": "√",
17
- * "unixVer": "3.9+"
18
- * },
19
- * "ios": {
20
- * "osVer": "12.0",
21
- * "uniVer": "√",
22
- * "unixVer": "4.11"
23
- * },
24
- * "harmony": {
25
- * "osVer": "3.0",
26
- * "uniVer": "4.23",
27
- * "unixVer": "x"
28
- * }
29
- * },
30
- * "web": {
31
- * "uniVer": "√",
32
- * "unixVer": "4.0"
33
- * }
34
- * }
35
- * @example
36
- ```typescript
37
- uni.getSystemInfo({
38
- success(e) {
39
- console.log("success :",e);
40
- },
41
- complete(e) {
42
- console.log("complete :",e);
43
- }
44
- })
45
- ```
46
- */
47
- getSystemInfo(options: GetSystemInfoOptions): void;
48
-
49
- /**
50
- * getSystemInfoSync()
51
- * @description
52
- * 同步获取系统信息
53
- * @param {void}
54
- * @return {GetSystemInfoResult}
55
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/info.html#getsysteminfosync
56
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-system-info.html#getsysteminfosync
57
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-system-info.html#getsysteminfosync
58
- * @uniPlatform
59
- * {
60
- * "app": {
61
- * "android": {
62
- * "osVer": "5.0",
63
- * "uniVer": "√",
64
- * "unixVer": "3.9+"
65
- * },
66
- * "ios": {
67
- * "osVer": "12.0",
68
- * "uniVer": "√",
69
- * "unixVer": "4.11"
70
- * }
71
- * },
72
- * "web": {
73
- * "uniVer": "√",
74
- * "unixVer": "4.0"
75
- * }
76
- * }
77
- * @example
78
- ```typescript
79
- uni.getSystemInfoSync()
80
- ```
81
- */
82
- getSystemInfoSync(): GetSystemInfoResult;
83
-
84
- /**
85
- * getWindowInfo()
86
- * @description
87
- * 同步获取窗口信息
88
- * @param {void}
89
- * @return {GetWindowInfoResult} result
90
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/getWindowInfo.html
91
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-window-info.html
92
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-window-info.html
93
- * @uniPlatform
94
- * {
95
- * "app": {
96
- * "android": {
97
- * "osVer": "5.0",
98
- * "uniVer": "√",
99
- * "unixVer": "3.9+"
100
- * },
101
- * "ios": {
102
- * "osVer": "12.0",
103
- * "uniVer": "√",
104
- * "unixVer": "4.11"
105
- * }
106
- * },
107
- * "web": {
108
- * "uniVer": "√",
109
- * "unixVer": "4.0"
110
- * }
111
- * }
112
- * @example
113
- ```typescript
114
- uni.getWindowInfo()
115
- ```
116
- */
117
- getWindowInfo(): GetWindowInfoResult;
118
- }
119
-
120
- export type GetSystemInfo = (options: GetSystemInfoOptions) => void;
121
- export type GetSystemInfoSync = () => GetSystemInfoResult;
122
- export type GetWindowInfo = () => GetWindowInfoResult;
123
- export type SafeArea = {
124
- /**
125
- * 安全区域左上角横坐标,单位为px
126
- *
127
- * @uniPlatform
128
- * {
129
- * "app": {
130
- * "android": {
131
- * "osVer": "5.0",
132
- * "uniVer": "√",
133
- * "unixVer": "3.9+"
134
- * },
135
- * "ios": {
136
- * "osVer": "12.0",
137
- * "uniVer": "√",
138
- * "unixVer": "4.11"
139
- * },
140
- * "harmony": {
141
- * "osVer": "3.0",
142
- * "uniVer": "4.23",
143
- * "unixVer": "x"
144
- * }
145
- * },
146
- * "web": {
147
- * "uniVer": "√",
148
- * "unixVer": "4.0"
149
- * }
150
- * }
151
- */
152
- left: number,
153
- /**
154
- * 安全区域右下角横坐标,单位为px
155
- *
156
- * @uniPlatform
157
- * {
158
- * "app": {
159
- * "android": {
160
- * "osVer": "5.0",
161
- * "uniVer": "√",
162
- * "unixVer": "3.9+"
163
- * },
164
- * "ios": {
165
- * "osVer": "12.0",
166
- * "uniVer": "√",
167
- * "unixVer": "4.11"
168
- * },
169
- * "harmony": {
170
- * "osVer": "3.0",
171
- * "uniVer": "4.23",
172
- * "unixVer": "x"
173
- * }
174
- * },
175
- * "web": {
176
- * "uniVer": "√",
177
- * "unixVer": "4.0"
178
- * }
179
- * }
180
- */
181
- right: number,
182
- /**
183
- * 安全区域左上角纵坐标,单位为px
184
- *
185
- * @uniPlatform
186
- * {
187
- * "app": {
188
- * "android": {
189
- * "osVer": "5.0",
190
- * "uniVer": "√",
191
- * "unixVer": "3.9+"
192
- * },
193
- * "ios": {
194
- * "osVer": "12.0",
195
- * "uniVer": "√",
196
- * "unixVer": "4.11"
197
- * },
198
- * "harmony": {
199
- * "osVer": "3.0",
200
- * "uniVer": "4.23",
201
- * "unixVer": "x"
202
- * }
203
- * },
204
- * "web": {
205
- * "uniVer": "√",
206
- * "unixVer": "4.0"
207
- * }
208
- * }
209
- */
210
- top: number,
211
- /**
212
- * 安全区域右下角纵坐标,单位为px
213
- *
214
- * @uniPlatform
215
- * {
216
- * "app": {
217
- * "android": {
218
- * "osVer": "5.0",
219
- * "uniVer": "√",
220
- * "unixVer": "3.9+"
221
- * },
222
- * "ios": {
223
- * "osVer": "12.0",
224
- * "uniVer": "√",
225
- * "unixVer": "4.11"
226
- * },
227
- * "harmony": {
228
- * "osVer": "3.0",
229
- * "uniVer": "4.23",
230
- * "unixVer": "x"
231
- * }
232
- * },
233
- * "web": {
234
- * "uniVer": "√",
235
- * "unixVer": "4.0"
236
- * }
237
- * }
238
- */
239
- bottom: number,
240
- /**
241
- * 安全区域的宽度,单位为px
242
- *
243
- * @uniPlatform
244
- * {
245
- * "app": {
246
- * "android": {
247
- * "osVer": "5.0",
248
- * "uniVer": "√",
249
- * "unixVer": "3.9+"
250
- * },
251
- * "ios": {
252
- * "osVer": "12.0",
253
- * "uniVer": "√",
254
- * "unixVer": "4.11"
255
- * },
256
- * "harmony": {
257
- * "osVer": "3.0",
258
- * "uniVer": "4.23",
259
- * "unixVer": "x"
260
- * }
261
- * },
262
- * "web": {
263
- * "uniVer": "√",
264
- * "unixVer": "4.0"
265
- * }
266
- * }
267
- */
268
- width: number,
269
- /**
270
- * 安全区域的高度,单位为px
271
- *
272
- * @uniPlatform
273
- * {
274
- * "app": {
275
- * "android": {
276
- * "osVer": "5.0",
277
- * "uniVer": "√",
278
- * "unixVer": "3.9+"
279
- * },
280
- * "ios": {
281
- * "osVer": "12.0",
282
- * "uniVer": "√",
283
- * "unixVer": "4.11"
284
- * },
285
- * "harmony": {
286
- * "osVer": "3.0",
287
- * "uniVer": "4.23",
288
- * "unixVer": "x"
289
- * }
290
- * },
291
- * "web": {
292
- * "uniVer": "√",
293
- * "unixVer": "4.0"
294
- * }
295
- * }
296
- */
297
- height: number
298
- };
299
- export type SafeAreaInsets = {
300
- /**
301
- * 安全区域左侧插入位置(距离左边边界距离),单位为px
302
- *
303
- * @uniPlatform
304
- * {
305
- * "app": {
306
- * "android": {
307
- * "osVer": "5.0",
308
- * "uniVer": "√",
309
- * "unixVer": "3.9+"
310
- * },
311
- * "ios": {
312
- * "osVer": "12.0",
313
- * "uniVer": "√",
314
- * "unixVer": "4.11"
315
- * },
316
- * "harmony": {
317
- * "osVer": "3.0",
318
- * "uniVer": "4.23",
319
- * "unixVer": "x"
320
- * }
321
- * },
322
- * "web": {
323
- * "uniVer": "√",
324
- * "unixVer": "4.0"
325
- * }
326
- * }
327
- */
328
- left: number,
329
- /**
330
- * 安全区域右侧插入位置(距离右边边界距离),单位为px
331
- *
332
- * @uniPlatform
333
- * {
334
- * "app": {
335
- * "android": {
336
- * "osVer": "5.0",
337
- * "uniVer": "√",
338
- * "unixVer": "3.9+"
339
- * },
340
- * "ios": {
341
- * "osVer": "12.0",
342
- * "uniVer": "√",
343
- * "unixVer": "4.11"
344
- * },
345
- * "harmony": {
346
- * "osVer": "3.0",
347
- * "uniVer": "4.23",
348
- * "unixVer": "x"
349
- * }
350
- * },
351
- * "web": {
352
- * "uniVer": "√",
353
- * "unixVer": "4.0"
354
- * }
355
- * }
356
- */
357
- right: number,
358
- /**
359
- * 安全区顶部插入位置(距离顶部边界距离),单位为px
360
- *
361
- * @uniPlatform
362
- * {
363
- * "app": {
364
- * "android": {
365
- * "osVer": "5.0",
366
- * "uniVer": "√",
367
- * "unixVer": "3.9+"
368
- * },
369
- * "ios": {
370
- * "osVer": "12.0",
371
- * "uniVer": "√",
372
- * "unixVer": "4.11"
373
- * },
374
- * "harmony": {
375
- * "osVer": "3.0",
376
- * "uniVer": "4.23",
377
- * "unixVer": "x"
378
- * }
379
- * },
380
- * "web": {
381
- * "uniVer": "√",
382
- * "unixVer": "4.0"
383
- * }
384
- * }
385
- */
386
- top: number,
387
- /**
388
- * 安全区域底部插入位置(距离底部边界距离),单位为px
389
- *
390
- * @uniPlatform
391
- * {
392
- * "app": {
393
- * "android": {
394
- * "osVer": "5.0",
395
- * "uniVer": "√",
396
- * "unixVer": "3.9+"
397
- * },
398
- * "ios": {
399
- * "osVer": "12.0",
400
- * "uniVer": "√",
401
- * "unixVer": "4.11"
402
- * },
403
- * "harmony": {
404
- * "osVer": "3.0",
405
- * "uniVer": "4.23",
406
- * "unixVer": "x"
407
- * }
408
- * },
409
- * "web": {
410
- * "uniVer": "√",
411
- * "unixVer": "4.0"
412
- * }
413
- * }
414
- */
415
- bottom: number
416
- };
417
- export type GetSystemInfoResult = {
418
- /**
419
- * 客户端基础库版本
420
- *
421
- * @uniPlatform
422
- * {
423
- * "app": {
424
- * "android": {
425
- * "osVer": "5.0",
426
- * "uniVer": "√",
427
- * "unixVer": "3.9+"
428
- * },
429
- * "ios": {
430
- * "osVer": "12.0",
431
- * "uniVer": "√",
432
- * "unixVer": "4.11"
433
- * },
434
- * "harmony": {
435
- * "osVer": "x",
436
- * "uniVer": "x",
437
- * "unixVer": "x"
438
- * }
439
- * },
440
- * "web": {
441
- * "uniVer": "x",
442
- * "unixVer": "x"
443
- * }
444
- * }
445
- */
446
- SDKVersion: string,
447
- /**
448
- * `manifest.json` 中应用appid。
449
- *
450
- * @uniPlatform
451
- * {
452
- * "app": {
453
- * "android": {
454
- * "osVer": "5.0",
455
- * "uniVer": "√",
456
- * "unixVer": "3.9+"
457
- * },
458
- * "ios": {
459
- * "osVer": "12.0",
460
- * "uniVer": "√",
461
- * "unixVer": "4.11"
462
- * },
463
- * "harmony": {
464
- * "osVer": "3.0",
465
- * "uniVer": "4.23",
466
- * "unixVer": "x"
467
- * }
468
- * },
469
- * "web": {
470
- * "uniVer": "√",
471
- * "unixVer": "4.0"
472
- * }
473
- * }
474
- */
475
- appId: string,
476
- /**
477
- * 应用设置的语言。
478
- *
479
- * @uniPlatform
480
- * {
481
- * "app": {
482
- * "android": {
483
- * "osVer": "5.0",
484
- * "uniVer": "√",
485
- * "unixVer": "3.9+"
486
- * },
487
- * "ios": {
488
- * "osVer": "12.0",
489
- * "uniVer": "√",
490
- * "unixVer": "4.11"
491
- * },
492
- * "harmony": {
493
- * "osVer": "3.0",
494
- * "uniVer": "4.23",
495
- * "unixVer": "x"
496
- * }
497
- * },
498
- * "web": {
499
- * "uniVer": "√",
500
- * "unixVer": "4.0"
501
- * }
502
- * }
503
- */
504
- appLanguage: string,
505
- /**
506
- * `manifest.json` 中应用名称。
507
- *
508
- * @uniPlatform
509
- * {
510
- * "app": {
511
- * "android": {
512
- * "osVer": "5.0",
513
- * "uniVer": "√",
514
- * "unixVer": "3.9+"
515
- * },
516
- * "ios": {
517
- * "osVer": "12.0",
518
- * "uniVer": "√",
519
- * "unixVer": "4.11"
520
- * },
521
- * "harmony": {
522
- * "osVer": "3.0",
523
- * "uniVer": "4.23",
524
- * "unixVer": "x"
525
- * }
526
- * },
527
- * "web": {
528
- * "uniVer": "√",
529
- * "unixVer": "4.0"
530
- * }
531
- * }
532
- */
533
- appName: string,
534
- /**
535
- * `manifest.json` 中应用版本名称。
536
- *
537
- * @uniPlatform
538
- * {
539
- * "app": {
540
- * "android": {
541
- * "osVer": "5.0",
542
- * "uniVer": "√",
543
- * "unixVer": "3.9+"
544
- * },
545
- * "ios": {
546
- * "osVer": "12.0",
547
- * "uniVer": "√",
548
- * "unixVer": "4.11"
549
- * },
550
- * "harmony": {
551
- * "osVer": "3.0",
552
- * "uniVer": "4.23",
553
- * "unixVer": "x"
554
- * }
555
- * },
556
- * "web": {
557
- * "uniVer": "√",
558
- * "unixVer": "4.0"
559
- * }
560
- * }
561
- */
562
- appVersion: string,
563
- /**
564
- * `manifest.json` 中应用版本名号。
565
- *
566
- * @uniPlatform
567
- * {
568
- * "app": {
569
- * "android": {
570
- * "osVer": "5.0",
571
- * "uniVer": "√",
572
- * "unixVer": "3.9+"
573
- * },
574
- * "ios": {
575
- * "osVer": "12.0",
576
- * "uniVer": "√",
577
- * "unixVer": "4.11"
578
- * },
579
- * "harmony": {
580
- * "osVer": "3.0",
581
- * "uniVer": "4.23",
582
- * "unixVer": "x"
583
- * }
584
- * },
585
- * "web": {
586
- * "uniVer": "√",
587
- * "unixVer": "4.0"
588
- * }
589
- * }
590
- */
591
- appVersionCode: string,
592
- /**
593
- * 应用资源(wgt)的版本名称。
594
- *
595
- * @uniPlatform
596
- * {
597
- * "app": {
598
- * "android": {
599
- * "osVer": "5.0",
600
- * "uniVer": "√",
601
- * "unixVer": "x"
602
- * },
603
- * "ios": {
604
- * "osVer": "12.0",
605
- * "uniVer": "√",
606
- * "unixVer": "x"
607
- * },
608
- * "harmony": {
609
- * "osVer": "3.0",
610
- * "uniVer": "4.23",
611
- * "unixVer": "x"
612
- * }
613
- * },
614
- * "web": {
615
- * "uniVer": "x",
616
- * "unixVer": "x"
617
- * }
618
- * }
619
- */
620
- appWgtVersion?: string | null,
621
- /**
622
- * 手机品牌。
623
- * @deprecated 已废弃,仅为了向下兼容保留
624
- *
625
- * @uniPlatform
626
- * {
627
- * "app": {
628
- * "android": {
629
- * "osVer": "5.0",
630
- * "uniVer": "√",
631
- * "unixVer": "3.9+"
632
- * },
633
- * "ios": {
634
- * "osVer": "12.0",
635
- * "uniVer": "√",
636
- * "unixVer": "4.11"
637
- * },
638
- * "harmony": {
639
- * "osVer": "3.0",
640
- * "uniVer": "4.23",
641
- * "unixVer": "x"
642
- * }
643
- * },
644
- * "web": {
645
- * "uniVer": "x",
646
- * "unixVer": "x"
647
- * }
648
- * }
649
- */
650
- brand: string,
651
- /**
652
- * 浏览器名称。`App` 端是系统 webview 的名字,比如 wkwebview、chrome。小程序端为空
653
- *
654
- * @uniPlatform
655
- * {
656
- * "app": {
657
- * "android": {
658
- * "osVer": "5.0",
659
- * "uniVer": "√",
660
- * "unixVer": "3.9+"
661
- * },
662
- * "ios": {
663
- * "osVer": "12.0",
664
- * "uniVer": "√",
665
- * "unixVer": "4.11"
666
- * },
667
- * "harmony": {
668
- * "osVer": "x",
669
- * "uniVer": "x",
670
- * "unixVer": "x"
671
- * }
672
- * },
673
- * "web": {
674
- * "uniVer": "√",
675
- * "unixVer": "4.0"
676
- * }
677
- * }
678
- */
679
- browserName: string,
680
- /**
681
- * 浏览器版本、webview 版本。
682
- *
683
- * @uniPlatform
684
- * {
685
- * "app": {
686
- * "android": {
687
- * "osVer": "5.0",
688
- * "uniVer": "√",
689
- * "unixVer": "3.9+"
690
- * },
691
- * "ios": {
692
- * "osVer": "12.0",
693
- * "uniVer": "√",
694
- * "unixVer": "4.11"
695
- * },
696
- * "harmony": {
697
- * "osVer": "x",
698
- * "uniVer": "x",
699
- * "unixVer": "x"
700
- * }
701
- * },
702
- * "web": {
703
- * "uniVer": "√",
704
- * "unixVer": "4.0"
705
- * }
706
- * }
707
- */
708
- browserVersion: string,
709
- /**
710
- * 设备 ID
711
- *
712
- * @uniPlatform
713
- * {
714
- * "app": {
715
- * "android": {
716
- * "osVer": "5.0",
717
- * "uniVer": "√",
718
- * "unixVer": "3.9+"
719
- * },
720
- * "ios": {
721
- * "osVer": "12.0",
722
- * "uniVer": "√",
723
- * "unixVer": "4.11"
724
- * },
725
- * "harmony": {
726
- * "osVer": "3.0",
727
- * "uniVer": "4.23",
728
- * "unixVer": "x"
729
- * }
730
- * },
731
- * "web": {
732
- * "uniVer": "√",
733
- * "unixVer": "4.0"
734
- * }
735
- * }
736
- */
737
- deviceId: string,
738
- /**
739
- * 设备品牌。如:`apple`、`huawei`。
740
- *
741
- * @uniPlatform
742
- * {
743
- * "app": {
744
- * "android": {
745
- * "osVer": "5.0",
746
- * "uniVer": "√",
747
- * "unixVer": "3.9+"
748
- * },
749
- * "ios": {
750
- * "osVer": "12.0",
751
- * "uniVer": "√",
752
- * "unixVer": "4.11"
753
- * },
754
- * "harmony": {
755
- * "osVer": "3.0",
756
- * "uniVer": "4.23",
757
- * "unixVer": "x"
758
- * }
759
- * },
760
- * "web": {
761
- * "uniVer": "√",
762
- * "unixVer": "4.0"
763
- * }
764
- * }
765
- */
766
- deviceBrand: string,
767
- /**
768
- * 设备型号
769
- *
770
- * @uniPlatform
771
- * {
772
- * "app": {
773
- * "android": {
774
- * "osVer": "5.0",
775
- * "uniVer": "√",
776
- * "unixVer": "3.9+"
777
- * },
778
- * "ios": {
779
- * "osVer": "12.0",
780
- * "uniVer": "√",
781
- * "unixVer": "4.11"
782
- * },
783
- * "harmony": {
784
- * "osVer": "3.0",
785
- * "uniVer": "4.23",
786
- * "unixVer": "x"
787
- * }
788
- * },
789
- * "web": {
790
- * "uniVer": "√",
791
- * "unixVer": "4.0"
792
- * }
793
- * }
794
- */
795
- deviceModel: string,
796
- /**
797
- * 设备类型。
798
- *
799
- * @uniPlatform
800
- * {
801
- * "app": {
802
- * "android": {
803
- * "osVer": "5.0",
804
- * "uniVer": "√",
805
- * "unixVer": "3.9+"
806
- * },
807
- * "ios": {
808
- * "osVer": "12.0",
809
- * "uniVer": "√",
810
- * "unixVer": "4.11"
811
- * },
812
- * "harmony": {
813
- * "osVer": "3.0",
814
- * "uniVer": "4.23",
815
- * "unixVer": "x"
816
- * }
817
- * },
818
- * "web": {
819
- * "uniVer": "√",
820
- * "unixVer": "4.0"
821
- * }
822
- * }
823
- */
824
- deviceType: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance',
825
- /**
826
- * 设备像素比
827
- *
828
- * @uniPlatform
829
- * {
830
- * "app": {
831
- * "android": {
832
- * "osVer": "5.0",
833
- * "uniVer": "√",
834
- * "unixVer": "3.9+"
835
- * },
836
- * "ios": {
837
- * "osVer": "12.0",
838
- * "uniVer": "√",
839
- * "unixVer": "4.11"
840
- * },
841
- * "harmony": {
842
- * "osVer": "3.0",
843
- * "uniVer": "4.23",
844
- * "unixVer": "x"
845
- * }
846
- * },
847
- * "web": {
848
- * "uniVer": "√",
849
- * "unixVer": "4.0"
850
- * }
851
- * }
852
- */
853
- devicePixelRatio: number,
854
- /**
855
- * 设备方向。
856
- * @type 'portrait' | 'landscape'
857
- *
858
- * @uniPlatform
859
- * {
860
- * "app": {
861
- * "android": {
862
- * "osVer": "5.0",
863
- * "uniVer": "√",
864
- * "unixVer": "3.9+"
865
- * },
866
- * "ios": {
867
- * "osVer": "12.0",
868
- * "uniVer": "√",
869
- * "unixVer": "4.11"
870
- * },
871
- * "harmony": {
872
- * "osVer": "3.0",
873
- * "uniVer": "4.23",
874
- * "unixVer": "x"
875
- * }
876
- * },
877
- * "web": {
878
- * "uniVer": "√",
879
- * "unixVer": "4.0"
880
- * }
881
- * }
882
- */
883
- deviceOrientation: 'portrait' | 'landscape',
884
- /**
885
- * 程序设置的语言
886
- * @deprecated 已废弃,仅为了向下兼容保留
887
- *
888
- * @uniPlatform
889
- * {
890
- * "app": {
891
- * "android": {
892
- * "osVer": "5.0",
893
- * "uniVer": "√",
894
- * "unixVer": "3.9+"
895
- * },
896
- * "ios": {
897
- * "osVer": "12.0",
898
- * "uniVer": "√",
899
- * "unixVer": "4.11"
900
- * },
901
- * "harmony": {
902
- * "osVer": "x",
903
- * "uniVer": "x",
904
- * "unixVer": "x"
905
- * }
906
- * },
907
- * "web": {
908
- * "uniVer": "√",
909
- * "unixVer": "4.0"
910
- * }
911
- * }
912
- */
913
- language: string,
914
- /**
915
- * 手机型号
916
- * @deprecated 已废弃,仅为了向下兼容保留
917
- *
918
- * @uniPlatform
919
- * {
920
- * "app": {
921
- * "android": {
922
- * "osVer": "5.0",
923
- * "uniVer": "√",
924
- * "unixVer": "3.9+"
925
- * },
926
- * "ios": {
927
- * "osVer": "12.0",
928
- * "uniVer": "√",
929
- * "unixVer": "4.11"
930
- * },
931
- * "harmony": {
932
- * "osVer": "x",
933
- * "uniVer": "x",
934
- * "unixVer": "x"
935
- * }
936
- * },
937
- * "web": {
938
- * "uniVer": "√",
939
- * "unixVer": "4.0"
940
- * }
941
- * }
942
- */
943
- model?: string,
944
- /**
945
- * 系统名称
946
- *
947
- * @uniPlatform
948
- * {
949
- * "app": {
950
- * "android": {
951
- * "osVer": "5.0",
952
- * "uniVer": "√",
953
- * "unixVer": "3.9+"
954
- * },
955
- * "ios": {
956
- * "osVer": "12.0",
957
- * "uniVer": "√",
958
- * "unixVer": "4.11"
959
- * },
960
- * "harmony": {
961
- * "osVer": "3.0",
962
- * "uniVer": "4.23",
963
- * "unixVer": "x"
964
- * }
965
- * },
966
- * "web": {
967
- * "uniVer": "√",
968
- * "unixVer": "4.0"
969
- * }
970
- * }
971
- */
972
- osName: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux',
973
- /**
974
- * 操作系统版本。如 ios 版本,andriod 版本
975
- *
976
- * @uniPlatform
977
- * {
978
- * "app": {
979
- * "android": {
980
- * "osVer": "5.0",
981
- * "uniVer": "√",
982
- * "unixVer": "3.9+"
983
- * },
984
- * "ios": {
985
- * "osVer": "12.0",
986
- * "uniVer": "√",
987
- * "unixVer": "4.11"
988
- * },
989
- * "harmony": {
990
- * "osVer": "3.0",
991
- * "uniVer": "4.23",
992
- * "unixVer": "x"
993
- * }
994
- * },
995
- * "web": {
996
- * "uniVer": "√",
997
- * "unixVer": "4.0"
998
- * }
999
- * }
1000
- */
1001
- osVersion: string,
1002
- /**
1003
- * 操作系统语言
1004
- *
1005
- * @uniPlatform
1006
- * {
1007
- * "app": {
1008
- * "android": {
1009
- * "osVer": "5.0",
1010
- * "uniVer": "√",
1011
- * "unixVer": "3.9+"
1012
- * },
1013
- * "ios": {
1014
- * "osVer": "12.0",
1015
- * "uniVer": "√",
1016
- * "unixVer": "4.11"
1017
- * },
1018
- * "harmony": {
1019
- * "osVer": "3.0",
1020
- * "uniVer": "4.23",
1021
- * "unixVer": "x"
1022
- * }
1023
- * },
1024
- * "web": {
1025
- * "uniVer": "√",
1026
- * "unixVer": "4.0"
1027
- * }
1028
- * }
1029
- */
1030
- osLanguage: string,
1031
- /**
1032
- * 操作系统主题
1033
- *
1034
- * @uniPlatform
1035
- * {
1036
- * "app": {
1037
- * "android": {
1038
- * "osVer": "5.0",
1039
- * "uniVer": "√",
1040
- * "unixVer": "√"
1041
- * },
1042
- * "ios": {
1043
- * "osVer": "12.0",
1044
- * "uniVer": "√",
1045
- * "unixVer": "4.11"
1046
- * },
1047
- * "harmony": {
1048
- * "osVer": "3.0",
1049
- * "uniVer": "4.23",
1050
- * "unixVer": "x"
1051
- * }
1052
- * },
1053
- * "web": {
1054
- * "uniVer": "x",
1055
- * "unixVer": "x"
1056
- * }
1057
- * }
1058
- */
1059
- osTheme?: 'light' | 'dark' | null,
1060
- /**
1061
- * 设备像素比
1062
- * @deprecated 已废弃,仅为了向下兼容保留
1063
- *
1064
- * @uniPlatform
1065
- * {
1066
- * "app": {
1067
- * "android": {
1068
- * "osVer": "5.0",
1069
- * "uniVer": "√",
1070
- * "unixVer": "3.9+"
1071
- * },
1072
- * "ios": {
1073
- * "osVer": "12.0",
1074
- * "uniVer": "√",
1075
- * "unixVer": "4.11"
1076
- * },
1077
- * "harmony": {
1078
- * "osVer": "x",
1079
- * "uniVer": "x",
1080
- * "unixVer": "x"
1081
- * }
1082
- * },
1083
- * "web": {
1084
- * "uniVer": "√",
1085
- * "unixVer": "4.0"
1086
- * }
1087
- * }
1088
- */
1089
- pixelRatio: number,
1090
- /**
1091
- * 客户端平台
1092
- * @deprecated 已废弃,仅为了向下兼容保留
1093
- *
1094
- * @uniPlatform
1095
- * {
1096
- * "app": {
1097
- * "android": {
1098
- * "osVer": "5.0",
1099
- * "uniVer": "√",
1100
- * "unixVer": "3.9+"
1101
- * },
1102
- * "ios": {
1103
- * "osVer": "12.0",
1104
- * "uniVer": "√",
1105
- * "unixVer": "4.11"
1106
- * },
1107
- * "harmony": {
1108
- * "osVer": "x",
1109
- * "uniVer": "x",
1110
- * "unixVer": "x"
1111
- * }
1112
- * },
1113
- * "web": {
1114
- * "uniVer": "√",
1115
- * "unixVer": "4.0"
1116
- * }
1117
- * }
1118
- */
1119
- platform: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux',
1120
- /**
1121
- * 屏幕宽度,单位为px
1122
- *
1123
- * @uniPlatform
1124
- * {
1125
- * "app": {
1126
- * "android": {
1127
- * "osVer": "5.0",
1128
- * "uniVer": "√",
1129
- * "unixVer": "3.9+"
1130
- * },
1131
- * "ios": {
1132
- * "osVer": "12.0",
1133
- * "uniVer": "√",
1134
- * "unixVer": "4.11"
1135
- * },
1136
- * "harmony": {
1137
- * "osVer": "3.0",
1138
- * "uniVer": "4.23",
1139
- * "unixVer": "x"
1140
- * }
1141
- * },
1142
- * "web": {
1143
- * "uniVer": "√",
1144
- * "unixVer": "4.0"
1145
- * }
1146
- * }
1147
- */
1148
- screenWidth: number,
1149
- /**
1150
- * 屏幕高度,单位为px
1151
- *
1152
- * @uniPlatform
1153
- * {
1154
- * "app": {
1155
- * "android": {
1156
- * "osVer": "5.0",
1157
- * "uniVer": "√",
1158
- * "unixVer": "3.9+"
1159
- * },
1160
- * "ios": {
1161
- * "osVer": "12.0",
1162
- * "uniVer": "√",
1163
- * "unixVer": "4.11"
1164
- * },
1165
- * "harmony": {
1166
- * "osVer": "3.0",
1167
- * "uniVer": "4.23",
1168
- * "unixVer": "x"
1169
- * }
1170
- * },
1171
- * "web": {
1172
- * "uniVer": "√",
1173
- * "unixVer": "4.0"
1174
- * }
1175
- * }
1176
- */
1177
- screenHeight: number,
1178
- /**
1179
- * 状态栏的高度,单位为px
1180
- *
1181
- * @uniPlatform
1182
- * {
1183
- * "app": {
1184
- * "android": {
1185
- * "osVer": "5.0",
1186
- * "uniVer": "√",
1187
- * "unixVer": "3.9+"
1188
- * },
1189
- * "ios": {
1190
- * "osVer": "12.0",
1191
- * "uniVer": "√",
1192
- * "unixVer": "4.11"
1193
- * },
1194
- * "harmony": {
1195
- * "osVer": "3.0",
1196
- * "uniVer": "4.23",
1197
- * "unixVer": "x"
1198
- * }
1199
- * },
1200
- * "web": {
1201
- * "uniVer": "√",
1202
- * "unixVer": "4.0"
1203
- * }
1204
- * }
1205
- */
1206
- statusBarHeight: number,
1207
- /**
1208
- * 操作系统版本
1209
- * @deprecated 已废弃,仅为了向下兼容保留
1210
- *
1211
- * @uniPlatform
1212
- * {
1213
- * "app": {
1214
- * "android": {
1215
- * "osVer": "5.0",
1216
- * "uniVer": "√",
1217
- * "unixVer": "3.9+"
1218
- * },
1219
- * "ios": {
1220
- * "osVer": "12.0",
1221
- * "uniVer": "√",
1222
- * "unixVer": "4.11"
1223
- * },
1224
- * "harmony": {
1225
- * "osVer": "3.0",
1226
- * "uniVer": "4.23",
1227
- * "unixVer": "x"
1228
- * }
1229
- * },
1230
- * "web": {
1231
- * "uniVer": "√",
1232
- * "unixVer": "4.0"
1233
- * }
1234
- * }
1235
- */
1236
- system: string,
1237
- /**
1238
- * 在竖屏正方向下的安全区域
1239
- *
1240
- * @uniPlatform
1241
- * {
1242
- * "app": {
1243
- * "android": {
1244
- * "osVer": "5.0",
1245
- * "uniVer": "√",
1246
- * "unixVer": "3.9+"
1247
- * },
1248
- * "ios": {
1249
- * "osVer": "12.0",
1250
- * "uniVer": "√",
1251
- * "unixVer": "4.11"
1252
- * },
1253
- * "harmony": {
1254
- * "osVer": "3.0",
1255
- * "uniVer": "4.23",
1256
- * "unixVer": "x"
1257
- * }
1258
- * },
1259
- * "web": {
1260
- * "uniVer": "√",
1261
- * "unixVer": "4.0"
1262
- * }
1263
- * }
1264
- */
1265
- safeArea: SafeArea,
1266
- /**
1267
- * 在竖屏正方向下的安全区域插入位置
1268
- *
1269
- * @uniPlatform
1270
- * {
1271
- * "app": {
1272
- * "android": {
1273
- * "osVer": "5.0",
1274
- * "uniVer": "√",
1275
- * "unixVer": "3.9+"
1276
- * },
1277
- * "ios": {
1278
- * "osVer": "12.0",
1279
- * "uniVer": "√",
1280
- * "unixVer": "4.11"
1281
- * },
1282
- * "harmony": {
1283
- * "osVer": "3.0",
1284
- * "uniVer": "4.23",
1285
- * "unixVer": "x"
1286
- * }
1287
- * },
1288
- * "web": {
1289
- * "uniVer": "√",
1290
- * "unixVer": "4.0"
1291
- * }
1292
- * }
1293
- */
1294
- safeAreaInsets: SafeAreaInsets,
1295
- /**
1296
- * 用户标识。小程序端为空
1297
- *
1298
- * @uniPlatform
1299
- * {
1300
- * "app": {
1301
- * "android": {
1302
- * "osVer": "5.0",
1303
- * "uniVer": "√",
1304
- * "unixVer": "3.9+"
1305
- * },
1306
- * "ios": {
1307
- * "osVer": "12.0",
1308
- * "uniVer": "√",
1309
- * "unixVer": "4.11"
1310
- * },
1311
- * "harmony": {
1312
- * "osVer": "x",
1313
- * "uniVer": "x",
1314
- * "unixVer": "x"
1315
- * }
1316
- * },
1317
- * "web": {
1318
- * "uniVer": "√",
1319
- * "unixVer": "4.0"
1320
- * }
1321
- * }
1322
- */
1323
- ua: string,
1324
- /**
1325
- * uni 编译器版本。
1326
- * @deprecated 已废弃,仅为了向下兼容保留
1327
- *
1328
- * @uniPlatform
1329
- * {
1330
- * "app": {
1331
- * "android": {
1332
- * "osVer": "5.0",
1333
- * "uniVer": "√",
1334
- * "unixVer": "3.9+"
1335
- * },
1336
- * "ios": {
1337
- * "osVer": "12.0",
1338
- * "uniVer": "√",
1339
- * "unixVer": "4.11"
1340
- * },
1341
- * "harmony": {
1342
- * "osVer": "x",
1343
- * "uniVer": "x",
1344
- * "unixVer": "x"
1345
- * }
1346
- * },
1347
- * "web": {
1348
- * "uniVer": "√",
1349
- * "unixVer": "4.0"
1350
- * }
1351
- * }
1352
- */
1353
- uniCompileVersion: string,
1354
- /**
1355
- * uni 编译器版本。
1356
- *
1357
- * @uniPlatform
1358
- * {
1359
- * "app": {
1360
- * "android": {
1361
- * "osVer": "5.0",
1362
- * "uniVer": "x",
1363
- * "unixVer": "3.9+"
1364
- * },
1365
- * "ios": {
1366
- * "osVer": "12.0",
1367
- * "uniVer": "x",
1368
- * "unixVer": "4.11"
1369
- * },
1370
- * "harmony": {
1371
- * "osVer": "3.0",
1372
- * "uniVer": "4.23",
1373
- * "unixVer": "x"
1374
- * }
1375
- * },
1376
- * "web": {
1377
- * "uniVer": "x",
1378
- * "unixVer": "4.18"
1379
- * }
1380
- * }
1381
- */
1382
- uniCompilerVersion: string,
1383
- /**
1384
- * uni-app 运行平台,与条件编译平台相同。
1385
- *
1386
- * @uniPlatform
1387
- * {
1388
- * "app": {
1389
- * "android": {
1390
- * "osVer": "5.0",
1391
- * "uniVer": "√",
1392
- * "unixVer": "3.9+"
1393
- * },
1394
- * "ios": {
1395
- * "osVer": "12.0",
1396
- * "uniVer": "√",
1397
- * "unixVer": "4.11"
1398
- * },
1399
- * "harmony": {
1400
- * "osVer": "3.0",
1401
- * "uniVer": "4.23",
1402
- * "unixVer": "x"
1403
- * }
1404
- * },
1405
- * "web": {
1406
- * "uniVer": "√",
1407
- * "unixVer": "4.0"
1408
- * }
1409
- * }
1410
- */
1411
- uniPlatform: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei',
1412
- /**
1413
- * uni 运行时版本。
1414
- *
1415
- * @uniPlatform
1416
- * {
1417
- * "app": {
1418
- * "android": {
1419
- * "osVer": "5.0",
1420
- * "uniVer": "√",
1421
- * "unixVer": "3.9+"
1422
- * },
1423
- * "ios": {
1424
- * "osVer": "12.0",
1425
- * "uniVer": "√",
1426
- * "unixVer": "4.11"
1427
- * },
1428
- * "harmony": {
1429
- * "osVer": "3.0",
1430
- * "uniVer": "4.23",
1431
- * "unixVer": "x"
1432
- * }
1433
- * },
1434
- * "web": {
1435
- * "uniVer": "√",
1436
- * "unixVer": "4.0"
1437
- * }
1438
- * }
1439
- */
1440
- uniRuntimeVersion: string,
1441
- /**
1442
- * uni 编译器版本号。
1443
- * @deprecated 已废弃,仅为了向下兼容保留
1444
- *
1445
- * @uniPlatform
1446
- * {
1447
- * "app": {
1448
- * "android": {
1449
- * "osVer": "5.0",
1450
- * "uniVer": "x",
1451
- * "unixVer": "3.9+"
1452
- * },
1453
- * "ios": {
1454
- * "osVer": "12.0",
1455
- * "uniVer": "x",
1456
- * "unixVer": "4.11"
1457
- * },
1458
- * "harmony": {
1459
- * "osVer": "x",
1460
- * "uniVer": "x",
1461
- * "unixVer": "x"
1462
- * }
1463
- * },
1464
- * "web": {
1465
- * "uniVer": "√",
1466
- * "unixVer": "4.0"
1467
- * }
1468
- * }
1469
- */
1470
- uniCompileVersionCode: number,
1471
- /**
1472
- * uni 编译器版本号。
1473
- *
1474
- * @uniPlatform
1475
- * {
1476
- * "app": {
1477
- * "android": {
1478
- * "osVer": "5.0",
1479
- * "uniVer": "x",
1480
- * "unixVer": "3.9+"
1481
- * },
1482
- * "ios": {
1483
- * "osVer": "12.0",
1484
- * "uniVer": "x",
1485
- * "unixVer": "4.11"
1486
- * },
1487
- * "harmony": {
1488
- * "osVer": "3.0",
1489
- * "uniVer": "4.23",
1490
- * "unixVer": "x"
1491
- * }
1492
- * },
1493
- * "web": {
1494
- * "uniVer": "x",
1495
- * "unixVer": "4.18"
1496
- * }
1497
- * }
1498
- */
1499
- uniCompilerVersionCode: number,
1500
- /**
1501
- * uni 运行时版本号。
1502
- *
1503
- * @uniPlatform
1504
- * {
1505
- * "app": {
1506
- * "android": {
1507
- * "osVer": "5.0",
1508
- * "uniVer": "x",
1509
- * "unixVer": "3.9+"
1510
- * },
1511
- * "ios": {
1512
- * "osVer": "12.0",
1513
- * "uniVer": "x",
1514
- * "unixVer": "4.11"
1515
- * },
1516
- * "harmony": {
1517
- * "osVer": "3.0",
1518
- * "uniVer": "4.23",
1519
- * "unixVer": "x"
1520
- * }
1521
- * },
1522
- * "web": {
1523
- * "uniVer": "√",
1524
- * "unixVer": "4.0"
1525
- * }
1526
- * }
1527
- */
1528
- uniRuntimeVersionCode: number,
1529
- /**
1530
- * 引擎版本号。
1531
- * @deprecated 已废弃,仅为了向下兼容保留
1532
- *
1533
- * @uniPlatform
1534
- * {
1535
- * "app": {
1536
- * "android": {
1537
- * "osVer": "5.0",
1538
- * "uniVer": "√",
1539
- * "unixVer": "3.9+"
1540
- * },
1541
- * "ios": {
1542
- * "osVer": "12.0",
1543
- * "uniVer": "√",
1544
- * "unixVer": "4.11"
1545
- * },
1546
- * "harmony": {
1547
- * "osVer": "x",
1548
- * "uniVer": "x",
1549
- * "unixVer": "x"
1550
- * }
1551
- * },
1552
- * "web": {
1553
- * "uniVer": "√",
1554
- * "unixVer": "4.0"
1555
- * }
1556
- * }
1557
- */
1558
- version: string,
1559
- /**
1560
- * rom 名称。Android 部分机型获取不到值。iOS 恒为 `ios`
1561
- *
1562
- * @uniPlatform
1563
- * {
1564
- * "app": {
1565
- * "android": {
1566
- * "osVer": "5.0",
1567
- * "uniVer": "√",
1568
- * "unixVer": "3.9+"
1569
- * },
1570
- * "ios": {
1571
- * "osVer": "12.0",
1572
- * "uniVer": "x",
1573
- * "unixVer": "4.11"
1574
- * },
1575
- * "harmony": {
1576
- * "osVer": "3.0",
1577
- * "uniVer": "4.23",
1578
- * "unixVer": "x"
1579
- * }
1580
- * },
1581
- * "web": {
1582
- * "uniVer": "x",
1583
- * "unixVer": "x"
1584
- * }
1585
- * }
1586
- */
1587
- romName: string,
1588
- /**
1589
- * rom 版本号。Android 部分机型获取不到值。iOS 为操作系统版本号(同 `osVersion`)。
1590
- *
1591
- * @uniPlatform
1592
- * {
1593
- * "app": {
1594
- * "android": {
1595
- * "osVer": "5.0",
1596
- * "uniVer": "√",
1597
- * "unixVer": "3.9+"
1598
- * },
1599
- * "ios": {
1600
- * "osVer": "12.0",
1601
- * "uniVer": "x",
1602
- * "unixVer": "4.11"
1603
- * },
1604
- * "harmony": {
1605
- * "osVer": "3.0",
1606
- * "uniVer": "4.23",
1607
- * "unixVer": "x"
1608
- * }
1609
- * },
1610
- * "web": {
1611
- * "uniVer": "x",
1612
- * "unixVer": "x"
1613
- * }
1614
- * }
1615
- */
1616
- romVersion: string,
1617
- /**
1618
- * 可使用窗口宽度,单位为px
1619
- *
1620
- * @uniPlatform
1621
- * {
1622
- * "app": {
1623
- * "android": {
1624
- * "osVer": "5.0",
1625
- * "uniVer": "√",
1626
- * "unixVer": "3.9+"
1627
- * },
1628
- * "ios": {
1629
- * "osVer": "12.0",
1630
- * "uniVer": "√",
1631
- * "unixVer": "4.11"
1632
- * },
1633
- * "harmony": {
1634
- * "osVer": "3.0",
1635
- * "uniVer": "4.23",
1636
- * "unixVer": "x"
1637
- * }
1638
- * },
1639
- * "web": {
1640
- * "uniVer": "√",
1641
- * "unixVer": "4.0"
1642
- * }
1643
- * }
1644
- */
1645
- windowWidth: number,
1646
- /**
1647
- * 可使用窗口高度,单位为px
1648
- *
1649
- * @uniPlatform
1650
- * {
1651
- * "app": {
1652
- * "android": {
1653
- * "osVer": "5.0",
1654
- * "uniVer": "√",
1655
- * "unixVer": "3.9+"
1656
- * },
1657
- * "ios": {
1658
- * "osVer": "12.0",
1659
- * "uniVer": "√",
1660
- * "unixVer": "4.11"
1661
- * },
1662
- * "harmony": {
1663
- * "osVer": "3.0",
1664
- * "uniVer": "4.23",
1665
- * "unixVer": "x"
1666
- * }
1667
- * },
1668
- * "web": {
1669
- * "uniVer": "√",
1670
- * "unixVer": "4.0"
1671
- * }
1672
- * }
1673
- */
1674
- windowHeight: number,
1675
- /**
1676
- * 内容区域距离顶部的距离(同CSS变量 `--window-top`),单位为px
1677
- *
1678
- * @uniPlatform
1679
- * {
1680
- * "app": {
1681
- * "android": {
1682
- * "osVer": "5.0",
1683
- * "uniVer": "√",
1684
- * "unixVer": "3.9+"
1685
- * },
1686
- * "ios": {
1687
- * "osVer": "12.0",
1688
- * "uniVer": "√",
1689
- * "unixVer": "4.11"
1690
- * },
1691
- * "harmony": {
1692
- * "osVer": "3.0",
1693
- * "uniVer": "4.23",
1694
- * "unixVer": "x"
1695
- * }
1696
- * },
1697
- * "web": {
1698
- * "uniVer": "√",
1699
- * "unixVer": "4.0"
1700
- * }
1701
- * }
1702
- */
1703
- windowTop: number,
1704
- /**
1705
- * 内容区域距离底部的距离(同CSS变量 `--window-bottom`),单位为px
1706
- *
1707
- * @uniPlatform
1708
- * {
1709
- * "app": {
1710
- * "android": {
1711
- * "osVer": "5.0",
1712
- * "uniVer": "√",
1713
- * "unixVer": "3.9+"
1714
- * },
1715
- * "ios": {
1716
- * "osVer": "12.0",
1717
- * "uniVer": "√",
1718
- * "unixVer": "4.11"
1719
- * },
1720
- * "harmony": {
1721
- * "osVer": "3.0",
1722
- * "uniVer": "4.23",
1723
- * "unixVer": "x"
1724
- * }
1725
- * },
1726
- * "web": {
1727
- * "uniVer": "√",
1728
- * "unixVer": "4.0"
1729
- * }
1730
- * }
1731
- */
1732
- windowBottom: number,
1733
- /**
1734
- * Android 系统API库的版本。
1735
- *
1736
- * @uniPlatform
1737
- * {
1738
- * "app": {
1739
- * "android": {
1740
- * "osVer": "5.0",
1741
- * "uniVer": "√",
1742
- * "unixVer": "√"
1743
- * },
1744
- * "ios": {
1745
- * "osVer": "x",
1746
- * "uniVer": "x",
1747
- * "unixVer": "x"
1748
- * },
1749
- * "harmony": {
1750
- * "osVer": "x",
1751
- * "uniVer": "x",
1752
- * "unixVer": "x"
1753
- * }
1754
- * },
1755
- * "web": {
1756
- * "uniVer": "x",
1757
- * "unixVer": "x"
1758
- * }
1759
- * }
1760
- */
1761
- osAndroidAPILevel?: number | null,
1762
- /**
1763
- * 当前App的主题
1764
- *
1765
- * @uniPlatform
1766
- * {
1767
- * "app": {
1768
- * "android": {
1769
- * "osVer": "5.0",
1770
- * "uniVer": "x",
1771
- * "unixVer": "4.18"
1772
- * },
1773
- * "ios": {
1774
- * "osVer": "12.0",
1775
- * "uniVer": "x",
1776
- * "unixVer": "4.18"
1777
- * },
1778
- * "harmony": {
1779
- * "osVer": "3.0",
1780
- * "uniVer": "4.23",
1781
- * "unixVer": "x"
1782
- * }
1783
- * },
1784
- * "web": {
1785
- * "uniVer": "x",
1786
- * "unixVer": "x"
1787
- * }
1788
- * }
1789
- */
1790
- appTheme?: 'light' | 'dark' | 'auto' | null,
1791
- };
1792
- export type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void;
1793
- type GetSystemInfoFail = UniError;
1794
- type GetSystemInfoFailCallback = (result: GetSystemInfoFail) => void;
1795
- export type GetSystemInfoComplete = any;
1796
- export type GetSystemInfoCompleteCallback = (result: GetSystemInfoComplete) => void;
1797
- export type GetSystemInfoOptions = {
1798
- /**
1799
- * 接口调用成功的回调函数
1800
- * @defaultValue null
1801
- */
1802
- success?: GetSystemInfoSuccessCallback | null,
1803
- /**
1804
- * 接口调用失败的回调函数
1805
- * @defaultValue null
1806
- */
1807
- fail?: GetSystemInfoFailCallback | null,
1808
- /**
1809
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1810
- * @defaultValue null
1811
- */
1812
- complete?: GetSystemInfoCompleteCallback | null
1813
- };
1814
-
1815
- export type GetWindowInfoResult = {
1816
- /**
1817
- * 设备像素比
1818
- *
1819
- * @uniPlatform
1820
- * {
1821
- * "app": {
1822
- * "android": {
1823
- * "osVer": "5.0",
1824
- * "uniVer": "√",
1825
- * "unixVer": "3.9+"
1826
- * },
1827
- * "ios": {
1828
- * "osVer": "12.0",
1829
- * "uniVer": "√",
1830
- * "unixVer": "4.11"
1831
- * },
1832
- * "harmony": {
1833
- * "osVer": "3.0",
1834
- * "uniVer": "4.23",
1835
- * "unixVer": "x"
1836
- * }
1837
- * },
1838
- * "web": {
1839
- * "uniVer": "√",
1840
- * "unixVer": "4.0"
1841
- * }
1842
- * }
1843
- */
1844
- pixelRatio: number,
1845
- /**
1846
- * 屏幕宽度,单位为px
1847
- *
1848
- * @uniPlatform
1849
- * {
1850
- * "app": {
1851
- * "android": {
1852
- * "osVer": "5.0",
1853
- * "uniVer": "√",
1854
- * "unixVer": "3.9+"
1855
- * },
1856
- * "ios": {
1857
- * "osVer": "12.0",
1858
- * "uniVer": "√",
1859
- * "unixVer": "4.11"
1860
- * },
1861
- * "harmony": {
1862
- * "osVer": "3.0",
1863
- * "uniVer": "4.23",
1864
- * "unixVer": "x"
1865
- * }
1866
- * },
1867
- * "web": {
1868
- * "uniVer": "√",
1869
- * "unixVer": "4.0"
1870
- * }
1871
- * }
1872
- */
1873
- screenWidth: number,
1874
- /**
1875
- * 屏幕高度,单位为px
1876
- *
1877
- * @uniPlatform
1878
- * {
1879
- * "app": {
1880
- * "android": {
1881
- * "osVer": "5.0",
1882
- * "uniVer": "√",
1883
- * "unixVer": "3.9+"
1884
- * },
1885
- * "ios": {
1886
- * "osVer": "12.0",
1887
- * "uniVer": "√",
1888
- * "unixVer": "4.11"
1889
- * },
1890
- * "harmony": {
1891
- * "osVer": "3.0",
1892
- * "uniVer": "4.23",
1893
- * "unixVer": "x"
1894
- * }
1895
- * },
1896
- * "web": {
1897
- * "uniVer": "√",
1898
- * "unixVer": "4.0"
1899
- * }
1900
- * }
1901
- */
1902
- screenHeight: number,
1903
- /**
1904
- * 可使用窗口宽度,单位为px
1905
- *
1906
- * @uniPlatform
1907
- * {
1908
- * "app": {
1909
- * "android": {
1910
- * "osVer": "5.0",
1911
- * "uniVer": "√",
1912
- * "unixVer": "3.9+"
1913
- * },
1914
- * "ios": {
1915
- * "osVer": "12.0",
1916
- * "uniVer": "√",
1917
- * "unixVer": "4.11"
1918
- * },
1919
- * "harmony": {
1920
- * "osVer": "3.0",
1921
- * "uniVer": "4.23",
1922
- * "unixVer": "x"
1923
- * }
1924
- * },
1925
- * "web": {
1926
- * "uniVer": "√",
1927
- * "unixVer": "4.0"
1928
- * }
1929
- * }
1930
- */
1931
- windowWidth: number,
1932
- /**
1933
- * 可使用窗口高度,单位为px
1934
- *
1935
- * @uniPlatform
1936
- * {
1937
- * "app": {
1938
- * "android": {
1939
- * "osVer": "5.0",
1940
- * "uniVer": "√",
1941
- * "unixVer": "3.9+"
1942
- * },
1943
- * "ios": {
1944
- * "osVer": "12.0",
1945
- * "uniVer": "√",
1946
- * "unixVer": "4.11"
1947
- * },
1948
- * "harmony": {
1949
- * "osVer": "3.0",
1950
- * "uniVer": "4.23",
1951
- * "unixVer": "x"
1952
- * }
1953
- * }
1954
- * }
1955
- */
1956
- windowHeight: number,
1957
- /**
1958
- * 状态栏的高度,单位为px
1959
- *
1960
- * @uniPlatform
1961
- * {
1962
- * "app": {
1963
- * "android": {
1964
- * "osVer": "5.0",
1965
- * "uniVer": "√",
1966
- * "unixVer": "3.9+"
1967
- * },
1968
- * "ios": {
1969
- * "osVer": "12.0",
1970
- * "uniVer": "√",
1971
- * "unixVer": "4.11"
1972
- * },
1973
- * "harmony": {
1974
- * "osVer": "3.0",
1975
- * "uniVer": "4.23",
1976
- * "unixVer": "x"
1977
- * }
1978
- * },
1979
- * "web": {
1980
- * "uniVer": "√",
1981
- * "unixVer": "4.0"
1982
- * }
1983
- * }
1984
- */
1985
- statusBarHeight: number,
1986
- /**
1987
- * 内容区域距离顶部的距离(同CSS变量 `--window-top`),单位为px
1988
- *
1989
- * @uniPlatform
1990
- * {
1991
- * "app": {
1992
- * "android": {
1993
- * "osVer": "5.0",
1994
- * "uniVer": "√",
1995
- * "unixVer": "3.9+"
1996
- * },
1997
- * "ios": {
1998
- * "osVer": "12.0",
1999
- * "uniVer": "√",
2000
- * "unixVer": "4.11"
2001
- * },
2002
- * "harmony": {
2003
- * "osVer": "3.0",
2004
- * "uniVer": "4.23",
2005
- * "unixVer": "x"
2006
- * }
2007
- * },
2008
- * "web": {
2009
- * "uniVer": "√",
2010
- * "unixVer": "4.0"
2011
- * }
2012
- * }
2013
- */
2014
- windowTop: number,
2015
- /**
2016
- * 内容区域距离底部的距离(同CSS变量 `--window-bottom`),单位为px
2017
- *
2018
- * @uniPlatform
2019
- * {
2020
- * "app": {
2021
- * "android": {
2022
- * "osVer": "5.0",
2023
- * "uniVer": "√",
2024
- * "unixVer": "3.9+"
2025
- * },
2026
- * "ios": {
2027
- * "osVer": "12.0",
2028
- * "uniVer": "√",
2029
- * "unixVer": "4.11"
2030
- * },
2031
- * "harmony": {
2032
- * "osVer": "3.0",
2033
- * "uniVer": "4.23",
2034
- * "unixVer": "x"
2035
- * }
2036
- * },
2037
- * "web": {
2038
- * "uniVer": "√",
2039
- * "unixVer": "4.0"
2040
- * }
2041
- * }
2042
- */
2043
- windowBottom: number,
2044
- /**
2045
- * 安全区域在屏幕中的位置信息
2046
- *
2047
- * @uniPlatform
2048
- * {
2049
- * "app": {
2050
- * "android": {
2051
- * "osVer": "5.0",
2052
- * "uniVer": "√",
2053
- * "unixVer": "3.9+"
2054
- * },
2055
- * "ios": {
2056
- * "osVer": "12.0",
2057
- * "uniVer": "√",
2058
- * "unixVer": "4.11"
2059
- * },
2060
- * "harmony": {
2061
- * "osVer": "3.0",
2062
- * "uniVer": "4.23",
2063
- * "unixVer": "x"
2064
- * }
2065
- * },
2066
- * "web": {
2067
- * "uniVer": "√",
2068
- * "unixVer": "4.0"
2069
- * }
2070
- * }
2071
- */
2072
- safeArea: SafeArea,
2073
- /**
2074
- * 安全区域插入位置(与屏幕边界的距离)信息
2075
- *
2076
- * @uniPlatform
2077
- * {
2078
- * "app": {
2079
- * "android": {
2080
- * "osVer": "5.0",
2081
- * "uniVer": "√",
2082
- * "unixVer": "3.9+"
2083
- * },
2084
- * "ios": {
2085
- * "osVer": "12.0",
2086
- * "uniVer": "√",
2087
- * "unixVer": "4.11"
2088
- * },
2089
- * "harmony": {
2090
- * "osVer": "3.0",
2091
- * "uniVer": "4.23",
2092
- * "unixVer": "x"
2093
- * }
2094
- * },
2095
- * "web": {
2096
- * "uniVer": "√",
2097
- * "unixVer": "4.0"
2098
- * }
2099
- * }
2100
- */
2101
- safeAreaInsets: SafeAreaInsets,
2102
- /**
2103
- * 窗口上边缘的 y 值,单位为px
2104
- *
2105
- * @uniPlatform
2106
- * {
2107
- * "app": {
2108
- * "android": {
2109
- * "osVer": "5.0",
2110
- * "uniVer": "√",
2111
- * "unixVer": "3.9+"
2112
- * },
2113
- * "ios": {
2114
- * "osVer": "12.0",
2115
- * "uniVer": "√",
2116
- * "unixVer": "4.11"
2117
- * },
2118
- * "harmony": {
2119
- * "osVer": "3.0",
2120
- * "uniVer": "4.23",
2121
- * "unixVer": "x"
2122
- * }
2123
- * },
2124
- * "web": {
2125
- * "uniVer": "√",
2126
- * "unixVer": "4.0"
2127
- * }
2128
- * }
2129
- */
2130
- screenTop: number
2131
- };
1
+ export interface Uni {
2
+ /**
3
+ * getSystemInfo()
4
+ * @description
5
+ * 异步获取系统信息
6
+ * @param {GetSystemInfoOptions} options
7
+ * @return {void}
8
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/info.html
9
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-system-info.html
10
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-system-info.html
11
+ * @uniPlatform
12
+ * {
13
+ * "app": {
14
+ * "android": {
15
+ * "osVer": "5.0",
16
+ * "uniVer": "√",
17
+ * "unixVer": "3.9+"
18
+ * },
19
+ * "ios": {
20
+ * "osVer": "12.0",
21
+ * "uniVer": "√",
22
+ * "unixVer": "4.11"
23
+ * },
24
+ * "harmony": {
25
+ * "osVer": "3.0",
26
+ * "uniVer": "4.23",
27
+ * "unixVer": "x"
28
+ * }
29
+ * },
30
+ * "web": {
31
+ * "uniVer": "√",
32
+ * "unixVer": "4.0"
33
+ * }
34
+ * }
35
+ * @example
36
+ ```typescript
37
+ uni.getSystemInfo({
38
+ success(e) {
39
+ console.log("success :",e);
40
+ },
41
+ complete(e) {
42
+ console.log("complete :",e);
43
+ }
44
+ })
45
+ ```
46
+ */
47
+ getSystemInfo(options: GetSystemInfoOptions): void;
48
+
49
+ /**
50
+ * getSystemInfoSync()
51
+ * @description
52
+ * 同步获取系统信息
53
+ * @param {void}
54
+ * @return {GetSystemInfoResult}
55
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/info.html#getsysteminfosync
56
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-system-info.html#getsysteminfosync
57
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-system-info.html#getsysteminfosync
58
+ * @uniPlatform
59
+ * {
60
+ * "app": {
61
+ * "android": {
62
+ * "osVer": "5.0",
63
+ * "uniVer": "√",
64
+ * "unixVer": "3.9+"
65
+ * },
66
+ * "ios": {
67
+ * "osVer": "12.0",
68
+ * "uniVer": "√",
69
+ * "unixVer": "4.11"
70
+ * }
71
+ * },
72
+ * "web": {
73
+ * "uniVer": "√",
74
+ * "unixVer": "4.0"
75
+ * }
76
+ * }
77
+ * @example
78
+ ```typescript
79
+ uni.getSystemInfoSync()
80
+ ```
81
+ */
82
+ getSystemInfoSync(): GetSystemInfoResult;
83
+
84
+ /**
85
+ * getWindowInfo()
86
+ * @description
87
+ * 同步获取窗口信息
88
+ * @param {void}
89
+ * @return {GetWindowInfoResult} result
90
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/getWindowInfo.html
91
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-window-info.html
92
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-window-info.html
93
+ * @uniPlatform
94
+ * {
95
+ * "app": {
96
+ * "android": {
97
+ * "osVer": "5.0",
98
+ * "uniVer": "√",
99
+ * "unixVer": "3.9+"
100
+ * },
101
+ * "ios": {
102
+ * "osVer": "12.0",
103
+ * "uniVer": "√",
104
+ * "unixVer": "4.11"
105
+ * }
106
+ * },
107
+ * "web": {
108
+ * "uniVer": "√",
109
+ * "unixVer": "4.0"
110
+ * }
111
+ * }
112
+ * @example
113
+ ```typescript
114
+ uni.getWindowInfo()
115
+ ```
116
+ */
117
+ getWindowInfo(): GetWindowInfoResult;
118
+ }
119
+
120
+ export type GetSystemInfo = (options: GetSystemInfoOptions) => void;
121
+ export type GetSystemInfoSync = () => GetSystemInfoResult;
122
+ export type GetWindowInfo = () => GetWindowInfoResult;
123
+ export type SafeArea = {
124
+ /**
125
+ * 安全区域左上角横坐标,单位为px
126
+ *
127
+ * @uniPlatform
128
+ * {
129
+ * "app": {
130
+ * "android": {
131
+ * "osVer": "5.0",
132
+ * "uniVer": "√",
133
+ * "unixVer": "3.9+"
134
+ * },
135
+ * "ios": {
136
+ * "osVer": "12.0",
137
+ * "uniVer": "√",
138
+ * "unixVer": "4.11"
139
+ * },
140
+ * "harmony": {
141
+ * "osVer": "3.0",
142
+ * "uniVer": "4.23",
143
+ * "unixVer": "x"
144
+ * }
145
+ * },
146
+ * "web": {
147
+ * "uniVer": "√",
148
+ * "unixVer": "4.0"
149
+ * }
150
+ * }
151
+ */
152
+ left: number,
153
+ /**
154
+ * 安全区域右下角横坐标,单位为px
155
+ *
156
+ * @uniPlatform
157
+ * {
158
+ * "app": {
159
+ * "android": {
160
+ * "osVer": "5.0",
161
+ * "uniVer": "√",
162
+ * "unixVer": "3.9+"
163
+ * },
164
+ * "ios": {
165
+ * "osVer": "12.0",
166
+ * "uniVer": "√",
167
+ * "unixVer": "4.11"
168
+ * },
169
+ * "harmony": {
170
+ * "osVer": "3.0",
171
+ * "uniVer": "4.23",
172
+ * "unixVer": "x"
173
+ * }
174
+ * },
175
+ * "web": {
176
+ * "uniVer": "√",
177
+ * "unixVer": "4.0"
178
+ * }
179
+ * }
180
+ */
181
+ right: number,
182
+ /**
183
+ * 安全区域左上角纵坐标,单位为px
184
+ *
185
+ * @uniPlatform
186
+ * {
187
+ * "app": {
188
+ * "android": {
189
+ * "osVer": "5.0",
190
+ * "uniVer": "√",
191
+ * "unixVer": "3.9+"
192
+ * },
193
+ * "ios": {
194
+ * "osVer": "12.0",
195
+ * "uniVer": "√",
196
+ * "unixVer": "4.11"
197
+ * },
198
+ * "harmony": {
199
+ * "osVer": "3.0",
200
+ * "uniVer": "4.23",
201
+ * "unixVer": "x"
202
+ * }
203
+ * },
204
+ * "web": {
205
+ * "uniVer": "√",
206
+ * "unixVer": "4.0"
207
+ * }
208
+ * }
209
+ */
210
+ top: number,
211
+ /**
212
+ * 安全区域右下角纵坐标,单位为px
213
+ *
214
+ * @uniPlatform
215
+ * {
216
+ * "app": {
217
+ * "android": {
218
+ * "osVer": "5.0",
219
+ * "uniVer": "√",
220
+ * "unixVer": "3.9+"
221
+ * },
222
+ * "ios": {
223
+ * "osVer": "12.0",
224
+ * "uniVer": "√",
225
+ * "unixVer": "4.11"
226
+ * },
227
+ * "harmony": {
228
+ * "osVer": "3.0",
229
+ * "uniVer": "4.23",
230
+ * "unixVer": "x"
231
+ * }
232
+ * },
233
+ * "web": {
234
+ * "uniVer": "√",
235
+ * "unixVer": "4.0"
236
+ * }
237
+ * }
238
+ */
239
+ bottom: number,
240
+ /**
241
+ * 安全区域的宽度,单位为px
242
+ *
243
+ * @uniPlatform
244
+ * {
245
+ * "app": {
246
+ * "android": {
247
+ * "osVer": "5.0",
248
+ * "uniVer": "√",
249
+ * "unixVer": "3.9+"
250
+ * },
251
+ * "ios": {
252
+ * "osVer": "12.0",
253
+ * "uniVer": "√",
254
+ * "unixVer": "4.11"
255
+ * },
256
+ * "harmony": {
257
+ * "osVer": "3.0",
258
+ * "uniVer": "4.23",
259
+ * "unixVer": "x"
260
+ * }
261
+ * },
262
+ * "web": {
263
+ * "uniVer": "√",
264
+ * "unixVer": "4.0"
265
+ * }
266
+ * }
267
+ */
268
+ width: number,
269
+ /**
270
+ * 安全区域的高度,单位为px
271
+ *
272
+ * @uniPlatform
273
+ * {
274
+ * "app": {
275
+ * "android": {
276
+ * "osVer": "5.0",
277
+ * "uniVer": "√",
278
+ * "unixVer": "3.9+"
279
+ * },
280
+ * "ios": {
281
+ * "osVer": "12.0",
282
+ * "uniVer": "√",
283
+ * "unixVer": "4.11"
284
+ * },
285
+ * "harmony": {
286
+ * "osVer": "3.0",
287
+ * "uniVer": "4.23",
288
+ * "unixVer": "x"
289
+ * }
290
+ * },
291
+ * "web": {
292
+ * "uniVer": "√",
293
+ * "unixVer": "4.0"
294
+ * }
295
+ * }
296
+ */
297
+ height: number
298
+ };
299
+ export type SafeAreaInsets = {
300
+ /**
301
+ * 安全区域左侧插入位置(距离左边边界距离),单位为px
302
+ *
303
+ * @uniPlatform
304
+ * {
305
+ * "app": {
306
+ * "android": {
307
+ * "osVer": "5.0",
308
+ * "uniVer": "√",
309
+ * "unixVer": "3.9+"
310
+ * },
311
+ * "ios": {
312
+ * "osVer": "12.0",
313
+ * "uniVer": "√",
314
+ * "unixVer": "4.11"
315
+ * },
316
+ * "harmony": {
317
+ * "osVer": "3.0",
318
+ * "uniVer": "4.23",
319
+ * "unixVer": "x"
320
+ * }
321
+ * },
322
+ * "web": {
323
+ * "uniVer": "√",
324
+ * "unixVer": "4.0"
325
+ * }
326
+ * }
327
+ */
328
+ left: number,
329
+ /**
330
+ * 安全区域右侧插入位置(距离右边边界距离),单位为px
331
+ *
332
+ * @uniPlatform
333
+ * {
334
+ * "app": {
335
+ * "android": {
336
+ * "osVer": "5.0",
337
+ * "uniVer": "√",
338
+ * "unixVer": "3.9+"
339
+ * },
340
+ * "ios": {
341
+ * "osVer": "12.0",
342
+ * "uniVer": "√",
343
+ * "unixVer": "4.11"
344
+ * },
345
+ * "harmony": {
346
+ * "osVer": "3.0",
347
+ * "uniVer": "4.23",
348
+ * "unixVer": "x"
349
+ * }
350
+ * },
351
+ * "web": {
352
+ * "uniVer": "√",
353
+ * "unixVer": "4.0"
354
+ * }
355
+ * }
356
+ */
357
+ right: number,
358
+ /**
359
+ * 安全区顶部插入位置(距离顶部边界距离),单位为px
360
+ *
361
+ * @uniPlatform
362
+ * {
363
+ * "app": {
364
+ * "android": {
365
+ * "osVer": "5.0",
366
+ * "uniVer": "√",
367
+ * "unixVer": "3.9+"
368
+ * },
369
+ * "ios": {
370
+ * "osVer": "12.0",
371
+ * "uniVer": "√",
372
+ * "unixVer": "4.11"
373
+ * },
374
+ * "harmony": {
375
+ * "osVer": "3.0",
376
+ * "uniVer": "4.23",
377
+ * "unixVer": "x"
378
+ * }
379
+ * },
380
+ * "web": {
381
+ * "uniVer": "√",
382
+ * "unixVer": "4.0"
383
+ * }
384
+ * }
385
+ */
386
+ top: number,
387
+ /**
388
+ * 安全区域底部插入位置(距离底部边界距离),单位为px
389
+ *
390
+ * @uniPlatform
391
+ * {
392
+ * "app": {
393
+ * "android": {
394
+ * "osVer": "5.0",
395
+ * "uniVer": "√",
396
+ * "unixVer": "3.9+"
397
+ * },
398
+ * "ios": {
399
+ * "osVer": "12.0",
400
+ * "uniVer": "√",
401
+ * "unixVer": "4.11"
402
+ * },
403
+ * "harmony": {
404
+ * "osVer": "3.0",
405
+ * "uniVer": "4.23",
406
+ * "unixVer": "x"
407
+ * }
408
+ * },
409
+ * "web": {
410
+ * "uniVer": "√",
411
+ * "unixVer": "4.0"
412
+ * }
413
+ * }
414
+ */
415
+ bottom: number
416
+ };
417
+ export type GetSystemInfoResult = {
418
+ /**
419
+ * 客户端基础库版本
420
+ *
421
+ * @uniPlatform
422
+ * {
423
+ * "app": {
424
+ * "android": {
425
+ * "osVer": "5.0",
426
+ * "uniVer": "√",
427
+ * "unixVer": "3.9+"
428
+ * },
429
+ * "ios": {
430
+ * "osVer": "12.0",
431
+ * "uniVer": "√",
432
+ * "unixVer": "4.11"
433
+ * },
434
+ * "harmony": {
435
+ * "osVer": "x",
436
+ * "uniVer": "x",
437
+ * "unixVer": "x"
438
+ * }
439
+ * },
440
+ * "web": {
441
+ * "uniVer": "x",
442
+ * "unixVer": "x"
443
+ * }
444
+ * }
445
+ */
446
+ SDKVersion: string,
447
+ /**
448
+ * `manifest.json` 中应用appid。
449
+ *
450
+ * @uniPlatform
451
+ * {
452
+ * "app": {
453
+ * "android": {
454
+ * "osVer": "5.0",
455
+ * "uniVer": "√",
456
+ * "unixVer": "3.9+"
457
+ * },
458
+ * "ios": {
459
+ * "osVer": "12.0",
460
+ * "uniVer": "√",
461
+ * "unixVer": "4.11"
462
+ * },
463
+ * "harmony": {
464
+ * "osVer": "3.0",
465
+ * "uniVer": "4.23",
466
+ * "unixVer": "x"
467
+ * }
468
+ * },
469
+ * "web": {
470
+ * "uniVer": "√",
471
+ * "unixVer": "4.0"
472
+ * }
473
+ * }
474
+ */
475
+ appId: string,
476
+ /**
477
+ * 应用设置的语言。
478
+ *
479
+ * @uniPlatform
480
+ * {
481
+ * "app": {
482
+ * "android": {
483
+ * "osVer": "5.0",
484
+ * "uniVer": "√",
485
+ * "unixVer": "3.9+"
486
+ * },
487
+ * "ios": {
488
+ * "osVer": "12.0",
489
+ * "uniVer": "√",
490
+ * "unixVer": "4.11"
491
+ * },
492
+ * "harmony": {
493
+ * "osVer": "3.0",
494
+ * "uniVer": "4.23",
495
+ * "unixVer": "x"
496
+ * }
497
+ * },
498
+ * "web": {
499
+ * "uniVer": "√",
500
+ * "unixVer": "4.0"
501
+ * }
502
+ * }
503
+ */
504
+ appLanguage: string,
505
+ /**
506
+ * `manifest.json` 中应用名称。
507
+ *
508
+ * @uniPlatform
509
+ * {
510
+ * "app": {
511
+ * "android": {
512
+ * "osVer": "5.0",
513
+ * "uniVer": "√",
514
+ * "unixVer": "3.9+"
515
+ * },
516
+ * "ios": {
517
+ * "osVer": "12.0",
518
+ * "uniVer": "√",
519
+ * "unixVer": "4.11"
520
+ * },
521
+ * "harmony": {
522
+ * "osVer": "3.0",
523
+ * "uniVer": "4.23",
524
+ * "unixVer": "x"
525
+ * }
526
+ * },
527
+ * "web": {
528
+ * "uniVer": "√",
529
+ * "unixVer": "4.0"
530
+ * }
531
+ * }
532
+ */
533
+ appName: string,
534
+ /**
535
+ * `manifest.json` 中应用版本名称。
536
+ *
537
+ * @uniPlatform
538
+ * {
539
+ * "app": {
540
+ * "android": {
541
+ * "osVer": "5.0",
542
+ * "uniVer": "√",
543
+ * "unixVer": "3.9+"
544
+ * },
545
+ * "ios": {
546
+ * "osVer": "12.0",
547
+ * "uniVer": "√",
548
+ * "unixVer": "4.11"
549
+ * },
550
+ * "harmony": {
551
+ * "osVer": "3.0",
552
+ * "uniVer": "4.23",
553
+ * "unixVer": "x"
554
+ * }
555
+ * },
556
+ * "web": {
557
+ * "uniVer": "√",
558
+ * "unixVer": "4.0"
559
+ * }
560
+ * }
561
+ */
562
+ appVersion: string,
563
+ /**
564
+ * `manifest.json` 中应用版本名号。
565
+ *
566
+ * @uniPlatform
567
+ * {
568
+ * "app": {
569
+ * "android": {
570
+ * "osVer": "5.0",
571
+ * "uniVer": "√",
572
+ * "unixVer": "3.9+"
573
+ * },
574
+ * "ios": {
575
+ * "osVer": "12.0",
576
+ * "uniVer": "√",
577
+ * "unixVer": "4.11"
578
+ * },
579
+ * "harmony": {
580
+ * "osVer": "3.0",
581
+ * "uniVer": "4.23",
582
+ * "unixVer": "x"
583
+ * }
584
+ * },
585
+ * "web": {
586
+ * "uniVer": "√",
587
+ * "unixVer": "4.0"
588
+ * }
589
+ * }
590
+ */
591
+ appVersionCode: string,
592
+ /**
593
+ * 应用资源(wgt)的版本名称。
594
+ *
595
+ * @uniPlatform
596
+ * {
597
+ * "app": {
598
+ * "android": {
599
+ * "osVer": "5.0",
600
+ * "uniVer": "√",
601
+ * "unixVer": "x"
602
+ * },
603
+ * "ios": {
604
+ * "osVer": "12.0",
605
+ * "uniVer": "√",
606
+ * "unixVer": "x"
607
+ * },
608
+ * "harmony": {
609
+ * "osVer": "3.0",
610
+ * "uniVer": "4.23",
611
+ * "unixVer": "x"
612
+ * }
613
+ * },
614
+ * "web": {
615
+ * "uniVer": "x",
616
+ * "unixVer": "x"
617
+ * }
618
+ * }
619
+ */
620
+ appWgtVersion?: string | null,
621
+ /**
622
+ * 手机品牌。
623
+ * @deprecated 已废弃,仅为了向下兼容保留
624
+ *
625
+ * @uniPlatform
626
+ * {
627
+ * "app": {
628
+ * "android": {
629
+ * "osVer": "5.0",
630
+ * "uniVer": "√",
631
+ * "unixVer": "3.9+"
632
+ * },
633
+ * "ios": {
634
+ * "osVer": "12.0",
635
+ * "uniVer": "√",
636
+ * "unixVer": "4.11"
637
+ * },
638
+ * "harmony": {
639
+ * "osVer": "3.0",
640
+ * "uniVer": "4.23",
641
+ * "unixVer": "x"
642
+ * }
643
+ * },
644
+ * "web": {
645
+ * "uniVer": "x",
646
+ * "unixVer": "x"
647
+ * }
648
+ * }
649
+ */
650
+ brand: string,
651
+ /**
652
+ * 浏览器名称。`App` 端是系统 webview 的名字,比如 wkwebview、chrome。小程序端为空
653
+ *
654
+ * @uniPlatform
655
+ * {
656
+ * "app": {
657
+ * "android": {
658
+ * "osVer": "5.0",
659
+ * "uniVer": "√",
660
+ * "unixVer": "3.9+"
661
+ * },
662
+ * "ios": {
663
+ * "osVer": "12.0",
664
+ * "uniVer": "√",
665
+ * "unixVer": "4.11"
666
+ * },
667
+ * "harmony": {
668
+ * "osVer": "x",
669
+ * "uniVer": "x",
670
+ * "unixVer": "x"
671
+ * }
672
+ * },
673
+ * "web": {
674
+ * "uniVer": "√",
675
+ * "unixVer": "4.0"
676
+ * }
677
+ * }
678
+ */
679
+ browserName: string,
680
+ /**
681
+ * 浏览器版本、webview 版本。
682
+ *
683
+ * @uniPlatform
684
+ * {
685
+ * "app": {
686
+ * "android": {
687
+ * "osVer": "5.0",
688
+ * "uniVer": "√",
689
+ * "unixVer": "3.9+"
690
+ * },
691
+ * "ios": {
692
+ * "osVer": "12.0",
693
+ * "uniVer": "√",
694
+ * "unixVer": "4.11"
695
+ * },
696
+ * "harmony": {
697
+ * "osVer": "x",
698
+ * "uniVer": "x",
699
+ * "unixVer": "x"
700
+ * }
701
+ * },
702
+ * "web": {
703
+ * "uniVer": "√",
704
+ * "unixVer": "4.0"
705
+ * }
706
+ * }
707
+ */
708
+ browserVersion: string,
709
+ /**
710
+ * 设备 ID
711
+ *
712
+ * @uniPlatform
713
+ * {
714
+ * "app": {
715
+ * "android": {
716
+ * "osVer": "5.0",
717
+ * "uniVer": "√",
718
+ * "unixVer": "3.9+"
719
+ * },
720
+ * "ios": {
721
+ * "osVer": "12.0",
722
+ * "uniVer": "√",
723
+ * "unixVer": "4.11"
724
+ * },
725
+ * "harmony": {
726
+ * "osVer": "3.0",
727
+ * "uniVer": "4.23",
728
+ * "unixVer": "x"
729
+ * }
730
+ * },
731
+ * "web": {
732
+ * "uniVer": "√",
733
+ * "unixVer": "4.0"
734
+ * }
735
+ * }
736
+ */
737
+ deviceId: string,
738
+ /**
739
+ * 设备品牌。如:`apple`、`huawei`。
740
+ *
741
+ * @uniPlatform
742
+ * {
743
+ * "app": {
744
+ * "android": {
745
+ * "osVer": "5.0",
746
+ * "uniVer": "√",
747
+ * "unixVer": "3.9+"
748
+ * },
749
+ * "ios": {
750
+ * "osVer": "12.0",
751
+ * "uniVer": "√",
752
+ * "unixVer": "4.11"
753
+ * },
754
+ * "harmony": {
755
+ * "osVer": "3.0",
756
+ * "uniVer": "4.23",
757
+ * "unixVer": "x"
758
+ * }
759
+ * },
760
+ * "web": {
761
+ * "uniVer": "√",
762
+ * "unixVer": "4.0"
763
+ * }
764
+ * }
765
+ */
766
+ deviceBrand: string,
767
+ /**
768
+ * 设备型号
769
+ *
770
+ * @uniPlatform
771
+ * {
772
+ * "app": {
773
+ * "android": {
774
+ * "osVer": "5.0",
775
+ * "uniVer": "√",
776
+ * "unixVer": "3.9+"
777
+ * },
778
+ * "ios": {
779
+ * "osVer": "12.0",
780
+ * "uniVer": "√",
781
+ * "unixVer": "4.11"
782
+ * },
783
+ * "harmony": {
784
+ * "osVer": "3.0",
785
+ * "uniVer": "4.23",
786
+ * "unixVer": "x"
787
+ * }
788
+ * },
789
+ * "web": {
790
+ * "uniVer": "√",
791
+ * "unixVer": "4.0"
792
+ * }
793
+ * }
794
+ */
795
+ deviceModel: string,
796
+ /**
797
+ * 设备类型。
798
+ *
799
+ * @uniPlatform
800
+ * {
801
+ * "app": {
802
+ * "android": {
803
+ * "osVer": "5.0",
804
+ * "uniVer": "√",
805
+ * "unixVer": "3.9+"
806
+ * },
807
+ * "ios": {
808
+ * "osVer": "12.0",
809
+ * "uniVer": "√",
810
+ * "unixVer": "4.11"
811
+ * },
812
+ * "harmony": {
813
+ * "osVer": "3.0",
814
+ * "uniVer": "4.23",
815
+ * "unixVer": "x"
816
+ * }
817
+ * },
818
+ * "web": {
819
+ * "uniVer": "√",
820
+ * "unixVer": "4.0"
821
+ * }
822
+ * }
823
+ */
824
+ deviceType: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance',
825
+ /**
826
+ * 设备像素比
827
+ *
828
+ * @uniPlatform
829
+ * {
830
+ * "app": {
831
+ * "android": {
832
+ * "osVer": "5.0",
833
+ * "uniVer": "√",
834
+ * "unixVer": "3.9+"
835
+ * },
836
+ * "ios": {
837
+ * "osVer": "12.0",
838
+ * "uniVer": "√",
839
+ * "unixVer": "4.11"
840
+ * },
841
+ * "harmony": {
842
+ * "osVer": "3.0",
843
+ * "uniVer": "4.23",
844
+ * "unixVer": "x"
845
+ * }
846
+ * },
847
+ * "web": {
848
+ * "uniVer": "√",
849
+ * "unixVer": "4.0"
850
+ * }
851
+ * }
852
+ */
853
+ devicePixelRatio: number,
854
+ /**
855
+ * 设备方向。
856
+ * @type 'portrait' | 'landscape'
857
+ *
858
+ * @uniPlatform
859
+ * {
860
+ * "app": {
861
+ * "android": {
862
+ * "osVer": "5.0",
863
+ * "uniVer": "√",
864
+ * "unixVer": "3.9+"
865
+ * },
866
+ * "ios": {
867
+ * "osVer": "12.0",
868
+ * "uniVer": "√",
869
+ * "unixVer": "4.11"
870
+ * },
871
+ * "harmony": {
872
+ * "osVer": "3.0",
873
+ * "uniVer": "4.23",
874
+ * "unixVer": "x"
875
+ * }
876
+ * },
877
+ * "web": {
878
+ * "uniVer": "√",
879
+ * "unixVer": "4.0"
880
+ * }
881
+ * }
882
+ */
883
+ deviceOrientation: 'portrait' | 'landscape',
884
+ /**
885
+ * 程序设置的语言
886
+ * @deprecated 已废弃,仅为了向下兼容保留
887
+ *
888
+ * @uniPlatform
889
+ * {
890
+ * "app": {
891
+ * "android": {
892
+ * "osVer": "5.0",
893
+ * "uniVer": "√",
894
+ * "unixVer": "3.9+"
895
+ * },
896
+ * "ios": {
897
+ * "osVer": "12.0",
898
+ * "uniVer": "√",
899
+ * "unixVer": "4.11"
900
+ * },
901
+ * "harmony": {
902
+ * "osVer": "x",
903
+ * "uniVer": "x",
904
+ * "unixVer": "x"
905
+ * }
906
+ * },
907
+ * "web": {
908
+ * "uniVer": "√",
909
+ * "unixVer": "4.0"
910
+ * }
911
+ * }
912
+ */
913
+ language: string,
914
+ /**
915
+ * 手机型号
916
+ * @deprecated 已废弃,仅为了向下兼容保留
917
+ *
918
+ * @uniPlatform
919
+ * {
920
+ * "app": {
921
+ * "android": {
922
+ * "osVer": "5.0",
923
+ * "uniVer": "√",
924
+ * "unixVer": "3.9+"
925
+ * },
926
+ * "ios": {
927
+ * "osVer": "12.0",
928
+ * "uniVer": "√",
929
+ * "unixVer": "4.11"
930
+ * },
931
+ * "harmony": {
932
+ * "osVer": "x",
933
+ * "uniVer": "x",
934
+ * "unixVer": "x"
935
+ * }
936
+ * },
937
+ * "web": {
938
+ * "uniVer": "√",
939
+ * "unixVer": "4.0"
940
+ * }
941
+ * }
942
+ */
943
+ model?: string,
944
+ /**
945
+ * 系统名称
946
+ *
947
+ * @uniPlatform
948
+ * {
949
+ * "app": {
950
+ * "android": {
951
+ * "osVer": "5.0",
952
+ * "uniVer": "√",
953
+ * "unixVer": "3.9+"
954
+ * },
955
+ * "ios": {
956
+ * "osVer": "12.0",
957
+ * "uniVer": "√",
958
+ * "unixVer": "4.11"
959
+ * },
960
+ * "harmony": {
961
+ * "osVer": "3.0",
962
+ * "uniVer": "4.23",
963
+ * "unixVer": "x"
964
+ * }
965
+ * },
966
+ * "web": {
967
+ * "uniVer": "√",
968
+ * "unixVer": "4.0"
969
+ * }
970
+ * }
971
+ */
972
+ osName: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux',
973
+ /**
974
+ * 操作系统版本。如 ios 版本,andriod 版本
975
+ *
976
+ * @uniPlatform
977
+ * {
978
+ * "app": {
979
+ * "android": {
980
+ * "osVer": "5.0",
981
+ * "uniVer": "√",
982
+ * "unixVer": "3.9+"
983
+ * },
984
+ * "ios": {
985
+ * "osVer": "12.0",
986
+ * "uniVer": "√",
987
+ * "unixVer": "4.11"
988
+ * },
989
+ * "harmony": {
990
+ * "osVer": "3.0",
991
+ * "uniVer": "4.23",
992
+ * "unixVer": "x"
993
+ * }
994
+ * },
995
+ * "web": {
996
+ * "uniVer": "√",
997
+ * "unixVer": "4.0"
998
+ * }
999
+ * }
1000
+ */
1001
+ osVersion: string,
1002
+ /**
1003
+ * 操作系统语言
1004
+ *
1005
+ * @uniPlatform
1006
+ * {
1007
+ * "app": {
1008
+ * "android": {
1009
+ * "osVer": "5.0",
1010
+ * "uniVer": "√",
1011
+ * "unixVer": "3.9+"
1012
+ * },
1013
+ * "ios": {
1014
+ * "osVer": "12.0",
1015
+ * "uniVer": "√",
1016
+ * "unixVer": "4.11"
1017
+ * },
1018
+ * "harmony": {
1019
+ * "osVer": "3.0",
1020
+ * "uniVer": "4.23",
1021
+ * "unixVer": "x"
1022
+ * }
1023
+ * },
1024
+ * "web": {
1025
+ * "uniVer": "√",
1026
+ * "unixVer": "4.0"
1027
+ * }
1028
+ * }
1029
+ */
1030
+ osLanguage: string,
1031
+ /**
1032
+ * 操作系统主题
1033
+ *
1034
+ * @uniPlatform
1035
+ * {
1036
+ * "app": {
1037
+ * "android": {
1038
+ * "osVer": "5.0",
1039
+ * "uniVer": "√",
1040
+ * "unixVer": "√"
1041
+ * },
1042
+ * "ios": {
1043
+ * "osVer": "12.0",
1044
+ * "uniVer": "√",
1045
+ * "unixVer": "4.11"
1046
+ * },
1047
+ * "harmony": {
1048
+ * "osVer": "3.0",
1049
+ * "uniVer": "4.23",
1050
+ * "unixVer": "x"
1051
+ * }
1052
+ * },
1053
+ * "web": {
1054
+ * "uniVer": "x",
1055
+ * "unixVer": "x"
1056
+ * }
1057
+ * }
1058
+ */
1059
+ osTheme?: 'light' | 'dark' | null,
1060
+ /**
1061
+ * 设备像素比
1062
+ * @deprecated 已废弃,仅为了向下兼容保留
1063
+ *
1064
+ * @uniPlatform
1065
+ * {
1066
+ * "app": {
1067
+ * "android": {
1068
+ * "osVer": "5.0",
1069
+ * "uniVer": "√",
1070
+ * "unixVer": "3.9+"
1071
+ * },
1072
+ * "ios": {
1073
+ * "osVer": "12.0",
1074
+ * "uniVer": "√",
1075
+ * "unixVer": "4.11"
1076
+ * },
1077
+ * "harmony": {
1078
+ * "osVer": "x",
1079
+ * "uniVer": "x",
1080
+ * "unixVer": "x"
1081
+ * }
1082
+ * },
1083
+ * "web": {
1084
+ * "uniVer": "√",
1085
+ * "unixVer": "4.0"
1086
+ * }
1087
+ * }
1088
+ */
1089
+ pixelRatio: number,
1090
+ /**
1091
+ * 客户端平台
1092
+ * @deprecated 已废弃,仅为了向下兼容保留
1093
+ *
1094
+ * @uniPlatform
1095
+ * {
1096
+ * "app": {
1097
+ * "android": {
1098
+ * "osVer": "5.0",
1099
+ * "uniVer": "√",
1100
+ * "unixVer": "3.9+"
1101
+ * },
1102
+ * "ios": {
1103
+ * "osVer": "12.0",
1104
+ * "uniVer": "√",
1105
+ * "unixVer": "4.11"
1106
+ * },
1107
+ * "harmony": {
1108
+ * "osVer": "x",
1109
+ * "uniVer": "x",
1110
+ * "unixVer": "x"
1111
+ * }
1112
+ * },
1113
+ * "web": {
1114
+ * "uniVer": "√",
1115
+ * "unixVer": "4.0"
1116
+ * }
1117
+ * }
1118
+ */
1119
+ platform: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux',
1120
+ /**
1121
+ * 屏幕宽度,单位为px
1122
+ *
1123
+ * @uniPlatform
1124
+ * {
1125
+ * "app": {
1126
+ * "android": {
1127
+ * "osVer": "5.0",
1128
+ * "uniVer": "√",
1129
+ * "unixVer": "3.9+"
1130
+ * },
1131
+ * "ios": {
1132
+ * "osVer": "12.0",
1133
+ * "uniVer": "√",
1134
+ * "unixVer": "4.11"
1135
+ * },
1136
+ * "harmony": {
1137
+ * "osVer": "3.0",
1138
+ * "uniVer": "4.23",
1139
+ * "unixVer": "x"
1140
+ * }
1141
+ * },
1142
+ * "web": {
1143
+ * "uniVer": "√",
1144
+ * "unixVer": "4.0"
1145
+ * }
1146
+ * }
1147
+ */
1148
+ screenWidth: number,
1149
+ /**
1150
+ * 屏幕高度,单位为px
1151
+ *
1152
+ * @uniPlatform
1153
+ * {
1154
+ * "app": {
1155
+ * "android": {
1156
+ * "osVer": "5.0",
1157
+ * "uniVer": "√",
1158
+ * "unixVer": "3.9+"
1159
+ * },
1160
+ * "ios": {
1161
+ * "osVer": "12.0",
1162
+ * "uniVer": "√",
1163
+ * "unixVer": "4.11"
1164
+ * },
1165
+ * "harmony": {
1166
+ * "osVer": "3.0",
1167
+ * "uniVer": "4.23",
1168
+ * "unixVer": "x"
1169
+ * }
1170
+ * },
1171
+ * "web": {
1172
+ * "uniVer": "√",
1173
+ * "unixVer": "4.0"
1174
+ * }
1175
+ * }
1176
+ */
1177
+ screenHeight: number,
1178
+ /**
1179
+ * 状态栏的高度,单位为px
1180
+ *
1181
+ * @uniPlatform
1182
+ * {
1183
+ * "app": {
1184
+ * "android": {
1185
+ * "osVer": "5.0",
1186
+ * "uniVer": "√",
1187
+ * "unixVer": "3.9+"
1188
+ * },
1189
+ * "ios": {
1190
+ * "osVer": "12.0",
1191
+ * "uniVer": "√",
1192
+ * "unixVer": "4.11"
1193
+ * },
1194
+ * "harmony": {
1195
+ * "osVer": "3.0",
1196
+ * "uniVer": "4.23",
1197
+ * "unixVer": "x"
1198
+ * }
1199
+ * },
1200
+ * "web": {
1201
+ * "uniVer": "√",
1202
+ * "unixVer": "4.0"
1203
+ * }
1204
+ * }
1205
+ */
1206
+ statusBarHeight: number,
1207
+ /**
1208
+ * 操作系统版本
1209
+ * @deprecated 已废弃,仅为了向下兼容保留
1210
+ *
1211
+ * @uniPlatform
1212
+ * {
1213
+ * "app": {
1214
+ * "android": {
1215
+ * "osVer": "5.0",
1216
+ * "uniVer": "√",
1217
+ * "unixVer": "3.9+"
1218
+ * },
1219
+ * "ios": {
1220
+ * "osVer": "12.0",
1221
+ * "uniVer": "√",
1222
+ * "unixVer": "4.11"
1223
+ * },
1224
+ * "harmony": {
1225
+ * "osVer": "3.0",
1226
+ * "uniVer": "4.23",
1227
+ * "unixVer": "x"
1228
+ * }
1229
+ * },
1230
+ * "web": {
1231
+ * "uniVer": "√",
1232
+ * "unixVer": "4.0"
1233
+ * }
1234
+ * }
1235
+ */
1236
+ system: string,
1237
+ /**
1238
+ * 在竖屏正方向下的安全区域
1239
+ *
1240
+ * @uniPlatform
1241
+ * {
1242
+ * "app": {
1243
+ * "android": {
1244
+ * "osVer": "5.0",
1245
+ * "uniVer": "√",
1246
+ * "unixVer": "3.9+"
1247
+ * },
1248
+ * "ios": {
1249
+ * "osVer": "12.0",
1250
+ * "uniVer": "√",
1251
+ * "unixVer": "4.11"
1252
+ * },
1253
+ * "harmony": {
1254
+ * "osVer": "3.0",
1255
+ * "uniVer": "4.23",
1256
+ * "unixVer": "x"
1257
+ * }
1258
+ * },
1259
+ * "web": {
1260
+ * "uniVer": "√",
1261
+ * "unixVer": "4.0"
1262
+ * }
1263
+ * }
1264
+ */
1265
+ safeArea: SafeArea,
1266
+ /**
1267
+ * 在竖屏正方向下的安全区域插入位置
1268
+ *
1269
+ * @uniPlatform
1270
+ * {
1271
+ * "app": {
1272
+ * "android": {
1273
+ * "osVer": "5.0",
1274
+ * "uniVer": "√",
1275
+ * "unixVer": "3.9+"
1276
+ * },
1277
+ * "ios": {
1278
+ * "osVer": "12.0",
1279
+ * "uniVer": "√",
1280
+ * "unixVer": "4.11"
1281
+ * },
1282
+ * "harmony": {
1283
+ * "osVer": "3.0",
1284
+ * "uniVer": "4.23",
1285
+ * "unixVer": "x"
1286
+ * }
1287
+ * },
1288
+ * "web": {
1289
+ * "uniVer": "√",
1290
+ * "unixVer": "4.0"
1291
+ * }
1292
+ * }
1293
+ */
1294
+ safeAreaInsets: SafeAreaInsets,
1295
+ /**
1296
+ * 用户标识。小程序端为空
1297
+ *
1298
+ * @uniPlatform
1299
+ * {
1300
+ * "app": {
1301
+ * "android": {
1302
+ * "osVer": "5.0",
1303
+ * "uniVer": "√",
1304
+ * "unixVer": "3.9+"
1305
+ * },
1306
+ * "ios": {
1307
+ * "osVer": "12.0",
1308
+ * "uniVer": "√",
1309
+ * "unixVer": "4.11"
1310
+ * },
1311
+ * "harmony": {
1312
+ * "osVer": "x",
1313
+ * "uniVer": "x",
1314
+ * "unixVer": "x"
1315
+ * }
1316
+ * },
1317
+ * "web": {
1318
+ * "uniVer": "√",
1319
+ * "unixVer": "4.0"
1320
+ * }
1321
+ * }
1322
+ */
1323
+ ua: string,
1324
+ /**
1325
+ * uni 编译器版本。
1326
+ * @deprecated 已废弃,仅为了向下兼容保留
1327
+ *
1328
+ * @uniPlatform
1329
+ * {
1330
+ * "app": {
1331
+ * "android": {
1332
+ * "osVer": "5.0",
1333
+ * "uniVer": "√",
1334
+ * "unixVer": "3.9+"
1335
+ * },
1336
+ * "ios": {
1337
+ * "osVer": "12.0",
1338
+ * "uniVer": "√",
1339
+ * "unixVer": "4.11"
1340
+ * },
1341
+ * "harmony": {
1342
+ * "osVer": "x",
1343
+ * "uniVer": "x",
1344
+ * "unixVer": "x"
1345
+ * }
1346
+ * },
1347
+ * "web": {
1348
+ * "uniVer": "√",
1349
+ * "unixVer": "4.0"
1350
+ * }
1351
+ * }
1352
+ */
1353
+ uniCompileVersion: string,
1354
+ /**
1355
+ * uni 编译器版本。
1356
+ *
1357
+ * @uniPlatform
1358
+ * {
1359
+ * "app": {
1360
+ * "android": {
1361
+ * "osVer": "5.0",
1362
+ * "uniVer": "x",
1363
+ * "unixVer": "3.9+"
1364
+ * },
1365
+ * "ios": {
1366
+ * "osVer": "12.0",
1367
+ * "uniVer": "x",
1368
+ * "unixVer": "4.11"
1369
+ * },
1370
+ * "harmony": {
1371
+ * "osVer": "3.0",
1372
+ * "uniVer": "4.23",
1373
+ * "unixVer": "x"
1374
+ * }
1375
+ * },
1376
+ * "web": {
1377
+ * "uniVer": "x",
1378
+ * "unixVer": "4.18"
1379
+ * }
1380
+ * }
1381
+ */
1382
+ uniCompilerVersion: string,
1383
+ /**
1384
+ * uni-app 运行平台,与条件编译平台相同。
1385
+ *
1386
+ * @uniPlatform
1387
+ * {
1388
+ * "app": {
1389
+ * "android": {
1390
+ * "osVer": "5.0",
1391
+ * "uniVer": "√",
1392
+ * "unixVer": "3.9+"
1393
+ * },
1394
+ * "ios": {
1395
+ * "osVer": "12.0",
1396
+ * "uniVer": "√",
1397
+ * "unixVer": "4.11"
1398
+ * },
1399
+ * "harmony": {
1400
+ * "osVer": "3.0",
1401
+ * "uniVer": "4.23",
1402
+ * "unixVer": "x"
1403
+ * }
1404
+ * },
1405
+ * "web": {
1406
+ * "uniVer": "√",
1407
+ * "unixVer": "4.0"
1408
+ * }
1409
+ * }
1410
+ */
1411
+ uniPlatform: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei',
1412
+ /**
1413
+ * uni 运行时版本。
1414
+ *
1415
+ * @uniPlatform
1416
+ * {
1417
+ * "app": {
1418
+ * "android": {
1419
+ * "osVer": "5.0",
1420
+ * "uniVer": "√",
1421
+ * "unixVer": "3.9+"
1422
+ * },
1423
+ * "ios": {
1424
+ * "osVer": "12.0",
1425
+ * "uniVer": "√",
1426
+ * "unixVer": "4.11"
1427
+ * },
1428
+ * "harmony": {
1429
+ * "osVer": "3.0",
1430
+ * "uniVer": "4.23",
1431
+ * "unixVer": "x"
1432
+ * }
1433
+ * },
1434
+ * "web": {
1435
+ * "uniVer": "√",
1436
+ * "unixVer": "4.0"
1437
+ * }
1438
+ * }
1439
+ */
1440
+ uniRuntimeVersion: string,
1441
+ /**
1442
+ * uni 编译器版本号。
1443
+ * @deprecated 已废弃,仅为了向下兼容保留
1444
+ *
1445
+ * @uniPlatform
1446
+ * {
1447
+ * "app": {
1448
+ * "android": {
1449
+ * "osVer": "5.0",
1450
+ * "uniVer": "x",
1451
+ * "unixVer": "3.9+"
1452
+ * },
1453
+ * "ios": {
1454
+ * "osVer": "12.0",
1455
+ * "uniVer": "x",
1456
+ * "unixVer": "4.11"
1457
+ * },
1458
+ * "harmony": {
1459
+ * "osVer": "x",
1460
+ * "uniVer": "x",
1461
+ * "unixVer": "x"
1462
+ * }
1463
+ * },
1464
+ * "web": {
1465
+ * "uniVer": "√",
1466
+ * "unixVer": "4.0"
1467
+ * }
1468
+ * }
1469
+ */
1470
+ uniCompileVersionCode: number,
1471
+ /**
1472
+ * uni 编译器版本号。
1473
+ *
1474
+ * @uniPlatform
1475
+ * {
1476
+ * "app": {
1477
+ * "android": {
1478
+ * "osVer": "5.0",
1479
+ * "uniVer": "x",
1480
+ * "unixVer": "3.9+"
1481
+ * },
1482
+ * "ios": {
1483
+ * "osVer": "12.0",
1484
+ * "uniVer": "x",
1485
+ * "unixVer": "4.11"
1486
+ * },
1487
+ * "harmony": {
1488
+ * "osVer": "3.0",
1489
+ * "uniVer": "4.23",
1490
+ * "unixVer": "x"
1491
+ * }
1492
+ * },
1493
+ * "web": {
1494
+ * "uniVer": "x",
1495
+ * "unixVer": "4.18"
1496
+ * }
1497
+ * }
1498
+ */
1499
+ uniCompilerVersionCode: number,
1500
+ /**
1501
+ * uni 运行时版本号。
1502
+ *
1503
+ * @uniPlatform
1504
+ * {
1505
+ * "app": {
1506
+ * "android": {
1507
+ * "osVer": "5.0",
1508
+ * "uniVer": "x",
1509
+ * "unixVer": "3.9+"
1510
+ * },
1511
+ * "ios": {
1512
+ * "osVer": "12.0",
1513
+ * "uniVer": "x",
1514
+ * "unixVer": "4.11"
1515
+ * },
1516
+ * "harmony": {
1517
+ * "osVer": "3.0",
1518
+ * "uniVer": "4.23",
1519
+ * "unixVer": "x"
1520
+ * }
1521
+ * },
1522
+ * "web": {
1523
+ * "uniVer": "√",
1524
+ * "unixVer": "4.0"
1525
+ * }
1526
+ * }
1527
+ */
1528
+ uniRuntimeVersionCode: number,
1529
+ /**
1530
+ * 引擎版本号。
1531
+ * @deprecated 已废弃,仅为了向下兼容保留
1532
+ *
1533
+ * @uniPlatform
1534
+ * {
1535
+ * "app": {
1536
+ * "android": {
1537
+ * "osVer": "5.0",
1538
+ * "uniVer": "√",
1539
+ * "unixVer": "3.9+"
1540
+ * },
1541
+ * "ios": {
1542
+ * "osVer": "12.0",
1543
+ * "uniVer": "√",
1544
+ * "unixVer": "4.11"
1545
+ * },
1546
+ * "harmony": {
1547
+ * "osVer": "x",
1548
+ * "uniVer": "x",
1549
+ * "unixVer": "x"
1550
+ * }
1551
+ * },
1552
+ * "web": {
1553
+ * "uniVer": "√",
1554
+ * "unixVer": "4.0"
1555
+ * }
1556
+ * }
1557
+ */
1558
+ version: string,
1559
+ /**
1560
+ * rom 名称。Android 部分机型获取不到值。iOS 恒为 `ios`
1561
+ *
1562
+ * @uniPlatform
1563
+ * {
1564
+ * "app": {
1565
+ * "android": {
1566
+ * "osVer": "5.0",
1567
+ * "uniVer": "√",
1568
+ * "unixVer": "3.9+"
1569
+ * },
1570
+ * "ios": {
1571
+ * "osVer": "12.0",
1572
+ * "uniVer": "x",
1573
+ * "unixVer": "4.11"
1574
+ * },
1575
+ * "harmony": {
1576
+ * "osVer": "3.0",
1577
+ * "uniVer": "4.23",
1578
+ * "unixVer": "x"
1579
+ * }
1580
+ * },
1581
+ * "web": {
1582
+ * "uniVer": "x",
1583
+ * "unixVer": "x"
1584
+ * }
1585
+ * }
1586
+ */
1587
+ romName: string,
1588
+ /**
1589
+ * rom 版本号。Android 部分机型获取不到值。iOS 为操作系统版本号(同 `osVersion`)。
1590
+ *
1591
+ * @uniPlatform
1592
+ * {
1593
+ * "app": {
1594
+ * "android": {
1595
+ * "osVer": "5.0",
1596
+ * "uniVer": "√",
1597
+ * "unixVer": "3.9+"
1598
+ * },
1599
+ * "ios": {
1600
+ * "osVer": "12.0",
1601
+ * "uniVer": "x",
1602
+ * "unixVer": "4.11"
1603
+ * },
1604
+ * "harmony": {
1605
+ * "osVer": "3.0",
1606
+ * "uniVer": "4.23",
1607
+ * "unixVer": "x"
1608
+ * }
1609
+ * },
1610
+ * "web": {
1611
+ * "uniVer": "x",
1612
+ * "unixVer": "x"
1613
+ * }
1614
+ * }
1615
+ */
1616
+ romVersion: string,
1617
+ /**
1618
+ * 可使用窗口宽度,单位为px
1619
+ *
1620
+ * @uniPlatform
1621
+ * {
1622
+ * "app": {
1623
+ * "android": {
1624
+ * "osVer": "5.0",
1625
+ * "uniVer": "√",
1626
+ * "unixVer": "3.9+"
1627
+ * },
1628
+ * "ios": {
1629
+ * "osVer": "12.0",
1630
+ * "uniVer": "√",
1631
+ * "unixVer": "4.11"
1632
+ * },
1633
+ * "harmony": {
1634
+ * "osVer": "3.0",
1635
+ * "uniVer": "4.23",
1636
+ * "unixVer": "x"
1637
+ * }
1638
+ * },
1639
+ * "web": {
1640
+ * "uniVer": "√",
1641
+ * "unixVer": "4.0"
1642
+ * }
1643
+ * }
1644
+ */
1645
+ windowWidth: number,
1646
+ /**
1647
+ * 可使用窗口高度,单位为px
1648
+ *
1649
+ * @uniPlatform
1650
+ * {
1651
+ * "app": {
1652
+ * "android": {
1653
+ * "osVer": "5.0",
1654
+ * "uniVer": "√",
1655
+ * "unixVer": "3.9+"
1656
+ * },
1657
+ * "ios": {
1658
+ * "osVer": "12.0",
1659
+ * "uniVer": "√",
1660
+ * "unixVer": "4.11"
1661
+ * },
1662
+ * "harmony": {
1663
+ * "osVer": "3.0",
1664
+ * "uniVer": "4.23",
1665
+ * "unixVer": "x"
1666
+ * }
1667
+ * },
1668
+ * "web": {
1669
+ * "uniVer": "√",
1670
+ * "unixVer": "4.0"
1671
+ * }
1672
+ * }
1673
+ */
1674
+ windowHeight: number,
1675
+ /**
1676
+ * 内容区域距离顶部的距离(同CSS变量 `--window-top`),单位为px
1677
+ *
1678
+ * @uniPlatform
1679
+ * {
1680
+ * "app": {
1681
+ * "android": {
1682
+ * "osVer": "5.0",
1683
+ * "uniVer": "√",
1684
+ * "unixVer": "3.9+"
1685
+ * },
1686
+ * "ios": {
1687
+ * "osVer": "12.0",
1688
+ * "uniVer": "√",
1689
+ * "unixVer": "4.11"
1690
+ * },
1691
+ * "harmony": {
1692
+ * "osVer": "3.0",
1693
+ * "uniVer": "4.23",
1694
+ * "unixVer": "x"
1695
+ * }
1696
+ * },
1697
+ * "web": {
1698
+ * "uniVer": "√",
1699
+ * "unixVer": "4.0"
1700
+ * }
1701
+ * }
1702
+ */
1703
+ windowTop: number,
1704
+ /**
1705
+ * 内容区域距离底部的距离(同CSS变量 `--window-bottom`),单位为px
1706
+ *
1707
+ * @uniPlatform
1708
+ * {
1709
+ * "app": {
1710
+ * "android": {
1711
+ * "osVer": "5.0",
1712
+ * "uniVer": "√",
1713
+ * "unixVer": "3.9+"
1714
+ * },
1715
+ * "ios": {
1716
+ * "osVer": "12.0",
1717
+ * "uniVer": "√",
1718
+ * "unixVer": "4.11"
1719
+ * },
1720
+ * "harmony": {
1721
+ * "osVer": "3.0",
1722
+ * "uniVer": "4.23",
1723
+ * "unixVer": "x"
1724
+ * }
1725
+ * },
1726
+ * "web": {
1727
+ * "uniVer": "√",
1728
+ * "unixVer": "4.0"
1729
+ * }
1730
+ * }
1731
+ */
1732
+ windowBottom: number,
1733
+ /**
1734
+ * Android 系统API库的版本。
1735
+ *
1736
+ * @uniPlatform
1737
+ * {
1738
+ * "app": {
1739
+ * "android": {
1740
+ * "osVer": "5.0",
1741
+ * "uniVer": "√",
1742
+ * "unixVer": "√"
1743
+ * },
1744
+ * "ios": {
1745
+ * "osVer": "x",
1746
+ * "uniVer": "x",
1747
+ * "unixVer": "x"
1748
+ * },
1749
+ * "harmony": {
1750
+ * "osVer": "x",
1751
+ * "uniVer": "x",
1752
+ * "unixVer": "x"
1753
+ * }
1754
+ * },
1755
+ * "web": {
1756
+ * "uniVer": "x",
1757
+ * "unixVer": "x"
1758
+ * }
1759
+ * }
1760
+ */
1761
+ osAndroidAPILevel?: number | null,
1762
+ /**
1763
+ * 当前App的主题
1764
+ *
1765
+ * @uniPlatform
1766
+ * {
1767
+ * "app": {
1768
+ * "android": {
1769
+ * "osVer": "5.0",
1770
+ * "uniVer": "x",
1771
+ * "unixVer": "4.18"
1772
+ * },
1773
+ * "ios": {
1774
+ * "osVer": "12.0",
1775
+ * "uniVer": "x",
1776
+ * "unixVer": "4.18"
1777
+ * },
1778
+ * "harmony": {
1779
+ * "osVer": "3.0",
1780
+ * "uniVer": "4.23",
1781
+ * "unixVer": "x"
1782
+ * }
1783
+ * },
1784
+ * "web": {
1785
+ * "uniVer": "x",
1786
+ * "unixVer": "x"
1787
+ * }
1788
+ * }
1789
+ */
1790
+ appTheme?: 'light' | 'dark' | 'auto' | null,
1791
+ };
1792
+ export type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void;
1793
+ type GetSystemInfoFail = UniError;
1794
+ type GetSystemInfoFailCallback = (result: GetSystemInfoFail) => void;
1795
+ export type GetSystemInfoComplete = any;
1796
+ export type GetSystemInfoCompleteCallback = (result: GetSystemInfoComplete) => void;
1797
+ export type GetSystemInfoOptions = {
1798
+ /**
1799
+ * 接口调用成功的回调函数
1800
+ * @defaultValue null
1801
+ */
1802
+ success?: GetSystemInfoSuccessCallback | null,
1803
+ /**
1804
+ * 接口调用失败的回调函数
1805
+ * @defaultValue null
1806
+ */
1807
+ fail?: GetSystemInfoFailCallback | null,
1808
+ /**
1809
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1810
+ * @defaultValue null
1811
+ */
1812
+ complete?: GetSystemInfoCompleteCallback | null
1813
+ };
1814
+
1815
+ export type GetWindowInfoResult = {
1816
+ /**
1817
+ * 设备像素比
1818
+ *
1819
+ * @uniPlatform
1820
+ * {
1821
+ * "app": {
1822
+ * "android": {
1823
+ * "osVer": "5.0",
1824
+ * "uniVer": "√",
1825
+ * "unixVer": "3.9+"
1826
+ * },
1827
+ * "ios": {
1828
+ * "osVer": "12.0",
1829
+ * "uniVer": "√",
1830
+ * "unixVer": "4.11"
1831
+ * },
1832
+ * "harmony": {
1833
+ * "osVer": "3.0",
1834
+ * "uniVer": "4.23",
1835
+ * "unixVer": "x"
1836
+ * }
1837
+ * },
1838
+ * "web": {
1839
+ * "uniVer": "√",
1840
+ * "unixVer": "4.0"
1841
+ * }
1842
+ * }
1843
+ */
1844
+ pixelRatio: number,
1845
+ /**
1846
+ * 屏幕宽度,单位为px
1847
+ *
1848
+ * @uniPlatform
1849
+ * {
1850
+ * "app": {
1851
+ * "android": {
1852
+ * "osVer": "5.0",
1853
+ * "uniVer": "√",
1854
+ * "unixVer": "3.9+"
1855
+ * },
1856
+ * "ios": {
1857
+ * "osVer": "12.0",
1858
+ * "uniVer": "√",
1859
+ * "unixVer": "4.11"
1860
+ * },
1861
+ * "harmony": {
1862
+ * "osVer": "3.0",
1863
+ * "uniVer": "4.23",
1864
+ * "unixVer": "x"
1865
+ * }
1866
+ * },
1867
+ * "web": {
1868
+ * "uniVer": "√",
1869
+ * "unixVer": "4.0"
1870
+ * }
1871
+ * }
1872
+ */
1873
+ screenWidth: number,
1874
+ /**
1875
+ * 屏幕高度,单位为px
1876
+ *
1877
+ * @uniPlatform
1878
+ * {
1879
+ * "app": {
1880
+ * "android": {
1881
+ * "osVer": "5.0",
1882
+ * "uniVer": "√",
1883
+ * "unixVer": "3.9+"
1884
+ * },
1885
+ * "ios": {
1886
+ * "osVer": "12.0",
1887
+ * "uniVer": "√",
1888
+ * "unixVer": "4.11"
1889
+ * },
1890
+ * "harmony": {
1891
+ * "osVer": "3.0",
1892
+ * "uniVer": "4.23",
1893
+ * "unixVer": "x"
1894
+ * }
1895
+ * },
1896
+ * "web": {
1897
+ * "uniVer": "√",
1898
+ * "unixVer": "4.0"
1899
+ * }
1900
+ * }
1901
+ */
1902
+ screenHeight: number,
1903
+ /**
1904
+ * 可使用窗口宽度,单位为px
1905
+ *
1906
+ * @uniPlatform
1907
+ * {
1908
+ * "app": {
1909
+ * "android": {
1910
+ * "osVer": "5.0",
1911
+ * "uniVer": "√",
1912
+ * "unixVer": "3.9+"
1913
+ * },
1914
+ * "ios": {
1915
+ * "osVer": "12.0",
1916
+ * "uniVer": "√",
1917
+ * "unixVer": "4.11"
1918
+ * },
1919
+ * "harmony": {
1920
+ * "osVer": "3.0",
1921
+ * "uniVer": "4.23",
1922
+ * "unixVer": "x"
1923
+ * }
1924
+ * },
1925
+ * "web": {
1926
+ * "uniVer": "√",
1927
+ * "unixVer": "4.0"
1928
+ * }
1929
+ * }
1930
+ */
1931
+ windowWidth: number,
1932
+ /**
1933
+ * 可使用窗口高度,单位为px
1934
+ *
1935
+ * @uniPlatform
1936
+ * {
1937
+ * "app": {
1938
+ * "android": {
1939
+ * "osVer": "5.0",
1940
+ * "uniVer": "√",
1941
+ * "unixVer": "3.9+"
1942
+ * },
1943
+ * "ios": {
1944
+ * "osVer": "12.0",
1945
+ * "uniVer": "√",
1946
+ * "unixVer": "4.11"
1947
+ * },
1948
+ * "harmony": {
1949
+ * "osVer": "3.0",
1950
+ * "uniVer": "4.23",
1951
+ * "unixVer": "x"
1952
+ * }
1953
+ * }
1954
+ * }
1955
+ */
1956
+ windowHeight: number,
1957
+ /**
1958
+ * 状态栏的高度,单位为px
1959
+ *
1960
+ * @uniPlatform
1961
+ * {
1962
+ * "app": {
1963
+ * "android": {
1964
+ * "osVer": "5.0",
1965
+ * "uniVer": "√",
1966
+ * "unixVer": "3.9+"
1967
+ * },
1968
+ * "ios": {
1969
+ * "osVer": "12.0",
1970
+ * "uniVer": "√",
1971
+ * "unixVer": "4.11"
1972
+ * },
1973
+ * "harmony": {
1974
+ * "osVer": "3.0",
1975
+ * "uniVer": "4.23",
1976
+ * "unixVer": "x"
1977
+ * }
1978
+ * },
1979
+ * "web": {
1980
+ * "uniVer": "√",
1981
+ * "unixVer": "4.0"
1982
+ * }
1983
+ * }
1984
+ */
1985
+ statusBarHeight: number,
1986
+ /**
1987
+ * 内容区域距离顶部的距离(同CSS变量 `--window-top`),单位为px
1988
+ *
1989
+ * @uniPlatform
1990
+ * {
1991
+ * "app": {
1992
+ * "android": {
1993
+ * "osVer": "5.0",
1994
+ * "uniVer": "√",
1995
+ * "unixVer": "3.9+"
1996
+ * },
1997
+ * "ios": {
1998
+ * "osVer": "12.0",
1999
+ * "uniVer": "√",
2000
+ * "unixVer": "4.11"
2001
+ * },
2002
+ * "harmony": {
2003
+ * "osVer": "3.0",
2004
+ * "uniVer": "4.23",
2005
+ * "unixVer": "x"
2006
+ * }
2007
+ * },
2008
+ * "web": {
2009
+ * "uniVer": "√",
2010
+ * "unixVer": "4.0"
2011
+ * }
2012
+ * }
2013
+ */
2014
+ windowTop: number,
2015
+ /**
2016
+ * 内容区域距离底部的距离(同CSS变量 `--window-bottom`),单位为px
2017
+ *
2018
+ * @uniPlatform
2019
+ * {
2020
+ * "app": {
2021
+ * "android": {
2022
+ * "osVer": "5.0",
2023
+ * "uniVer": "√",
2024
+ * "unixVer": "3.9+"
2025
+ * },
2026
+ * "ios": {
2027
+ * "osVer": "12.0",
2028
+ * "uniVer": "√",
2029
+ * "unixVer": "4.11"
2030
+ * },
2031
+ * "harmony": {
2032
+ * "osVer": "3.0",
2033
+ * "uniVer": "4.23",
2034
+ * "unixVer": "x"
2035
+ * }
2036
+ * },
2037
+ * "web": {
2038
+ * "uniVer": "√",
2039
+ * "unixVer": "4.0"
2040
+ * }
2041
+ * }
2042
+ */
2043
+ windowBottom: number,
2044
+ /**
2045
+ * 安全区域在屏幕中的位置信息
2046
+ *
2047
+ * @uniPlatform
2048
+ * {
2049
+ * "app": {
2050
+ * "android": {
2051
+ * "osVer": "5.0",
2052
+ * "uniVer": "√",
2053
+ * "unixVer": "3.9+"
2054
+ * },
2055
+ * "ios": {
2056
+ * "osVer": "12.0",
2057
+ * "uniVer": "√",
2058
+ * "unixVer": "4.11"
2059
+ * },
2060
+ * "harmony": {
2061
+ * "osVer": "3.0",
2062
+ * "uniVer": "4.23",
2063
+ * "unixVer": "x"
2064
+ * }
2065
+ * },
2066
+ * "web": {
2067
+ * "uniVer": "√",
2068
+ * "unixVer": "4.0"
2069
+ * }
2070
+ * }
2071
+ */
2072
+ safeArea: SafeArea,
2073
+ /**
2074
+ * 安全区域插入位置(与屏幕边界的距离)信息
2075
+ *
2076
+ * @uniPlatform
2077
+ * {
2078
+ * "app": {
2079
+ * "android": {
2080
+ * "osVer": "5.0",
2081
+ * "uniVer": "√",
2082
+ * "unixVer": "3.9+"
2083
+ * },
2084
+ * "ios": {
2085
+ * "osVer": "12.0",
2086
+ * "uniVer": "√",
2087
+ * "unixVer": "4.11"
2088
+ * },
2089
+ * "harmony": {
2090
+ * "osVer": "3.0",
2091
+ * "uniVer": "4.23",
2092
+ * "unixVer": "x"
2093
+ * }
2094
+ * },
2095
+ * "web": {
2096
+ * "uniVer": "√",
2097
+ * "unixVer": "4.0"
2098
+ * }
2099
+ * }
2100
+ */
2101
+ safeAreaInsets: SafeAreaInsets,
2102
+ /**
2103
+ * 窗口上边缘的 y 值,单位为px
2104
+ *
2105
+ * @uniPlatform
2106
+ * {
2107
+ * "app": {
2108
+ * "android": {
2109
+ * "osVer": "5.0",
2110
+ * "uniVer": "√",
2111
+ * "unixVer": "3.9+"
2112
+ * },
2113
+ * "ios": {
2114
+ * "osVer": "12.0",
2115
+ * "uniVer": "√",
2116
+ * "unixVer": "4.11"
2117
+ * },
2118
+ * "harmony": {
2119
+ * "osVer": "3.0",
2120
+ * "uniVer": "4.23",
2121
+ * "unixVer": "x"
2122
+ * }
2123
+ * },
2124
+ * "web": {
2125
+ * "uniVer": "√",
2126
+ * "unixVer": "4.0"
2127
+ * }
2128
+ * }
2129
+ */
2130
+ screenTop: number
2131
+ };