@dcloudio/uni-app-x 0.7.21 → 0.7.23

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