@dcloudio/uni-app-x 0.7.25 → 0.7.26

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 (338) 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 +3635 -3634
  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 +2928 -2928
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniNativeViewElement.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 +269 -269
  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/UniCallbackWrapper.d.ts +7 -7
  27. package/types/native/UniCanvasElement.d.ts +9 -9
  28. package/types/native/UniCustomEvent.d.ts +24 -24
  29. package/types/native/UniDocument.d.ts +83 -83
  30. package/types/native/UniElement.d.ts +79 -79
  31. package/types/native/UniError.d.ts +70 -70
  32. package/types/native/UniEvent.d.ts +92 -92
  33. package/types/native/UniFormControl.d.ts +8 -8
  34. package/types/native/UniFormControlElement.d.ts +14 -14
  35. package/types/native/UniImageErrorEvent.d.ts +33 -33
  36. package/types/native/UniImageLoadEvent.d.ts +37 -37
  37. package/types/native/UniInputBlurEvent.d.ts +36 -36
  38. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  39. package/types/native/UniInputEvent.d.ts +38 -38
  40. package/types/native/UniInputFocusEvent.d.ts +53 -53
  41. package/types/native/{UniApp.d.ts → UniNativeApp.d.ts} +205 -205
  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 -27
  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 +32 -32
  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 +83 -83
  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 +616 -616
  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 +1872 -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 +60 -58
  86. package/types/uni/uts-plugin-api/index.d.ts +60 -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-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  91. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  92. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  93. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -60
  94. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -29
  95. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +171 -171
  96. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  97. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  98. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  99. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +22 -22
  100. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +10 -10
  101. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +332 -332
  102. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  103. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  104. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  105. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  106. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  107. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  108. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  109. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  110. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  111. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  112. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  113. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  114. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  115. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  116. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -464
  117. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  118. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  119. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  120. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  121. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  122. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1341 -1366
  123. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +18 -16
  124. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +8 -7
  125. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +312 -305
  126. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  127. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  128. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +97 -97
  129. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  130. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  131. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  132. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +150 -142
  133. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +74 -70
  134. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1992 -1881
  135. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  136. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  137. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  138. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  139. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +455 -455
  140. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  141. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  142. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  143. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  144. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  145. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  146. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  147. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  148. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  149. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  150. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  151. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  152. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  153. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  154. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  155. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  158. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  159. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  160. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1008 -1008
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  167. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  168. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  169. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  170. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  171. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +36 -36
  172. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +17 -17
  173. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +634 -521
  174. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  175. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  176. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  177. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  178. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  179. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2139 -2138
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +207 -207
  183. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  184. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  185. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  186. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  187. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  188. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  189. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  190. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  191. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  192. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  193. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +581 -581
  194. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  195. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  196. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  197. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +196 -160
  198. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +97 -79
  199. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1657 -1386
  200. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  201. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  202. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  203. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  204. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  205. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1539 -1539
  206. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +66 -0
  207. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +32 -0
  208. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1592 -0
  209. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/global.d.ts +8 -0
  210. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/index.d.ts +4 -0
  211. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
  212. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  213. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  214. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  215. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  216. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  217. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  218. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  219. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  220. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  221. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  222. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +527 -527
  223. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  224. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  225. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  226. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  227. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  228. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  229. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  230. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  231. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  232. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  233. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  234. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2695 -2695
  235. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  236. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  237. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  238. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  239. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  240. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  241. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +22 -22
  242. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +10 -10
  243. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +120 -120
  244. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  245. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  246. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  247. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  248. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  249. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1106 -1106
  250. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  251. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  252. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  253. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  254. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  255. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  256. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +854 -854
  257. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  258. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  259. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +44 -36
  260. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +21 -17
  261. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -141
  262. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  263. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  264. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  265. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  266. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  267. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  268. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  269. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  270. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  271. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  272. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  273. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  274. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  275. package/types/uni/uts-plugin-extend/README.md +3 -3
  276. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  277. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  278. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  279. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  280. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  281. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  282. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  283. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  284. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  285. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  286. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  287. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  288. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  289. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  290. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  291. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  292. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  293. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  294. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  295. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  296. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  297. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  298. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  299. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  300. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  301. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  302. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  303. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  304. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  305. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  306. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  307. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  308. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  309. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  310. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  311. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  312. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  313. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  314. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  315. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  316. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  317. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  318. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  319. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  320. package/types/uni-cloud/index.d.ts +67 -67
  321. package/types/uni-cloud/interface.d.ts +987 -987
  322. package/types/uni-cloud/unicloud-db/index.ts +317 -317
  323. package/types/uni-global/index.d.ts +1 -1
  324. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  325. package/types/vue/LifeCycle.d.ts +55 -55
  326. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  327. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  328. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  329. package/types/vue/SliderChangeEvent.d.ts +35 -35
  330. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  331. package/types/vue/UniCanvasElement.d.ts +275 -275
  332. package/types/vue/UniCloudDBElement.d.ts +217 -217
  333. package/types/vue/UniFormElement.d.ts +54 -54
  334. package/types/vue/UniNavigatorElement.d.ts +11 -11
  335. package/types/vue/global.d.ts +191 -191
  336. package/types/vue/index.d.ts +10 -10
  337. package/types/vue-global/index.d.ts +1 -1
  338. package/uts-plugin.d.ts +27 -27
@@ -1,2138 +1,2139 @@
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
- *
857
- * @uniPlatform
858
- * {
859
- * "app": {
860
- * "android": {
861
- * "osVer": "5.0",
862
- * "uniVer": "√",
863
- * "unixVer": "3.9+"
864
- * },
865
- * "ios": {
866
- * "osVer": "12.0",
867
- * "uniVer": "√",
868
- * "unixVer": "4.11"
869
- * },
870
- * "harmony": {
871
- * "osVer": "3.0",
872
- * "uniVer": "4.23",
873
- * "unixVer": "x"
874
- * }
875
- * },
876
- * "web": {
877
- * "uniVer": "√",
878
- * "unixVer": "4.0"
879
- * }
880
- * }
881
- */
882
- deviceOrientation:
883
- /**
884
- * 纵向
885
- */
886
- 'portrait' |
887
- /**
888
- * 横向
889
- */
890
- 'landscape',
891
- /**
892
- * 程序设置的语言
893
- * @deprecated 已废弃,仅为了向下兼容保留
894
- *
895
- * @uniPlatform
896
- * {
897
- * "app": {
898
- * "android": {
899
- * "osVer": "5.0",
900
- * "uniVer": "√",
901
- * "unixVer": "3.9+"
902
- * },
903
- * "ios": {
904
- * "osVer": "12.0",
905
- * "uniVer": "√",
906
- * "unixVer": "4.11"
907
- * },
908
- * "harmony": {
909
- * "osVer": "x",
910
- * "uniVer": "x",
911
- * "unixVer": "x"
912
- * }
913
- * },
914
- * "web": {
915
- * "uniVer": "√",
916
- * "unixVer": "4.0"
917
- * }
918
- * }
919
- */
920
- language: string,
921
- /**
922
- * 手机型号
923
- * @deprecated 已废弃,仅为了向下兼容保留
924
- *
925
- * @uniPlatform
926
- * {
927
- * "app": {
928
- * "android": {
929
- * "osVer": "5.0",
930
- * "uniVer": "√",
931
- * "unixVer": "3.9+"
932
- * },
933
- * "ios": {
934
- * "osVer": "12.0",
935
- * "uniVer": "√",
936
- * "unixVer": "4.11"
937
- * },
938
- * "harmony": {
939
- * "osVer": "x",
940
- * "uniVer": "x",
941
- * "unixVer": "x"
942
- * }
943
- * },
944
- * "web": {
945
- * "uniVer": "√",
946
- * "unixVer": "4.0"
947
- * }
948
- * }
949
- */
950
- model?: string,
951
- /**
952
- * 系统名称
953
- *
954
- * @uniPlatform
955
- * {
956
- * "app": {
957
- * "android": {
958
- * "osVer": "5.0",
959
- * "uniVer": "√",
960
- * "unixVer": "3.9+"
961
- * },
962
- * "ios": {
963
- * "osVer": "12.0",
964
- * "uniVer": "√",
965
- * "unixVer": "4.11"
966
- * },
967
- * "harmony": {
968
- * "osVer": "3.0",
969
- * "uniVer": "4.23",
970
- * "unixVer": "x"
971
- * }
972
- * },
973
- * "web": {
974
- * "uniVer": "√",
975
- * "unixVer": "4.0"
976
- * }
977
- * }
978
- */
979
- osName: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux',
980
- /**
981
- * 操作系统版本。如 ios 版本,andriod 版本
982
- *
983
- * @uniPlatform
984
- * {
985
- * "app": {
986
- * "android": {
987
- * "osVer": "5.0",
988
- * "uniVer": "√",
989
- * "unixVer": "3.9+"
990
- * },
991
- * "ios": {
992
- * "osVer": "12.0",
993
- * "uniVer": "√",
994
- * "unixVer": "4.11"
995
- * },
996
- * "harmony": {
997
- * "osVer": "3.0",
998
- * "uniVer": "4.23",
999
- * "unixVer": "x"
1000
- * }
1001
- * },
1002
- * "web": {
1003
- * "uniVer": "√",
1004
- * "unixVer": "4.0"
1005
- * }
1006
- * }
1007
- */
1008
- osVersion: string,
1009
- /**
1010
- * 操作系统语言
1011
- *
1012
- * @uniPlatform
1013
- * {
1014
- * "app": {
1015
- * "android": {
1016
- * "osVer": "5.0",
1017
- * "uniVer": "√",
1018
- * "unixVer": "3.9+"
1019
- * },
1020
- * "ios": {
1021
- * "osVer": "12.0",
1022
- * "uniVer": "√",
1023
- * "unixVer": "4.11"
1024
- * },
1025
- * "harmony": {
1026
- * "osVer": "3.0",
1027
- * "uniVer": "4.23",
1028
- * "unixVer": "x"
1029
- * }
1030
- * },
1031
- * "web": {
1032
- * "uniVer": "√",
1033
- * "unixVer": "4.0"
1034
- * }
1035
- * }
1036
- */
1037
- osLanguage: string,
1038
- /**
1039
- * 操作系统主题
1040
- *
1041
- * @uniPlatform
1042
- * {
1043
- * "app": {
1044
- * "android": {
1045
- * "osVer": "5.0",
1046
- * "uniVer": "√",
1047
- * "unixVer": "√"
1048
- * },
1049
- * "ios": {
1050
- * "osVer": "12.0",
1051
- * "uniVer": "√",
1052
- * "unixVer": "4.11"
1053
- * },
1054
- * "harmony": {
1055
- * "osVer": "3.0",
1056
- * "uniVer": "4.23",
1057
- * "unixVer": "x"
1058
- * }
1059
- * },
1060
- * "web": {
1061
- * "uniVer": "x",
1062
- * "unixVer": "x"
1063
- * }
1064
- * }
1065
- */
1066
- osTheme?: 'light' | 'dark' | null,
1067
- /**
1068
- * 设备像素比
1069
- * @deprecated 已废弃,仅为了向下兼容保留
1070
- *
1071
- * @uniPlatform
1072
- * {
1073
- * "app": {
1074
- * "android": {
1075
- * "osVer": "5.0",
1076
- * "uniVer": "√",
1077
- * "unixVer": "3.9+"
1078
- * },
1079
- * "ios": {
1080
- * "osVer": "12.0",
1081
- * "uniVer": "√",
1082
- * "unixVer": "4.11"
1083
- * },
1084
- * "harmony": {
1085
- * "osVer": "x",
1086
- * "uniVer": "x",
1087
- * "unixVer": "x"
1088
- * }
1089
- * },
1090
- * "web": {
1091
- * "uniVer": "√",
1092
- * "unixVer": "4.0"
1093
- * }
1094
- * }
1095
- */
1096
- pixelRatio: number,
1097
- /**
1098
- * 客户端平台
1099
- * @deprecated 已废弃,仅为了向下兼容保留
1100
- *
1101
- * @uniPlatform
1102
- * {
1103
- * "app": {
1104
- * "android": {
1105
- * "osVer": "5.0",
1106
- * "uniVer": "√",
1107
- * "unixVer": "3.9+"
1108
- * },
1109
- * "ios": {
1110
- * "osVer": "12.0",
1111
- * "uniVer": "√",
1112
- * "unixVer": "4.11"
1113
- * },
1114
- * "harmony": {
1115
- * "osVer": "x",
1116
- * "uniVer": "x",
1117
- * "unixVer": "x"
1118
- * }
1119
- * },
1120
- * "web": {
1121
- * "uniVer": "√",
1122
- * "unixVer": "4.0"
1123
- * }
1124
- * }
1125
- */
1126
- platform: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux',
1127
- /**
1128
- * 屏幕宽度,单位为px
1129
- *
1130
- * @uniPlatform
1131
- * {
1132
- * "app": {
1133
- * "android": {
1134
- * "osVer": "5.0",
1135
- * "uniVer": "√",
1136
- * "unixVer": "3.9+"
1137
- * },
1138
- * "ios": {
1139
- * "osVer": "12.0",
1140
- * "uniVer": "√",
1141
- * "unixVer": "4.11"
1142
- * },
1143
- * "harmony": {
1144
- * "osVer": "3.0",
1145
- * "uniVer": "4.23",
1146
- * "unixVer": "x"
1147
- * }
1148
- * },
1149
- * "web": {
1150
- * "uniVer": "√",
1151
- * "unixVer": "4.0"
1152
- * }
1153
- * }
1154
- */
1155
- screenWidth: number,
1156
- /**
1157
- * 屏幕高度,单位为px
1158
- *
1159
- * @uniPlatform
1160
- * {
1161
- * "app": {
1162
- * "android": {
1163
- * "osVer": "5.0",
1164
- * "uniVer": "√",
1165
- * "unixVer": "3.9+"
1166
- * },
1167
- * "ios": {
1168
- * "osVer": "12.0",
1169
- * "uniVer": "√",
1170
- * "unixVer": "4.11"
1171
- * },
1172
- * "harmony": {
1173
- * "osVer": "3.0",
1174
- * "uniVer": "4.23",
1175
- * "unixVer": "x"
1176
- * }
1177
- * },
1178
- * "web": {
1179
- * "uniVer": "√",
1180
- * "unixVer": "4.0"
1181
- * }
1182
- * }
1183
- */
1184
- screenHeight: number,
1185
- /**
1186
- * 状态栏的高度,单位为px
1187
- *
1188
- * @uniPlatform
1189
- * {
1190
- * "app": {
1191
- * "android": {
1192
- * "osVer": "5.0",
1193
- * "uniVer": "√",
1194
- * "unixVer": "3.9+"
1195
- * },
1196
- * "ios": {
1197
- * "osVer": "12.0",
1198
- * "uniVer": "√",
1199
- * "unixVer": "4.11"
1200
- * },
1201
- * "harmony": {
1202
- * "osVer": "3.0",
1203
- * "uniVer": "4.23",
1204
- * "unixVer": "x"
1205
- * }
1206
- * },
1207
- * "web": {
1208
- * "uniVer": "√",
1209
- * "unixVer": "4.0"
1210
- * }
1211
- * }
1212
- */
1213
- statusBarHeight: number,
1214
- /**
1215
- * 操作系统版本
1216
- * @deprecated 已废弃,仅为了向下兼容保留
1217
- *
1218
- * @uniPlatform
1219
- * {
1220
- * "app": {
1221
- * "android": {
1222
- * "osVer": "5.0",
1223
- * "uniVer": "√",
1224
- * "unixVer": "3.9+"
1225
- * },
1226
- * "ios": {
1227
- * "osVer": "12.0",
1228
- * "uniVer": "√",
1229
- * "unixVer": "4.11"
1230
- * },
1231
- * "harmony": {
1232
- * "osVer": "3.0",
1233
- * "uniVer": "4.23",
1234
- * "unixVer": "x"
1235
- * }
1236
- * },
1237
- * "web": {
1238
- * "uniVer": "√",
1239
- * "unixVer": "4.0"
1240
- * }
1241
- * }
1242
- */
1243
- system: string,
1244
- /**
1245
- * 在竖屏正方向下的安全区域
1246
- *
1247
- * @uniPlatform
1248
- * {
1249
- * "app": {
1250
- * "android": {
1251
- * "osVer": "5.0",
1252
- * "uniVer": "√",
1253
- * "unixVer": "3.9+"
1254
- * },
1255
- * "ios": {
1256
- * "osVer": "12.0",
1257
- * "uniVer": "√",
1258
- * "unixVer": "4.11"
1259
- * },
1260
- * "harmony": {
1261
- * "osVer": "3.0",
1262
- * "uniVer": "4.23",
1263
- * "unixVer": "x"
1264
- * }
1265
- * },
1266
- * "web": {
1267
- * "uniVer": "√",
1268
- * "unixVer": "4.0"
1269
- * }
1270
- * }
1271
- */
1272
- safeArea: SafeArea,
1273
- /**
1274
- * 在竖屏正方向下的安全区域插入位置
1275
- *
1276
- * @uniPlatform
1277
- * {
1278
- * "app": {
1279
- * "android": {
1280
- * "osVer": "5.0",
1281
- * "uniVer": "√",
1282
- * "unixVer": "3.9+"
1283
- * },
1284
- * "ios": {
1285
- * "osVer": "12.0",
1286
- * "uniVer": "√",
1287
- * "unixVer": "4.11"
1288
- * },
1289
- * "harmony": {
1290
- * "osVer": "3.0",
1291
- * "uniVer": "4.23",
1292
- * "unixVer": "x"
1293
- * }
1294
- * },
1295
- * "web": {
1296
- * "uniVer": "√",
1297
- * "unixVer": "4.0"
1298
- * }
1299
- * }
1300
- */
1301
- safeAreaInsets: SafeAreaInsets,
1302
- /**
1303
- * 用户标识。小程序端为空
1304
- *
1305
- * @uniPlatform
1306
- * {
1307
- * "app": {
1308
- * "android": {
1309
- * "osVer": "5.0",
1310
- * "uniVer": "√",
1311
- * "unixVer": "3.9+"
1312
- * },
1313
- * "ios": {
1314
- * "osVer": "12.0",
1315
- * "uniVer": "√",
1316
- * "unixVer": "4.11"
1317
- * },
1318
- * "harmony": {
1319
- * "osVer": "x",
1320
- * "uniVer": "x",
1321
- * "unixVer": "x"
1322
- * }
1323
- * },
1324
- * "web": {
1325
- * "uniVer": "√",
1326
- * "unixVer": "4.0"
1327
- * }
1328
- * }
1329
- */
1330
- ua: string,
1331
- /**
1332
- * uni 编译器版本。
1333
- * @deprecated 已废弃,仅为了向下兼容保留
1334
- *
1335
- * @uniPlatform
1336
- * {
1337
- * "app": {
1338
- * "android": {
1339
- * "osVer": "5.0",
1340
- * "uniVer": "√",
1341
- * "unixVer": "3.9+"
1342
- * },
1343
- * "ios": {
1344
- * "osVer": "12.0",
1345
- * "uniVer": "√",
1346
- * "unixVer": "4.11"
1347
- * },
1348
- * "harmony": {
1349
- * "osVer": "x",
1350
- * "uniVer": "x",
1351
- * "unixVer": "x"
1352
- * }
1353
- * },
1354
- * "web": {
1355
- * "uniVer": "√",
1356
- * "unixVer": "4.0"
1357
- * }
1358
- * }
1359
- */
1360
- uniCompileVersion: string,
1361
- /**
1362
- * uni 编译器版本。
1363
- *
1364
- * @uniPlatform
1365
- * {
1366
- * "app": {
1367
- * "android": {
1368
- * "osVer": "5.0",
1369
- * "uniVer": "x",
1370
- * "unixVer": "3.9+"
1371
- * },
1372
- * "ios": {
1373
- * "osVer": "12.0",
1374
- * "uniVer": "x",
1375
- * "unixVer": "4.11"
1376
- * },
1377
- * "harmony": {
1378
- * "osVer": "3.0",
1379
- * "uniVer": "4.23",
1380
- * "unixVer": "x"
1381
- * }
1382
- * },
1383
- * "web": {
1384
- * "uniVer": "x",
1385
- * "unixVer": "4.18"
1386
- * }
1387
- * }
1388
- */
1389
- uniCompilerVersion: string,
1390
- /**
1391
- * uni-app 运行平台,与条件编译平台相同。
1392
- *
1393
- * @uniPlatform
1394
- * {
1395
- * "app": {
1396
- * "android": {
1397
- * "osVer": "5.0",
1398
- * "uniVer": "√",
1399
- * "unixVer": "3.9+"
1400
- * },
1401
- * "ios": {
1402
- * "osVer": "12.0",
1403
- * "uniVer": "√",
1404
- * "unixVer": "4.11"
1405
- * },
1406
- * "harmony": {
1407
- * "osVer": "3.0",
1408
- * "uniVer": "4.23",
1409
- * "unixVer": "x"
1410
- * }
1411
- * },
1412
- * "web": {
1413
- * "uniVer": "√",
1414
- * "unixVer": "4.0"
1415
- * }
1416
- * }
1417
- */
1418
- 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',
1419
- /**
1420
- * uni 运行时版本。
1421
- *
1422
- * @uniPlatform
1423
- * {
1424
- * "app": {
1425
- * "android": {
1426
- * "osVer": "5.0",
1427
- * "uniVer": "√",
1428
- * "unixVer": "3.9+"
1429
- * },
1430
- * "ios": {
1431
- * "osVer": "12.0",
1432
- * "uniVer": "√",
1433
- * "unixVer": "4.11"
1434
- * },
1435
- * "harmony": {
1436
- * "osVer": "3.0",
1437
- * "uniVer": "4.23",
1438
- * "unixVer": "x"
1439
- * }
1440
- * },
1441
- * "web": {
1442
- * "uniVer": "√",
1443
- * "unixVer": "4.0"
1444
- * }
1445
- * }
1446
- */
1447
- uniRuntimeVersion: string,
1448
- /**
1449
- * uni 编译器版本号。
1450
- * @deprecated 已废弃,仅为了向下兼容保留
1451
- *
1452
- * @uniPlatform
1453
- * {
1454
- * "app": {
1455
- * "android": {
1456
- * "osVer": "5.0",
1457
- * "uniVer": "x",
1458
- * "unixVer": "3.9+"
1459
- * },
1460
- * "ios": {
1461
- * "osVer": "12.0",
1462
- * "uniVer": "x",
1463
- * "unixVer": "4.11"
1464
- * },
1465
- * "harmony": {
1466
- * "osVer": "x",
1467
- * "uniVer": "x",
1468
- * "unixVer": "x"
1469
- * }
1470
- * },
1471
- * "web": {
1472
- * "uniVer": "√",
1473
- * "unixVer": "4.0"
1474
- * }
1475
- * }
1476
- */
1477
- uniCompileVersionCode: number,
1478
- /**
1479
- * uni 编译器版本号。
1480
- *
1481
- * @uniPlatform
1482
- * {
1483
- * "app": {
1484
- * "android": {
1485
- * "osVer": "5.0",
1486
- * "uniVer": "x",
1487
- * "unixVer": "3.9+"
1488
- * },
1489
- * "ios": {
1490
- * "osVer": "12.0",
1491
- * "uniVer": "x",
1492
- * "unixVer": "4.11"
1493
- * },
1494
- * "harmony": {
1495
- * "osVer": "3.0",
1496
- * "uniVer": "4.23",
1497
- * "unixVer": "x"
1498
- * }
1499
- * },
1500
- * "web": {
1501
- * "uniVer": "x",
1502
- * "unixVer": "4.18"
1503
- * }
1504
- * }
1505
- */
1506
- uniCompilerVersionCode: number,
1507
- /**
1508
- * uni 运行时版本号。
1509
- *
1510
- * @uniPlatform
1511
- * {
1512
- * "app": {
1513
- * "android": {
1514
- * "osVer": "5.0",
1515
- * "uniVer": "x",
1516
- * "unixVer": "3.9+"
1517
- * },
1518
- * "ios": {
1519
- * "osVer": "12.0",
1520
- * "uniVer": "x",
1521
- * "unixVer": "4.11"
1522
- * },
1523
- * "harmony": {
1524
- * "osVer": "3.0",
1525
- * "uniVer": "4.23",
1526
- * "unixVer": "x"
1527
- * }
1528
- * },
1529
- * "web": {
1530
- * "uniVer": "√",
1531
- * "unixVer": "4.0"
1532
- * }
1533
- * }
1534
- */
1535
- uniRuntimeVersionCode: number,
1536
- /**
1537
- * 引擎版本号。
1538
- * @deprecated 已废弃,仅为了向下兼容保留
1539
- *
1540
- * @uniPlatform
1541
- * {
1542
- * "app": {
1543
- * "android": {
1544
- * "osVer": "5.0",
1545
- * "uniVer": "√",
1546
- * "unixVer": "3.9+"
1547
- * },
1548
- * "ios": {
1549
- * "osVer": "12.0",
1550
- * "uniVer": "√",
1551
- * "unixVer": "4.11"
1552
- * },
1553
- * "harmony": {
1554
- * "osVer": "x",
1555
- * "uniVer": "x",
1556
- * "unixVer": "x"
1557
- * }
1558
- * },
1559
- * "web": {
1560
- * "uniVer": "√",
1561
- * "unixVer": "4.0"
1562
- * }
1563
- * }
1564
- */
1565
- version: string,
1566
- /**
1567
- * rom 名称。Android 部分机型获取不到值。iOS 恒为 `ios`
1568
- *
1569
- * @uniPlatform
1570
- * {
1571
- * "app": {
1572
- * "android": {
1573
- * "osVer": "5.0",
1574
- * "uniVer": "√",
1575
- * "unixVer": "3.9+"
1576
- * },
1577
- * "ios": {
1578
- * "osVer": "12.0",
1579
- * "uniVer": "x",
1580
- * "unixVer": "4.11"
1581
- * },
1582
- * "harmony": {
1583
- * "osVer": "3.0",
1584
- * "uniVer": "4.23",
1585
- * "unixVer": "x"
1586
- * }
1587
- * },
1588
- * "web": {
1589
- * "uniVer": "x",
1590
- * "unixVer": "x"
1591
- * }
1592
- * }
1593
- */
1594
- romName: string,
1595
- /**
1596
- * rom 版本号。Android 部分机型获取不到值。iOS 为操作系统版本号(同 `osVersion`)。
1597
- *
1598
- * @uniPlatform
1599
- * {
1600
- * "app": {
1601
- * "android": {
1602
- * "osVer": "5.0",
1603
- * "uniVer": "√",
1604
- * "unixVer": "3.9+"
1605
- * },
1606
- * "ios": {
1607
- * "osVer": "12.0",
1608
- * "uniVer": "x",
1609
- * "unixVer": "4.11"
1610
- * },
1611
- * "harmony": {
1612
- * "osVer": "3.0",
1613
- * "uniVer": "4.23",
1614
- * "unixVer": "x"
1615
- * }
1616
- * },
1617
- * "web": {
1618
- * "uniVer": "x",
1619
- * "unixVer": "x"
1620
- * }
1621
- * }
1622
- */
1623
- romVersion: string,
1624
- /**
1625
- * 可使用窗口宽度,单位为px
1626
- *
1627
- * @uniPlatform
1628
- * {
1629
- * "app": {
1630
- * "android": {
1631
- * "osVer": "5.0",
1632
- * "uniVer": "√",
1633
- * "unixVer": "3.9+"
1634
- * },
1635
- * "ios": {
1636
- * "osVer": "12.0",
1637
- * "uniVer": "√",
1638
- * "unixVer": "4.11"
1639
- * },
1640
- * "harmony": {
1641
- * "osVer": "3.0",
1642
- * "uniVer": "4.23",
1643
- * "unixVer": "x"
1644
- * }
1645
- * },
1646
- * "web": {
1647
- * "uniVer": "√",
1648
- * "unixVer": "4.0"
1649
- * }
1650
- * }
1651
- */
1652
- windowWidth: number,
1653
- /**
1654
- * 可使用窗口高度,单位为px
1655
- *
1656
- * @uniPlatform
1657
- * {
1658
- * "app": {
1659
- * "android": {
1660
- * "osVer": "5.0",
1661
- * "uniVer": "√",
1662
- * "unixVer": "3.9+"
1663
- * },
1664
- * "ios": {
1665
- * "osVer": "12.0",
1666
- * "uniVer": "√",
1667
- * "unixVer": "4.11"
1668
- * },
1669
- * "harmony": {
1670
- * "osVer": "3.0",
1671
- * "uniVer": "4.23",
1672
- * "unixVer": "x"
1673
- * }
1674
- * },
1675
- * "web": {
1676
- * "uniVer": "√",
1677
- * "unixVer": "4.0"
1678
- * }
1679
- * }
1680
- */
1681
- windowHeight: number,
1682
- /**
1683
- * 内容区域距离顶部的距离(同CSS变量 `--window-top`),单位为px
1684
- *
1685
- * @uniPlatform
1686
- * {
1687
- * "app": {
1688
- * "android": {
1689
- * "osVer": "5.0",
1690
- * "uniVer": "√",
1691
- * "unixVer": "3.9+"
1692
- * },
1693
- * "ios": {
1694
- * "osVer": "12.0",
1695
- * "uniVer": "√",
1696
- * "unixVer": "4.11"
1697
- * },
1698
- * "harmony": {
1699
- * "osVer": "3.0",
1700
- * "uniVer": "4.23",
1701
- * "unixVer": "x"
1702
- * }
1703
- * },
1704
- * "web": {
1705
- * "uniVer": "√",
1706
- * "unixVer": "4.0"
1707
- * }
1708
- * }
1709
- */
1710
- windowTop: number,
1711
- /**
1712
- * 内容区域距离底部的距离(同CSS变量 `--window-bottom`),单位为px
1713
- *
1714
- * @uniPlatform
1715
- * {
1716
- * "app": {
1717
- * "android": {
1718
- * "osVer": "5.0",
1719
- * "uniVer": "√",
1720
- * "unixVer": "3.9+"
1721
- * },
1722
- * "ios": {
1723
- * "osVer": "12.0",
1724
- * "uniVer": "√",
1725
- * "unixVer": "4.11"
1726
- * },
1727
- * "harmony": {
1728
- * "osVer": "3.0",
1729
- * "uniVer": "4.23",
1730
- * "unixVer": "x"
1731
- * }
1732
- * },
1733
- * "web": {
1734
- * "uniVer": "√",
1735
- * "unixVer": "4.0"
1736
- * }
1737
- * }
1738
- */
1739
- windowBottom: number,
1740
- /**
1741
- * Android 系统API库的版本。
1742
- *
1743
- * @uniPlatform
1744
- * {
1745
- * "app": {
1746
- * "android": {
1747
- * "osVer": "5.0",
1748
- * "uniVer": "√",
1749
- * "unixVer": "√"
1750
- * },
1751
- * "ios": {
1752
- * "osVer": "x",
1753
- * "uniVer": "x",
1754
- * "unixVer": "x"
1755
- * },
1756
- * "harmony": {
1757
- * "osVer": "x",
1758
- * "uniVer": "x",
1759
- * "unixVer": "x"
1760
- * }
1761
- * },
1762
- * "web": {
1763
- * "uniVer": "x",
1764
- * "unixVer": "x"
1765
- * }
1766
- * }
1767
- */
1768
- osAndroidAPILevel?: number | null,
1769
- /**
1770
- * 当前App的主题
1771
- *
1772
- * @uniPlatform
1773
- * {
1774
- * "app": {
1775
- * "android": {
1776
- * "osVer": "5.0",
1777
- * "uniVer": "x",
1778
- * "unixVer": "4.18"
1779
- * },
1780
- * "ios": {
1781
- * "osVer": "12.0",
1782
- * "uniVer": "x",
1783
- * "unixVer": "4.18"
1784
- * },
1785
- * "harmony": {
1786
- * "osVer": "3.0",
1787
- * "uniVer": "4.23",
1788
- * "unixVer": "x"
1789
- * }
1790
- * },
1791
- * "web": {
1792
- * "uniVer": "x",
1793
- * "unixVer": "x"
1794
- * }
1795
- * }
1796
- */
1797
- appTheme?: 'light' | 'dark' | 'auto' | null,
1798
- };
1799
- export type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void;
1800
- type GetSystemInfoFail = UniError;
1801
- type GetSystemInfoFailCallback = (result: GetSystemInfoFail) => void;
1802
- export type GetSystemInfoComplete = any;
1803
- export type GetSystemInfoCompleteCallback = (result: GetSystemInfoComplete) => void;
1804
- export type GetSystemInfoOptions = {
1805
- /**
1806
- * 接口调用成功的回调函数
1807
- * @defaultValue null
1808
- */
1809
- success?: GetSystemInfoSuccessCallback | null,
1810
- /**
1811
- * 接口调用失败的回调函数
1812
- * @defaultValue null
1813
- */
1814
- fail?: GetSystemInfoFailCallback | null,
1815
- /**
1816
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1817
- * @defaultValue null
1818
- */
1819
- complete?: GetSystemInfoCompleteCallback | null
1820
- };
1821
-
1822
- export type GetWindowInfoResult = {
1823
- /**
1824
- * 设备像素比
1825
- *
1826
- * @uniPlatform
1827
- * {
1828
- * "app": {
1829
- * "android": {
1830
- * "osVer": "5.0",
1831
- * "uniVer": "√",
1832
- * "unixVer": "3.9+"
1833
- * },
1834
- * "ios": {
1835
- * "osVer": "12.0",
1836
- * "uniVer": "√",
1837
- * "unixVer": "4.11"
1838
- * },
1839
- * "harmony": {
1840
- * "osVer": "3.0",
1841
- * "uniVer": "4.23",
1842
- * "unixVer": "x"
1843
- * }
1844
- * },
1845
- * "web": {
1846
- * "uniVer": "√",
1847
- * "unixVer": "4.0"
1848
- * }
1849
- * }
1850
- */
1851
- pixelRatio: number,
1852
- /**
1853
- * 屏幕宽度,单位为px
1854
- *
1855
- * @uniPlatform
1856
- * {
1857
- * "app": {
1858
- * "android": {
1859
- * "osVer": "5.0",
1860
- * "uniVer": "√",
1861
- * "unixVer": "3.9+"
1862
- * },
1863
- * "ios": {
1864
- * "osVer": "12.0",
1865
- * "uniVer": "√",
1866
- * "unixVer": "4.11"
1867
- * },
1868
- * "harmony": {
1869
- * "osVer": "3.0",
1870
- * "uniVer": "4.23",
1871
- * "unixVer": "x"
1872
- * }
1873
- * },
1874
- * "web": {
1875
- * "uniVer": "√",
1876
- * "unixVer": "4.0"
1877
- * }
1878
- * }
1879
- */
1880
- screenWidth: number,
1881
- /**
1882
- * 屏幕高度,单位为px
1883
- *
1884
- * @uniPlatform
1885
- * {
1886
- * "app": {
1887
- * "android": {
1888
- * "osVer": "5.0",
1889
- * "uniVer": "√",
1890
- * "unixVer": "3.9+"
1891
- * },
1892
- * "ios": {
1893
- * "osVer": "12.0",
1894
- * "uniVer": "√",
1895
- * "unixVer": "4.11"
1896
- * },
1897
- * "harmony": {
1898
- * "osVer": "3.0",
1899
- * "uniVer": "4.23",
1900
- * "unixVer": "x"
1901
- * }
1902
- * },
1903
- * "web": {
1904
- * "uniVer": "√",
1905
- * "unixVer": "4.0"
1906
- * }
1907
- * }
1908
- */
1909
- screenHeight: number,
1910
- /**
1911
- * 可使用窗口宽度,单位为px
1912
- *
1913
- * @uniPlatform
1914
- * {
1915
- * "app": {
1916
- * "android": {
1917
- * "osVer": "5.0",
1918
- * "uniVer": "√",
1919
- * "unixVer": "3.9+"
1920
- * },
1921
- * "ios": {
1922
- * "osVer": "12.0",
1923
- * "uniVer": "√",
1924
- * "unixVer": "4.11"
1925
- * },
1926
- * "harmony": {
1927
- * "osVer": "3.0",
1928
- * "uniVer": "4.23",
1929
- * "unixVer": "x"
1930
- * }
1931
- * },
1932
- * "web": {
1933
- * "uniVer": "√",
1934
- * "unixVer": "4.0"
1935
- * }
1936
- * }
1937
- */
1938
- windowWidth: number,
1939
- /**
1940
- * 可使用窗口高度,单位为px
1941
- *
1942
- * @uniPlatform
1943
- * {
1944
- * "app": {
1945
- * "android": {
1946
- * "osVer": "5.0",
1947
- * "uniVer": "√",
1948
- * "unixVer": "3.9+"
1949
- * },
1950
- * "ios": {
1951
- * "osVer": "12.0",
1952
- * "uniVer": "√",
1953
- * "unixVer": "4.11"
1954
- * },
1955
- * "harmony": {
1956
- * "osVer": "3.0",
1957
- * "uniVer": "4.23",
1958
- * "unixVer": "x"
1959
- * }
1960
- * }
1961
- * }
1962
- */
1963
- windowHeight: number,
1964
- /**
1965
- * 状态栏的高度,单位为px
1966
- *
1967
- * @uniPlatform
1968
- * {
1969
- * "app": {
1970
- * "android": {
1971
- * "osVer": "5.0",
1972
- * "uniVer": "√",
1973
- * "unixVer": "3.9+"
1974
- * },
1975
- * "ios": {
1976
- * "osVer": "12.0",
1977
- * "uniVer": "√",
1978
- * "unixVer": "4.11"
1979
- * },
1980
- * "harmony": {
1981
- * "osVer": "3.0",
1982
- * "uniVer": "4.23",
1983
- * "unixVer": "x"
1984
- * }
1985
- * },
1986
- * "web": {
1987
- * "uniVer": "√",
1988
- * "unixVer": "4.0"
1989
- * }
1990
- * }
1991
- */
1992
- statusBarHeight: number,
1993
- /**
1994
- * 内容区域距离顶部的距离(同CSS变量 `--window-top`),单位为px
1995
- *
1996
- * @uniPlatform
1997
- * {
1998
- * "app": {
1999
- * "android": {
2000
- * "osVer": "5.0",
2001
- * "uniVer": "√",
2002
- * "unixVer": "3.9+"
2003
- * },
2004
- * "ios": {
2005
- * "osVer": "12.0",
2006
- * "uniVer": "√",
2007
- * "unixVer": "4.11"
2008
- * },
2009
- * "harmony": {
2010
- * "osVer": "3.0",
2011
- * "uniVer": "4.23",
2012
- * "unixVer": "x"
2013
- * }
2014
- * },
2015
- * "web": {
2016
- * "uniVer": "√",
2017
- * "unixVer": "4.0"
2018
- * }
2019
- * }
2020
- */
2021
- windowTop: number,
2022
- /**
2023
- * 内容区域距离底部的距离(同CSS变量 `--window-bottom`),单位为px
2024
- *
2025
- * @uniPlatform
2026
- * {
2027
- * "app": {
2028
- * "android": {
2029
- * "osVer": "5.0",
2030
- * "uniVer": "√",
2031
- * "unixVer": "3.9+"
2032
- * },
2033
- * "ios": {
2034
- * "osVer": "12.0",
2035
- * "uniVer": "√",
2036
- * "unixVer": "4.11"
2037
- * },
2038
- * "harmony": {
2039
- * "osVer": "3.0",
2040
- * "uniVer": "4.23",
2041
- * "unixVer": "x"
2042
- * }
2043
- * },
2044
- * "web": {
2045
- * "uniVer": "√",
2046
- * "unixVer": "4.0"
2047
- * }
2048
- * }
2049
- */
2050
- windowBottom: number,
2051
- /**
2052
- * 安全区域在屏幕中的位置信息
2053
- *
2054
- * @uniPlatform
2055
- * {
2056
- * "app": {
2057
- * "android": {
2058
- * "osVer": "5.0",
2059
- * "uniVer": "√",
2060
- * "unixVer": "3.9+"
2061
- * },
2062
- * "ios": {
2063
- * "osVer": "12.0",
2064
- * "uniVer": "√",
2065
- * "unixVer": "4.11"
2066
- * },
2067
- * "harmony": {
2068
- * "osVer": "3.0",
2069
- * "uniVer": "4.23",
2070
- * "unixVer": "x"
2071
- * }
2072
- * },
2073
- * "web": {
2074
- * "uniVer": "√",
2075
- * "unixVer": "4.0"
2076
- * }
2077
- * }
2078
- */
2079
- safeArea: SafeArea,
2080
- /**
2081
- * 安全区域插入位置(与屏幕边界的距离)信息
2082
- *
2083
- * @uniPlatform
2084
- * {
2085
- * "app": {
2086
- * "android": {
2087
- * "osVer": "5.0",
2088
- * "uniVer": "√",
2089
- * "unixVer": "3.9+"
2090
- * },
2091
- * "ios": {
2092
- * "osVer": "12.0",
2093
- * "uniVer": "√",
2094
- * "unixVer": "4.11"
2095
- * },
2096
- * "harmony": {
2097
- * "osVer": "3.0",
2098
- * "uniVer": "4.23",
2099
- * "unixVer": "x"
2100
- * }
2101
- * },
2102
- * "web": {
2103
- * "uniVer": "√",
2104
- * "unixVer": "4.0"
2105
- * }
2106
- * }
2107
- */
2108
- safeAreaInsets: SafeAreaInsets,
2109
- /**
2110
- * 窗口上边缘的 y 值,单位为px
2111
- *
2112
- * @uniPlatform
2113
- * {
2114
- * "app": {
2115
- * "android": {
2116
- * "osVer": "5.0",
2117
- * "uniVer": "",
2118
- * "unixVer": "3.9+"
2119
- * },
2120
- * "ios": {
2121
- * "osVer": "12.0",
2122
- * "uniVer": "",
2123
- * "unixVer": "4.11"
2124
- * },
2125
- * "harmony": {
2126
- * "osVer": "3.0",
2127
- * "uniVer": "4.23",
2128
- * "unixVer": "x"
2129
- * }
2130
- * },
2131
- * "web": {
2132
- * "uniVer": "√",
2133
- * "unixVer": "4.0"
2134
- * }
2135
- * }
2136
- */
2137
- screenTop: number
2138
- };
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
+ *
857
+ * @uniPlatform
858
+ * {
859
+ * "app": {
860
+ * "android": {
861
+ * "osVer": "5.0",
862
+ * "uniVer": "√",
863
+ * "unixVer": "3.9+"
864
+ * },
865
+ * "ios": {
866
+ * "osVer": "12.0",
867
+ * "uniVer": "√",
868
+ * "unixVer": "4.11"
869
+ * },
870
+ * "harmony": {
871
+ * "osVer": "3.0",
872
+ * "uniVer": "4.23",
873
+ * "unixVer": "x"
874
+ * }
875
+ * },
876
+ * "web": {
877
+ * "uniVer": "√",
878
+ * "unixVer": "4.0"
879
+ * }
880
+ * }
881
+ */
882
+ deviceOrientation:
883
+ /**
884
+ * 纵向
885
+ */
886
+ 'portrait' |
887
+ /**
888
+ * 横向
889
+ */
890
+ 'landscape',
891
+ /**
892
+ * 程序设置的语言
893
+ * @deprecated 已废弃,仅为了向下兼容保留
894
+ *
895
+ * @uniPlatform
896
+ * {
897
+ * "app": {
898
+ * "android": {
899
+ * "osVer": "5.0",
900
+ * "uniVer": "√",
901
+ * "unixVer": "3.9+"
902
+ * },
903
+ * "ios": {
904
+ * "osVer": "12.0",
905
+ * "uniVer": "√",
906
+ * "unixVer": "4.11"
907
+ * },
908
+ * "harmony": {
909
+ * "osVer": "x",
910
+ * "uniVer": "x",
911
+ * "unixVer": "x"
912
+ * }
913
+ * },
914
+ * "web": {
915
+ * "uniVer": "√",
916
+ * "unixVer": "4.0"
917
+ * }
918
+ * }
919
+ */
920
+ language: string,
921
+ /**
922
+ * 手机型号
923
+ * @deprecated 已废弃,仅为了向下兼容保留
924
+ *
925
+ * @uniPlatform
926
+ * {
927
+ * "app": {
928
+ * "android": {
929
+ * "osVer": "5.0",
930
+ * "uniVer": "√",
931
+ * "unixVer": "3.9+"
932
+ * },
933
+ * "ios": {
934
+ * "osVer": "12.0",
935
+ * "uniVer": "√",
936
+ * "unixVer": "4.11"
937
+ * },
938
+ * "harmony": {
939
+ * "osVer": "x",
940
+ * "uniVer": "x",
941
+ * "unixVer": "x"
942
+ * }
943
+ * },
944
+ * "web": {
945
+ * "uniVer": "√",
946
+ * "unixVer": "4.0"
947
+ * }
948
+ * }
949
+ */
950
+ model?: string,
951
+ /**
952
+ * 系统名称
953
+ *
954
+ * @uniPlatform
955
+ * {
956
+ * "app": {
957
+ * "android": {
958
+ * "osVer": "5.0",
959
+ * "uniVer": "√",
960
+ * "unixVer": "3.9+"
961
+ * },
962
+ * "ios": {
963
+ * "osVer": "12.0",
964
+ * "uniVer": "√",
965
+ * "unixVer": "4.11"
966
+ * },
967
+ * "harmony": {
968
+ * "osVer": "3.0",
969
+ * "uniVer": "4.23",
970
+ * "unixVer": "x"
971
+ * }
972
+ * },
973
+ * "web": {
974
+ * "uniVer": "√",
975
+ * "unixVer": "4.0"
976
+ * }
977
+ * }
978
+ */
979
+ osName: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux',
980
+ /**
981
+ * 操作系统版本。如 ios 版本,andriod 版本
982
+ *
983
+ * @uniPlatform
984
+ * {
985
+ * "app": {
986
+ * "android": {
987
+ * "osVer": "5.0",
988
+ * "uniVer": "√",
989
+ * "unixVer": "3.9+"
990
+ * },
991
+ * "ios": {
992
+ * "osVer": "12.0",
993
+ * "uniVer": "√",
994
+ * "unixVer": "4.11"
995
+ * },
996
+ * "harmony": {
997
+ * "osVer": "3.0",
998
+ * "uniVer": "4.23",
999
+ * "unixVer": "x"
1000
+ * }
1001
+ * },
1002
+ * "web": {
1003
+ * "uniVer": "√",
1004
+ * "unixVer": "4.0"
1005
+ * }
1006
+ * }
1007
+ */
1008
+ osVersion: string,
1009
+ /**
1010
+ * 操作系统语言
1011
+ *
1012
+ * @uniPlatform
1013
+ * {
1014
+ * "app": {
1015
+ * "android": {
1016
+ * "osVer": "5.0",
1017
+ * "uniVer": "√",
1018
+ * "unixVer": "3.9+"
1019
+ * },
1020
+ * "ios": {
1021
+ * "osVer": "12.0",
1022
+ * "uniVer": "√",
1023
+ * "unixVer": "4.11"
1024
+ * },
1025
+ * "harmony": {
1026
+ * "osVer": "3.0",
1027
+ * "uniVer": "4.23",
1028
+ * "unixVer": "x"
1029
+ * }
1030
+ * },
1031
+ * "web": {
1032
+ * "uniVer": "√",
1033
+ * "unixVer": "4.0"
1034
+ * }
1035
+ * }
1036
+ */
1037
+ osLanguage: string,
1038
+ /**
1039
+ * 操作系统主题
1040
+ *
1041
+ * @uniPlatform
1042
+ * {
1043
+ * "app": {
1044
+ * "android": {
1045
+ * "osVer": "5.0",
1046
+ * "uniVer": "√",
1047
+ * "unixVer": "√"
1048
+ * },
1049
+ * "ios": {
1050
+ * "osVer": "12.0",
1051
+ * "uniVer": "√",
1052
+ * "unixVer": "4.11"
1053
+ * },
1054
+ * "harmony": {
1055
+ * "osVer": "3.0",
1056
+ * "uniVer": "4.23",
1057
+ * "unixVer": "x"
1058
+ * }
1059
+ * },
1060
+ * "web": {
1061
+ * "uniVer": "x",
1062
+ * "unixVer": "x"
1063
+ * }
1064
+ * }
1065
+ */
1066
+ osTheme?: 'light' | 'dark' | null,
1067
+ /**
1068
+ * 设备像素比
1069
+ * @deprecated 已废弃,仅为了向下兼容保留
1070
+ *
1071
+ * @uniPlatform
1072
+ * {
1073
+ * "app": {
1074
+ * "android": {
1075
+ * "osVer": "5.0",
1076
+ * "uniVer": "√",
1077
+ * "unixVer": "3.9+"
1078
+ * },
1079
+ * "ios": {
1080
+ * "osVer": "12.0",
1081
+ * "uniVer": "√",
1082
+ * "unixVer": "4.11"
1083
+ * },
1084
+ * "harmony": {
1085
+ * "osVer": "x",
1086
+ * "uniVer": "x",
1087
+ * "unixVer": "x"
1088
+ * }
1089
+ * },
1090
+ * "web": {
1091
+ * "uniVer": "√",
1092
+ * "unixVer": "4.0"
1093
+ * }
1094
+ * }
1095
+ */
1096
+ pixelRatio: number,
1097
+ /**
1098
+ * 客户端平台
1099
+ * @deprecated 已废弃,仅为了向下兼容保留
1100
+ *
1101
+ * @uniPlatform
1102
+ * {
1103
+ * "app": {
1104
+ * "android": {
1105
+ * "osVer": "5.0",
1106
+ * "uniVer": "√",
1107
+ * "unixVer": "3.9+"
1108
+ * },
1109
+ * "ios": {
1110
+ * "osVer": "12.0",
1111
+ * "uniVer": "√",
1112
+ * "unixVer": "4.11"
1113
+ * },
1114
+ * "harmony": {
1115
+ * "osVer": "x",
1116
+ * "uniVer": "x",
1117
+ * "unixVer": "x"
1118
+ * }
1119
+ * },
1120
+ * "web": {
1121
+ * "uniVer": "√",
1122
+ * "unixVer": "4.0"
1123
+ * }
1124
+ * }
1125
+ */
1126
+ platform: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux',
1127
+ /**
1128
+ * 屏幕宽度,单位为px
1129
+ *
1130
+ * @uniPlatform
1131
+ * {
1132
+ * "app": {
1133
+ * "android": {
1134
+ * "osVer": "5.0",
1135
+ * "uniVer": "√",
1136
+ * "unixVer": "3.9+"
1137
+ * },
1138
+ * "ios": {
1139
+ * "osVer": "12.0",
1140
+ * "uniVer": "√",
1141
+ * "unixVer": "4.11"
1142
+ * },
1143
+ * "harmony": {
1144
+ * "osVer": "3.0",
1145
+ * "uniVer": "4.23",
1146
+ * "unixVer": "x"
1147
+ * }
1148
+ * },
1149
+ * "web": {
1150
+ * "uniVer": "√",
1151
+ * "unixVer": "4.0"
1152
+ * }
1153
+ * }
1154
+ */
1155
+ screenWidth: number,
1156
+ /**
1157
+ * 屏幕高度,单位为px
1158
+ *
1159
+ * @uniPlatform
1160
+ * {
1161
+ * "app": {
1162
+ * "android": {
1163
+ * "osVer": "5.0",
1164
+ * "uniVer": "√",
1165
+ * "unixVer": "3.9+"
1166
+ * },
1167
+ * "ios": {
1168
+ * "osVer": "12.0",
1169
+ * "uniVer": "√",
1170
+ * "unixVer": "4.11"
1171
+ * },
1172
+ * "harmony": {
1173
+ * "osVer": "3.0",
1174
+ * "uniVer": "4.23",
1175
+ * "unixVer": "x"
1176
+ * }
1177
+ * },
1178
+ * "web": {
1179
+ * "uniVer": "√",
1180
+ * "unixVer": "4.0"
1181
+ * }
1182
+ * }
1183
+ */
1184
+ screenHeight: number,
1185
+ /**
1186
+ * 状态栏的高度,单位为px
1187
+ *
1188
+ * @uniPlatform
1189
+ * {
1190
+ * "app": {
1191
+ * "android": {
1192
+ * "osVer": "5.0",
1193
+ * "uniVer": "√",
1194
+ * "unixVer": "3.9+"
1195
+ * },
1196
+ * "ios": {
1197
+ * "osVer": "12.0",
1198
+ * "uniVer": "√",
1199
+ * "unixVer": "4.11"
1200
+ * },
1201
+ * "harmony": {
1202
+ * "osVer": "3.0",
1203
+ * "uniVer": "4.23",
1204
+ * "unixVer": "x"
1205
+ * }
1206
+ * },
1207
+ * "web": {
1208
+ * "uniVer": "√",
1209
+ * "unixVer": "4.0"
1210
+ * }
1211
+ * }
1212
+ */
1213
+ statusBarHeight: number,
1214
+ /**
1215
+ * 操作系统版本
1216
+ * @deprecated 已废弃,仅为了向下兼容保留
1217
+ *
1218
+ * @uniPlatform
1219
+ * {
1220
+ * "app": {
1221
+ * "android": {
1222
+ * "osVer": "5.0",
1223
+ * "uniVer": "√",
1224
+ * "unixVer": "3.9+"
1225
+ * },
1226
+ * "ios": {
1227
+ * "osVer": "12.0",
1228
+ * "uniVer": "√",
1229
+ * "unixVer": "4.11"
1230
+ * },
1231
+ * "harmony": {
1232
+ * "osVer": "3.0",
1233
+ * "uniVer": "4.23",
1234
+ * "unixVer": "x"
1235
+ * }
1236
+ * },
1237
+ * "web": {
1238
+ * "uniVer": "√",
1239
+ * "unixVer": "4.0"
1240
+ * }
1241
+ * }
1242
+ */
1243
+ system: string,
1244
+ /**
1245
+ * 在竖屏正方向下的安全区域
1246
+ *
1247
+ * @uniPlatform
1248
+ * {
1249
+ * "app": {
1250
+ * "android": {
1251
+ * "osVer": "5.0",
1252
+ * "uniVer": "√",
1253
+ * "unixVer": "3.9+"
1254
+ * },
1255
+ * "ios": {
1256
+ * "osVer": "12.0",
1257
+ * "uniVer": "√",
1258
+ * "unixVer": "4.11"
1259
+ * },
1260
+ * "harmony": {
1261
+ * "osVer": "3.0",
1262
+ * "uniVer": "4.23",
1263
+ * "unixVer": "x"
1264
+ * }
1265
+ * },
1266
+ * "web": {
1267
+ * "uniVer": "√",
1268
+ * "unixVer": "4.0"
1269
+ * }
1270
+ * }
1271
+ */
1272
+ safeArea: SafeArea,
1273
+ /**
1274
+ * 在竖屏正方向下的安全区域插入位置
1275
+ *
1276
+ * @uniPlatform
1277
+ * {
1278
+ * "app": {
1279
+ * "android": {
1280
+ * "osVer": "5.0",
1281
+ * "uniVer": "√",
1282
+ * "unixVer": "3.9+"
1283
+ * },
1284
+ * "ios": {
1285
+ * "osVer": "12.0",
1286
+ * "uniVer": "√",
1287
+ * "unixVer": "4.11"
1288
+ * },
1289
+ * "harmony": {
1290
+ * "osVer": "3.0",
1291
+ * "uniVer": "4.23",
1292
+ * "unixVer": "x"
1293
+ * }
1294
+ * },
1295
+ * "web": {
1296
+ * "uniVer": "√",
1297
+ * "unixVer": "4.0"
1298
+ * }
1299
+ * }
1300
+ */
1301
+ safeAreaInsets: SafeAreaInsets,
1302
+ /**
1303
+ * 用户标识。小程序端为空
1304
+ *
1305
+ * @uniPlatform
1306
+ * {
1307
+ * "app": {
1308
+ * "android": {
1309
+ * "osVer": "5.0",
1310
+ * "uniVer": "√",
1311
+ * "unixVer": "3.9+"
1312
+ * },
1313
+ * "ios": {
1314
+ * "osVer": "12.0",
1315
+ * "uniVer": "√",
1316
+ * "unixVer": "4.11"
1317
+ * },
1318
+ * "harmony": {
1319
+ * "osVer": "x",
1320
+ * "uniVer": "x",
1321
+ * "unixVer": "x"
1322
+ * }
1323
+ * },
1324
+ * "web": {
1325
+ * "uniVer": "√",
1326
+ * "unixVer": "4.0"
1327
+ * }
1328
+ * }
1329
+ */
1330
+ ua: string,
1331
+ /**
1332
+ * uni 编译器版本。
1333
+ * @deprecated 已废弃,仅为了向下兼容保留
1334
+ *
1335
+ * @uniPlatform
1336
+ * {
1337
+ * "app": {
1338
+ * "android": {
1339
+ * "osVer": "5.0",
1340
+ * "uniVer": "√",
1341
+ * "unixVer": "3.9+"
1342
+ * },
1343
+ * "ios": {
1344
+ * "osVer": "12.0",
1345
+ * "uniVer": "√",
1346
+ * "unixVer": "4.11"
1347
+ * },
1348
+ * "harmony": {
1349
+ * "osVer": "x",
1350
+ * "uniVer": "x",
1351
+ * "unixVer": "x"
1352
+ * }
1353
+ * },
1354
+ * "web": {
1355
+ * "uniVer": "√",
1356
+ * "unixVer": "4.0"
1357
+ * }
1358
+ * }
1359
+ */
1360
+ uniCompileVersion: string,
1361
+ /**
1362
+ * uni 编译器版本。
1363
+ *
1364
+ * @uniPlatform
1365
+ * {
1366
+ * "app": {
1367
+ * "android": {
1368
+ * "osVer": "5.0",
1369
+ * "uniVer": "x",
1370
+ * "unixVer": "3.9+"
1371
+ * },
1372
+ * "ios": {
1373
+ * "osVer": "12.0",
1374
+ * "uniVer": "x",
1375
+ * "unixVer": "4.11"
1376
+ * },
1377
+ * "harmony": {
1378
+ * "osVer": "3.0",
1379
+ * "uniVer": "4.23",
1380
+ * "unixVer": "x"
1381
+ * }
1382
+ * },
1383
+ * "web": {
1384
+ * "uniVer": "x",
1385
+ * "unixVer": "4.18"
1386
+ * }
1387
+ * }
1388
+ */
1389
+ uniCompilerVersion: string,
1390
+ /**
1391
+ * uni-app 运行平台,与条件编译平台相同。
1392
+ *
1393
+ * @uniPlatform
1394
+ * {
1395
+ * "app": {
1396
+ * "android": {
1397
+ * "osVer": "5.0",
1398
+ * "uniVer": "√",
1399
+ * "unixVer": "3.9+"
1400
+ * },
1401
+ * "ios": {
1402
+ * "osVer": "12.0",
1403
+ * "uniVer": "√",
1404
+ * "unixVer": "4.11"
1405
+ * },
1406
+ * "harmony": {
1407
+ * "osVer": "3.0",
1408
+ * "uniVer": "4.23",
1409
+ * "unixVer": "x"
1410
+ * }
1411
+ * },
1412
+ * "web": {
1413
+ * "uniVer": "√",
1414
+ * "unixVer": "4.0"
1415
+ * }
1416
+ * }
1417
+ */
1418
+ 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',
1419
+ /**
1420
+ * uni 运行时版本。
1421
+ *
1422
+ * @uniPlatform
1423
+ * {
1424
+ * "app": {
1425
+ * "android": {
1426
+ * "osVer": "5.0",
1427
+ * "uniVer": "√",
1428
+ * "unixVer": "3.9+"
1429
+ * },
1430
+ * "ios": {
1431
+ * "osVer": "12.0",
1432
+ * "uniVer": "√",
1433
+ * "unixVer": "4.11"
1434
+ * },
1435
+ * "harmony": {
1436
+ * "osVer": "3.0",
1437
+ * "uniVer": "4.23",
1438
+ * "unixVer": "x"
1439
+ * }
1440
+ * },
1441
+ * "web": {
1442
+ * "uniVer": "√",
1443
+ * "unixVer": "4.0"
1444
+ * }
1445
+ * }
1446
+ */
1447
+ uniRuntimeVersion: string,
1448
+ /**
1449
+ * uni 编译器版本号。
1450
+ * @deprecated 已废弃,仅为了向下兼容保留
1451
+ *
1452
+ * @uniPlatform
1453
+ * {
1454
+ * "app": {
1455
+ * "android": {
1456
+ * "osVer": "5.0",
1457
+ * "uniVer": "x",
1458
+ * "unixVer": "3.9+"
1459
+ * },
1460
+ * "ios": {
1461
+ * "osVer": "12.0",
1462
+ * "uniVer": "x",
1463
+ * "unixVer": "4.11"
1464
+ * },
1465
+ * "harmony": {
1466
+ * "osVer": "x",
1467
+ * "uniVer": "x",
1468
+ * "unixVer": "x"
1469
+ * }
1470
+ * },
1471
+ * "web": {
1472
+ * "uniVer": "√",
1473
+ * "unixVer": "4.0"
1474
+ * }
1475
+ * }
1476
+ */
1477
+ uniCompileVersionCode: number,
1478
+ /**
1479
+ * uni 编译器版本号。
1480
+ *
1481
+ * @uniPlatform
1482
+ * {
1483
+ * "app": {
1484
+ * "android": {
1485
+ * "osVer": "5.0",
1486
+ * "uniVer": "x",
1487
+ * "unixVer": "3.9+"
1488
+ * },
1489
+ * "ios": {
1490
+ * "osVer": "12.0",
1491
+ * "uniVer": "x",
1492
+ * "unixVer": "4.11"
1493
+ * },
1494
+ * "harmony": {
1495
+ * "osVer": "3.0",
1496
+ * "uniVer": "4.23",
1497
+ * "unixVer": "x"
1498
+ * }
1499
+ * },
1500
+ * "web": {
1501
+ * "uniVer": "x",
1502
+ * "unixVer": "4.18"
1503
+ * }
1504
+ * }
1505
+ */
1506
+ uniCompilerVersionCode: number,
1507
+ /**
1508
+ * uni 运行时版本号。
1509
+ *
1510
+ * @uniPlatform
1511
+ * {
1512
+ * "app": {
1513
+ * "android": {
1514
+ * "osVer": "5.0",
1515
+ * "uniVer": "x",
1516
+ * "unixVer": "3.9+"
1517
+ * },
1518
+ * "ios": {
1519
+ * "osVer": "12.0",
1520
+ * "uniVer": "x",
1521
+ * "unixVer": "4.11"
1522
+ * },
1523
+ * "harmony": {
1524
+ * "osVer": "3.0",
1525
+ * "uniVer": "4.23",
1526
+ * "unixVer": "x"
1527
+ * }
1528
+ * },
1529
+ * "web": {
1530
+ * "uniVer": "√",
1531
+ * "unixVer": "4.0"
1532
+ * }
1533
+ * }
1534
+ */
1535
+ uniRuntimeVersionCode: number,
1536
+ /**
1537
+ * 引擎版本号。
1538
+ * @deprecated 已废弃,仅为了向下兼容保留
1539
+ *
1540
+ * @uniPlatform
1541
+ * {
1542
+ * "app": {
1543
+ * "android": {
1544
+ * "osVer": "5.0",
1545
+ * "uniVer": "√",
1546
+ * "unixVer": "3.9+"
1547
+ * },
1548
+ * "ios": {
1549
+ * "osVer": "12.0",
1550
+ * "uniVer": "√",
1551
+ * "unixVer": "4.11"
1552
+ * },
1553
+ * "harmony": {
1554
+ * "osVer": "x",
1555
+ * "uniVer": "x",
1556
+ * "unixVer": "x"
1557
+ * }
1558
+ * },
1559
+ * "web": {
1560
+ * "uniVer": "√",
1561
+ * "unixVer": "4.0"
1562
+ * }
1563
+ * }
1564
+ */
1565
+ version: string,
1566
+ /**
1567
+ * rom 名称。Android 部分机型获取不到值。iOS 恒为 `ios`
1568
+ *
1569
+ * @uniPlatform
1570
+ * {
1571
+ * "app": {
1572
+ * "android": {
1573
+ * "osVer": "5.0",
1574
+ * "uniVer": "√",
1575
+ * "unixVer": "3.9+"
1576
+ * },
1577
+ * "ios": {
1578
+ * "osVer": "12.0",
1579
+ * "uniVer": "x",
1580
+ * "unixVer": "4.11"
1581
+ * },
1582
+ * "harmony": {
1583
+ * "osVer": "3.0",
1584
+ * "uniVer": "4.23",
1585
+ * "unixVer": "x"
1586
+ * }
1587
+ * },
1588
+ * "web": {
1589
+ * "uniVer": "x",
1590
+ * "unixVer": "x"
1591
+ * }
1592
+ * }
1593
+ */
1594
+ romName: string,
1595
+ /**
1596
+ * rom 版本号。Android 部分机型获取不到值。iOS 为操作系统版本号(同 `osVersion`)。
1597
+ *
1598
+ * @uniPlatform
1599
+ * {
1600
+ * "app": {
1601
+ * "android": {
1602
+ * "osVer": "5.0",
1603
+ * "uniVer": "√",
1604
+ * "unixVer": "3.9+"
1605
+ * },
1606
+ * "ios": {
1607
+ * "osVer": "12.0",
1608
+ * "uniVer": "x",
1609
+ * "unixVer": "4.11"
1610
+ * },
1611
+ * "harmony": {
1612
+ * "osVer": "3.0",
1613
+ * "uniVer": "4.23",
1614
+ * "unixVer": "x"
1615
+ * }
1616
+ * },
1617
+ * "web": {
1618
+ * "uniVer": "x",
1619
+ * "unixVer": "x"
1620
+ * }
1621
+ * }
1622
+ */
1623
+ romVersion: string,
1624
+ /**
1625
+ * 可使用窗口宽度,单位为px
1626
+ *
1627
+ * @uniPlatform
1628
+ * {
1629
+ * "app": {
1630
+ * "android": {
1631
+ * "osVer": "5.0",
1632
+ * "uniVer": "√",
1633
+ * "unixVer": "3.9+"
1634
+ * },
1635
+ * "ios": {
1636
+ * "osVer": "12.0",
1637
+ * "uniVer": "√",
1638
+ * "unixVer": "4.11"
1639
+ * },
1640
+ * "harmony": {
1641
+ * "osVer": "3.0",
1642
+ * "uniVer": "4.23",
1643
+ * "unixVer": "x"
1644
+ * }
1645
+ * },
1646
+ * "web": {
1647
+ * "uniVer": "√",
1648
+ * "unixVer": "4.0"
1649
+ * }
1650
+ * }
1651
+ */
1652
+ windowWidth: number,
1653
+ /**
1654
+ * 可使用窗口高度,单位为px
1655
+ *
1656
+ * @uniPlatform
1657
+ * {
1658
+ * "app": {
1659
+ * "android": {
1660
+ * "osVer": "5.0",
1661
+ * "uniVer": "√",
1662
+ * "unixVer": "3.9+"
1663
+ * },
1664
+ * "ios": {
1665
+ * "osVer": "12.0",
1666
+ * "uniVer": "√",
1667
+ * "unixVer": "4.11"
1668
+ * },
1669
+ * "harmony": {
1670
+ * "osVer": "3.0",
1671
+ * "uniVer": "4.23",
1672
+ * "unixVer": "x"
1673
+ * }
1674
+ * },
1675
+ * "web": {
1676
+ * "uniVer": "√",
1677
+ * "unixVer": "4.0"
1678
+ * }
1679
+ * }
1680
+ */
1681
+ windowHeight: number,
1682
+ /**
1683
+ * 内容区域距离顶部的距离(同CSS变量 `--window-top`),单位为px
1684
+ *
1685
+ * @uniPlatform
1686
+ * {
1687
+ * "app": {
1688
+ * "android": {
1689
+ * "osVer": "5.0",
1690
+ * "uniVer": "√",
1691
+ * "unixVer": "3.9+"
1692
+ * },
1693
+ * "ios": {
1694
+ * "osVer": "12.0",
1695
+ * "uniVer": "√",
1696
+ * "unixVer": "4.11"
1697
+ * },
1698
+ * "harmony": {
1699
+ * "osVer": "3.0",
1700
+ * "uniVer": "4.23",
1701
+ * "unixVer": "x"
1702
+ * }
1703
+ * },
1704
+ * "web": {
1705
+ * "uniVer": "√",
1706
+ * "unixVer": "4.0"
1707
+ * }
1708
+ * }
1709
+ */
1710
+ windowTop: number,
1711
+ /**
1712
+ * 内容区域距离底部的距离(同CSS变量 `--window-bottom`),单位为px
1713
+ *
1714
+ * @uniPlatform
1715
+ * {
1716
+ * "app": {
1717
+ * "android": {
1718
+ * "osVer": "5.0",
1719
+ * "uniVer": "√",
1720
+ * "unixVer": "3.9+"
1721
+ * },
1722
+ * "ios": {
1723
+ * "osVer": "12.0",
1724
+ * "uniVer": "√",
1725
+ * "unixVer": "4.11"
1726
+ * },
1727
+ * "harmony": {
1728
+ * "osVer": "3.0",
1729
+ * "uniVer": "4.23",
1730
+ * "unixVer": "x"
1731
+ * }
1732
+ * },
1733
+ * "web": {
1734
+ * "uniVer": "√",
1735
+ * "unixVer": "4.0"
1736
+ * }
1737
+ * }
1738
+ */
1739
+ windowBottom: number,
1740
+ /**
1741
+ * Android 系统API库的版本。
1742
+ *
1743
+ * @uniPlatform
1744
+ * {
1745
+ * "app": {
1746
+ * "android": {
1747
+ * "osVer": "5.0",
1748
+ * "uniVer": "√",
1749
+ * "unixVer": "√"
1750
+ * },
1751
+ * "ios": {
1752
+ * "osVer": "x",
1753
+ * "uniVer": "x",
1754
+ * "unixVer": "x"
1755
+ * },
1756
+ * "harmony": {
1757
+ * "osVer": "x",
1758
+ * "uniVer": "x",
1759
+ * "unixVer": "x"
1760
+ * }
1761
+ * },
1762
+ * "web": {
1763
+ * "uniVer": "x",
1764
+ * "unixVer": "x"
1765
+ * }
1766
+ * }
1767
+ */
1768
+ osAndroidAPILevel?: number | null,
1769
+ /**
1770
+ * 当前App的主题
1771
+ *
1772
+ * @uniPlatform
1773
+ * {
1774
+ * "app": {
1775
+ * "android": {
1776
+ * "osVer": "5.0",
1777
+ * "uniVer": "x",
1778
+ * "unixVer": "4.18"
1779
+ * },
1780
+ * "ios": {
1781
+ * "osVer": "12.0",
1782
+ * "uniVer": "x",
1783
+ * "unixVer": "4.18"
1784
+ * },
1785
+ * "harmony": {
1786
+ * "osVer": "3.0",
1787
+ * "uniVer": "4.23",
1788
+ * "unixVer": "x"
1789
+ * }
1790
+ * },
1791
+ * "web": {
1792
+ * "uniVer": "x",
1793
+ * "unixVer": "x"
1794
+ * }
1795
+ * }
1796
+ */
1797
+ appTheme?: 'light' | 'dark' | 'auto' | null,
1798
+ };
1799
+ export type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void;
1800
+ type GetSystemInfoFail = UniError;
1801
+ type GetSystemInfoFailCallback = (result: GetSystemInfoFail) => void;
1802
+ export type GetSystemInfoComplete = any;
1803
+ export type GetSystemInfoCompleteCallback = (result: GetSystemInfoComplete) => void;
1804
+ export type GetSystemInfoOptions = {
1805
+ /**
1806
+ * 接口调用成功的回调函数
1807
+ * @defaultValue null
1808
+ */
1809
+ success?: GetSystemInfoSuccessCallback | null,
1810
+ /**
1811
+ * 接口调用失败的回调函数
1812
+ * @defaultValue null
1813
+ */
1814
+ fail?: GetSystemInfoFailCallback | null,
1815
+ /**
1816
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1817
+ * @defaultValue null
1818
+ */
1819
+ complete?: GetSystemInfoCompleteCallback | null
1820
+ };
1821
+
1822
+ export type GetWindowInfoResult = {
1823
+ /**
1824
+ * 设备像素比
1825
+ *
1826
+ * @uniPlatform
1827
+ * {
1828
+ * "app": {
1829
+ * "android": {
1830
+ * "osVer": "5.0",
1831
+ * "uniVer": "√",
1832
+ * "unixVer": "3.9+"
1833
+ * },
1834
+ * "ios": {
1835
+ * "osVer": "12.0",
1836
+ * "uniVer": "√",
1837
+ * "unixVer": "4.11"
1838
+ * },
1839
+ * "harmony": {
1840
+ * "osVer": "3.0",
1841
+ * "uniVer": "4.23",
1842
+ * "unixVer": "x"
1843
+ * }
1844
+ * },
1845
+ * "web": {
1846
+ * "uniVer": "√",
1847
+ * "unixVer": "4.0"
1848
+ * }
1849
+ * }
1850
+ */
1851
+ pixelRatio: number,
1852
+ /**
1853
+ * 屏幕宽度,单位为px
1854
+ *
1855
+ * @uniPlatform
1856
+ * {
1857
+ * "app": {
1858
+ * "android": {
1859
+ * "osVer": "5.0",
1860
+ * "uniVer": "√",
1861
+ * "unixVer": "3.9+"
1862
+ * },
1863
+ * "ios": {
1864
+ * "osVer": "12.0",
1865
+ * "uniVer": "√",
1866
+ * "unixVer": "4.11"
1867
+ * },
1868
+ * "harmony": {
1869
+ * "osVer": "3.0",
1870
+ * "uniVer": "4.23",
1871
+ * "unixVer": "x"
1872
+ * }
1873
+ * },
1874
+ * "web": {
1875
+ * "uniVer": "√",
1876
+ * "unixVer": "4.0"
1877
+ * }
1878
+ * }
1879
+ */
1880
+ screenWidth: number,
1881
+ /**
1882
+ * 屏幕高度,单位为px
1883
+ *
1884
+ * @uniPlatform
1885
+ * {
1886
+ * "app": {
1887
+ * "android": {
1888
+ * "osVer": "5.0",
1889
+ * "uniVer": "√",
1890
+ * "unixVer": "3.9+"
1891
+ * },
1892
+ * "ios": {
1893
+ * "osVer": "12.0",
1894
+ * "uniVer": "√",
1895
+ * "unixVer": "4.11"
1896
+ * },
1897
+ * "harmony": {
1898
+ * "osVer": "3.0",
1899
+ * "uniVer": "4.23",
1900
+ * "unixVer": "x"
1901
+ * }
1902
+ * },
1903
+ * "web": {
1904
+ * "uniVer": "√",
1905
+ * "unixVer": "4.0"
1906
+ * }
1907
+ * }
1908
+ */
1909
+ screenHeight: number,
1910
+ /**
1911
+ * 可使用窗口宽度,单位为px
1912
+ *
1913
+ * @uniPlatform
1914
+ * {
1915
+ * "app": {
1916
+ * "android": {
1917
+ * "osVer": "5.0",
1918
+ * "uniVer": "√",
1919
+ * "unixVer": "3.9+"
1920
+ * },
1921
+ * "ios": {
1922
+ * "osVer": "12.0",
1923
+ * "uniVer": "√",
1924
+ * "unixVer": "4.11"
1925
+ * },
1926
+ * "harmony": {
1927
+ * "osVer": "3.0",
1928
+ * "uniVer": "4.23",
1929
+ * "unixVer": "x"
1930
+ * }
1931
+ * },
1932
+ * "web": {
1933
+ * "uniVer": "√",
1934
+ * "unixVer": "4.0"
1935
+ * }
1936
+ * }
1937
+ */
1938
+ windowWidth: number,
1939
+ /**
1940
+ * 可使用窗口高度,单位为px
1941
+ *
1942
+ * @uniPlatform
1943
+ * {
1944
+ * "app": {
1945
+ * "android": {
1946
+ * "osVer": "5.0",
1947
+ * "uniVer": "√",
1948
+ * "unixVer": "3.9+"
1949
+ * },
1950
+ * "ios": {
1951
+ * "osVer": "12.0",
1952
+ * "uniVer": "√",
1953
+ * "unixVer": "4.11"
1954
+ * },
1955
+ * "harmony": {
1956
+ * "osVer": "3.0",
1957
+ * "uniVer": "4.23",
1958
+ * "unixVer": "x"
1959
+ * }
1960
+ * }
1961
+ * }
1962
+ */
1963
+ windowHeight: number,
1964
+ /**
1965
+ * 状态栏的高度,单位为px
1966
+ *
1967
+ * @uniPlatform
1968
+ * {
1969
+ * "app": {
1970
+ * "android": {
1971
+ * "osVer": "5.0",
1972
+ * "uniVer": "√",
1973
+ * "unixVer": "3.9+"
1974
+ * },
1975
+ * "ios": {
1976
+ * "osVer": "12.0",
1977
+ * "uniVer": "√",
1978
+ * "unixVer": "4.11"
1979
+ * },
1980
+ * "harmony": {
1981
+ * "osVer": "3.0",
1982
+ * "uniVer": "4.23",
1983
+ * "unixVer": "x"
1984
+ * }
1985
+ * },
1986
+ * "web": {
1987
+ * "uniVer": "√",
1988
+ * "unixVer": "4.0"
1989
+ * }
1990
+ * }
1991
+ */
1992
+ statusBarHeight: number,
1993
+ /**
1994
+ * 内容区域距离顶部的距离(同CSS变量 `--window-top`),单位为px
1995
+ *
1996
+ * @uniPlatform
1997
+ * {
1998
+ * "app": {
1999
+ * "android": {
2000
+ * "osVer": "5.0",
2001
+ * "uniVer": "√",
2002
+ * "unixVer": "3.9+"
2003
+ * },
2004
+ * "ios": {
2005
+ * "osVer": "12.0",
2006
+ * "uniVer": "√",
2007
+ * "unixVer": "4.11"
2008
+ * },
2009
+ * "harmony": {
2010
+ * "osVer": "3.0",
2011
+ * "uniVer": "4.23",
2012
+ * "unixVer": "x"
2013
+ * }
2014
+ * },
2015
+ * "web": {
2016
+ * "uniVer": "√",
2017
+ * "unixVer": "4.0"
2018
+ * }
2019
+ * }
2020
+ */
2021
+ windowTop: number,
2022
+ /**
2023
+ * 内容区域距离底部的距离(同CSS变量 `--window-bottom`),单位为px
2024
+ *
2025
+ * @uniPlatform
2026
+ * {
2027
+ * "app": {
2028
+ * "android": {
2029
+ * "osVer": "5.0",
2030
+ * "uniVer": "√",
2031
+ * "unixVer": "3.9+"
2032
+ * },
2033
+ * "ios": {
2034
+ * "osVer": "12.0",
2035
+ * "uniVer": "√",
2036
+ * "unixVer": "4.11"
2037
+ * },
2038
+ * "harmony": {
2039
+ * "osVer": "3.0",
2040
+ * "uniVer": "4.23",
2041
+ * "unixVer": "x"
2042
+ * }
2043
+ * },
2044
+ * "web": {
2045
+ * "uniVer": "√",
2046
+ * "unixVer": "4.0"
2047
+ * }
2048
+ * }
2049
+ */
2050
+ windowBottom: number,
2051
+ /**
2052
+ * 安全区域在屏幕中的位置信息
2053
+ *
2054
+ * @uniPlatform
2055
+ * {
2056
+ * "app": {
2057
+ * "android": {
2058
+ * "osVer": "5.0",
2059
+ * "uniVer": "√",
2060
+ * "unixVer": "3.9+"
2061
+ * },
2062
+ * "ios": {
2063
+ * "osVer": "12.0",
2064
+ * "uniVer": "√",
2065
+ * "unixVer": "4.11"
2066
+ * },
2067
+ * "harmony": {
2068
+ * "osVer": "3.0",
2069
+ * "uniVer": "4.23",
2070
+ * "unixVer": "x"
2071
+ * }
2072
+ * },
2073
+ * "web": {
2074
+ * "uniVer": "√",
2075
+ * "unixVer": "4.0"
2076
+ * }
2077
+ * }
2078
+ */
2079
+ safeArea: SafeArea,
2080
+ /**
2081
+ * 安全区域插入位置(与屏幕边界的距离)信息
2082
+ *
2083
+ * @uniPlatform
2084
+ * {
2085
+ * "app": {
2086
+ * "android": {
2087
+ * "osVer": "5.0",
2088
+ * "uniVer": "√",
2089
+ * "unixVer": "3.9+"
2090
+ * },
2091
+ * "ios": {
2092
+ * "osVer": "12.0",
2093
+ * "uniVer": "√",
2094
+ * "unixVer": "4.11"
2095
+ * },
2096
+ * "harmony": {
2097
+ * "osVer": "3.0",
2098
+ * "uniVer": "4.23",
2099
+ * "unixVer": "x"
2100
+ * }
2101
+ * },
2102
+ * "web": {
2103
+ * "uniVer": "√",
2104
+ * "unixVer": "4.0"
2105
+ * }
2106
+ * }
2107
+ */
2108
+ safeAreaInsets: SafeAreaInsets,
2109
+ /**
2110
+ * 窗口上边缘的 y 值,单位为px
2111
+ *
2112
+ * @uniPlatform
2113
+ * @deprecated 已废弃,仅为了向下兼容保留
2114
+ * {
2115
+ * "app": {
2116
+ * "android": {
2117
+ * "osVer": "5.0",
2118
+ * "uniVer": "",
2119
+ * "unixVer": "3.9+"
2120
+ * },
2121
+ * "ios": {
2122
+ * "osVer": "12.0",
2123
+ * "uniVer": "",
2124
+ * "unixVer": "4.11"
2125
+ * },
2126
+ * "harmony": {
2127
+ * "osVer": "3.0",
2128
+ * "uniVer": "4.23",
2129
+ * "unixVer": "x"
2130
+ * }
2131
+ * },
2132
+ * "web": {
2133
+ * "uniVer": "",
2134
+ * "unixVer": "4.0"
2135
+ * }
2136
+ * }
2137
+ */
2138
+ screenTop: number
2139
+ };