@dcloudio/uni-app-x 0.7.13 → 0.7.15
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.
- package/options.d.ts +1 -1
- package/package.json +1 -1
- package/types/app.d.ts +5 -6
- package/types/index.d.ts +1 -1
- package/types/native/CanvasRenderingContext2D.d.ts +378 -0
- package/types/native/IUniElement.d.ts +40 -12
- package/types/native/Path2D.d.ts +74 -0
- package/types/native/UniApp.d.ts +17 -1
- package/types/native/UniCanvasElement.d.ts +9 -0
- package/types/native/UniEvent.d.ts +30 -0
- package/types/native/UniNativePage.d.ts +31 -1
- package/types/native/UniPageManager.d.ts +4 -1
- package/types/native/UniProvider.d.ts +14 -0
- package/types/native/UniResizeObserver.d.ts +10 -10
- package/types/native/UniScrollEvent.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
- package/types/native/UniSwiperChangeEvent.d.ts +24 -2
- package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
- package/types/native/UniWebViewErrorEvent.d.ts +3 -3
- package/types/native/UniWebViewLoadEvent.d.ts +2 -2
- package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
- package/types/native/UniWebViewMessageEvent.d.ts +1 -1
- package/types/native/global.d.ts +40 -9
- package/types/native/index.d.ts +4 -0
- package/types/page.d.ts +85 -0
- package/types/shim-uts-basic.d.ts +4495 -0
- package/types/uni/env/index.d.ts +21 -0
- package/types/uni/global.d.ts +1 -0
- package/types/uni/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/global.d.ts +14 -2
- package/types/uni/uts-plugin-api/index.d.ts +14 -2
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +30 -2
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +12 -3
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +64 -8
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +111 -27
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +465 -45
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +651 -115
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -5
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +11 -5
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +176 -72
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1728 -59
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -16
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +459 -67
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +909 -101
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +26 -16
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +251 -42
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +114 -45
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +167 -7
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +516 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +320 -83
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +48 -39
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -394
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +19 -15
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
- package/types/uni/uts-plugin-extend/README.md +3 -0
- package/types/uni/uts-plugin-extend/global.d.ts +13 -0
- package/types/uni/uts-plugin-extend/index.d.ts +13 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
- package/types/uni-cloud/index.d.ts +4 -0
- package/types/uni-cloud/interface.d.ts +163 -20
- package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
- package/types/vue/LifeCycle.d.ts +32 -32
- package/types/vue/PickerViewChangeEvent.d.ts +10 -13
- package/types/vue/ProgressActiveendEvent.d.ts +9 -11
- package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
- package/types/vue/SliderChangeEvent.d.ts +9 -10
- package/types/vue/SwitchChangeEvent.d.ts +11 -13
- package/types/vue/UniCloudDBElement.d.ts +72 -75
- package/types/vue/UniFormElement.d.ts +17 -19
- package/types/vue/UniNavigatorElement.d.ts +1 -2
- package/types/vue/global.d.ts +190 -0
- package/types/vue/index.d.ts +10 -11
- package/types/vue-global/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -643
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export interface Uni {
|
|
2
2
|
/**
|
|
3
3
|
* getSystemInfo()
|
|
4
|
-
* @description
|
|
4
|
+
* @description
|
|
5
5
|
* 异步获取系统信息
|
|
6
6
|
* @param {GetSystemInfoOptions} options
|
|
7
7
|
* @return {void}
|
|
8
|
-
* @tutorial
|
|
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
|
|
9
11
|
* @uniPlatform
|
|
10
12
|
* {
|
|
11
13
|
* "app": {
|
|
@@ -18,12 +20,17 @@ export interface Uni {
|
|
|
18
20
|
* "osVer": "12.0",
|
|
19
21
|
* "uniVer": "√",
|
|
20
22
|
* "unixVer": "4.11"
|
|
21
|
-
* }
|
|
23
|
+
* },
|
|
24
|
+
* "harmony": {
|
|
25
|
+
* "osVer": "3.0",
|
|
26
|
+
* "uniVer": "4.23",
|
|
27
|
+
* "unixVer": "x"
|
|
28
|
+
* }
|
|
22
29
|
* },
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
* "web": {
|
|
31
|
+
* "uniVer": "√",
|
|
32
|
+
* "unixVer": "4.0"
|
|
33
|
+
* }
|
|
27
34
|
* }
|
|
28
35
|
* @example
|
|
29
36
|
```typescript
|
|
@@ -41,11 +48,13 @@ export interface Uni {
|
|
|
41
48
|
|
|
42
49
|
/**
|
|
43
50
|
* getSystemInfoSync()
|
|
44
|
-
* @description
|
|
51
|
+
* @description
|
|
45
52
|
* 同步获取系统信息
|
|
46
|
-
* @param {void}
|
|
53
|
+
* @param {void}
|
|
47
54
|
* @return {GetSystemInfoResult}
|
|
48
|
-
* @tutorial
|
|
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
|
|
49
58
|
* @uniPlatform
|
|
50
59
|
* {
|
|
51
60
|
* "app": {
|
|
@@ -60,10 +69,10 @@ export interface Uni {
|
|
|
60
69
|
* "unixVer": "4.11"
|
|
61
70
|
* }
|
|
62
71
|
* },
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
72
|
+
* "web": {
|
|
73
|
+
* "uniVer": "√",
|
|
74
|
+
* "unixVer": "4.0"
|
|
75
|
+
* }
|
|
67
76
|
* }
|
|
68
77
|
* @example
|
|
69
78
|
```typescript
|
|
@@ -74,11 +83,13 @@ export interface Uni {
|
|
|
74
83
|
|
|
75
84
|
/**
|
|
76
85
|
* getWindowInfo()
|
|
77
|
-
* @description
|
|
86
|
+
* @description
|
|
78
87
|
* 同步获取窗口信息
|
|
79
|
-
* @param {void}
|
|
88
|
+
* @param {void}
|
|
80
89
|
* @return {GetWindowInfoResult} result
|
|
81
|
-
* @tutorial
|
|
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
|
|
82
93
|
* @uniPlatform
|
|
83
94
|
* {
|
|
84
95
|
* "app": {
|
|
@@ -93,10 +104,10 @@ export interface Uni {
|
|
|
93
104
|
* "unixVer": "4.11"
|
|
94
105
|
* }
|
|
95
106
|
* },
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
* "web": {
|
|
108
|
+
* "uniVer": "√",
|
|
109
|
+
* "unixVer": "4.0"
|
|
110
|
+
* }
|
|
100
111
|
* }
|
|
101
112
|
* @example
|
|
102
113
|
```typescript
|
|
@@ -112,75 +123,475 @@ export type GetWindowInfo = () => GetWindowInfoResult;
|
|
|
112
123
|
export type SafeArea = {
|
|
113
124
|
/**
|
|
114
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
|
+
* }
|
|
115
151
|
*/
|
|
116
152
|
left: number,
|
|
117
153
|
/**
|
|
118
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
|
+
* }
|
|
119
180
|
*/
|
|
120
181
|
right: number,
|
|
121
182
|
/**
|
|
122
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
|
+
* }
|
|
123
209
|
*/
|
|
124
210
|
top: number,
|
|
125
211
|
/**
|
|
126
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
|
+
* }
|
|
127
238
|
*/
|
|
128
239
|
bottom: number,
|
|
129
240
|
/**
|
|
130
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
|
+
* }
|
|
131
267
|
*/
|
|
132
268
|
width: number,
|
|
133
269
|
/**
|
|
134
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
|
+
* }
|
|
135
296
|
*/
|
|
136
297
|
height: number
|
|
137
298
|
};
|
|
138
299
|
export type SafeAreaInsets = {
|
|
139
300
|
/**
|
|
140
|
-
*
|
|
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
|
+
* }
|
|
141
327
|
*/
|
|
142
328
|
left: number,
|
|
143
329
|
/**
|
|
144
|
-
*
|
|
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
|
+
* }
|
|
145
356
|
*/
|
|
146
357
|
right: number,
|
|
147
358
|
/**
|
|
148
|
-
*
|
|
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
|
+
* }
|
|
149
385
|
*/
|
|
150
386
|
top: number,
|
|
151
387
|
/**
|
|
152
|
-
*
|
|
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
|
+
* }
|
|
153
414
|
*/
|
|
154
415
|
bottom: number
|
|
155
416
|
};
|
|
156
417
|
export type GetSystemInfoResult = {
|
|
157
418
|
/**
|
|
158
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
|
+
* }
|
|
159
445
|
*/
|
|
160
446
|
SDKVersion: string,
|
|
161
447
|
/**
|
|
162
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
|
+
* }
|
|
163
474
|
*/
|
|
164
475
|
appId: string,
|
|
165
476
|
/**
|
|
166
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
|
+
* }
|
|
167
503
|
*/
|
|
168
504
|
appLanguage: string,
|
|
169
505
|
/**
|
|
170
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
|
+
* }
|
|
171
532
|
*/
|
|
172
533
|
appName: string,
|
|
173
534
|
/**
|
|
174
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
|
+
* }
|
|
175
561
|
*/
|
|
176
562
|
appVersion: string,
|
|
177
563
|
/**
|
|
178
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
|
+
* }
|
|
179
590
|
*/
|
|
180
591
|
appVersionCode: string,
|
|
181
592
|
/**
|
|
182
593
|
* 应用资源(wgt)的版本名称。
|
|
183
|
-
*
|
|
594
|
+
*
|
|
184
595
|
* @uniPlatform
|
|
185
596
|
* {
|
|
186
597
|
* "app": {
|
|
@@ -193,71 +604,433 @@ export type GetSystemInfoResult = {
|
|
|
193
604
|
* "osVer": "12.0",
|
|
194
605
|
* "uniVer": "√",
|
|
195
606
|
* "unixVer": "x"
|
|
196
|
-
* }
|
|
197
|
-
*
|
|
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
|
+
* }
|
|
198
618
|
* }
|
|
199
619
|
*/
|
|
200
620
|
appWgtVersion?: string | null,
|
|
201
621
|
/**
|
|
202
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
|
+
* }
|
|
203
649
|
*/
|
|
204
650
|
brand: string,
|
|
205
651
|
/**
|
|
206
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
|
+
* }
|
|
207
678
|
*/
|
|
208
679
|
browserName: string,
|
|
209
680
|
/**
|
|
210
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
|
+
* }
|
|
211
707
|
*/
|
|
212
708
|
browserVersion: string,
|
|
213
709
|
/**
|
|
214
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
|
+
* }
|
|
215
765
|
*/
|
|
216
|
-
deviceId: string,
|
|
217
|
-
/**
|
|
218
|
-
* 设备品牌。如:`apple`、`huawei`。
|
|
219
|
-
*/
|
|
220
766
|
deviceBrand: string,
|
|
221
767
|
/**
|
|
222
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
|
+
* }
|
|
223
794
|
*/
|
|
224
795
|
deviceModel: string,
|
|
225
796
|
/**
|
|
226
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
|
+
* }
|
|
227
823
|
*/
|
|
228
824
|
deviceType: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance',
|
|
229
825
|
/**
|
|
230
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
|
+
* }
|
|
231
852
|
*/
|
|
232
853
|
devicePixelRatio: number,
|
|
233
854
|
/**
|
|
234
855
|
* 设备方向。
|
|
235
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
|
+
* }
|
|
236
882
|
*/
|
|
237
883
|
deviceOrientation: 'portrait' | 'landscape',
|
|
238
884
|
/**
|
|
239
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
|
+
* }
|
|
240
912
|
*/
|
|
241
913
|
language: string,
|
|
242
914
|
/**
|
|
243
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
|
+
* }
|
|
244
942
|
*/
|
|
245
|
-
model
|
|
943
|
+
model?: string,
|
|
246
944
|
/**
|
|
247
|
-
* 系统名称
|
|
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
|
+
* }
|
|
248
971
|
*/
|
|
249
|
-
osName: 'ios' | 'android' | '
|
|
972
|
+
osName: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux',
|
|
250
973
|
/**
|
|
251
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
|
+
* }
|
|
252
1000
|
*/
|
|
253
1001
|
osVersion: string,
|
|
254
1002
|
/**
|
|
255
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
|
+
* }
|
|
256
1029
|
*/
|
|
257
1030
|
osLanguage: string,
|
|
258
1031
|
/**
|
|
259
1032
|
* 操作系统主题
|
|
260
|
-
*
|
|
1033
|
+
*
|
|
261
1034
|
* @uniPlatform
|
|
262
1035
|
* {
|
|
263
1036
|
* "app": {
|
|
@@ -270,109 +1043,696 @@ export type GetSystemInfoResult = {
|
|
|
270
1043
|
* "osVer": "12.0",
|
|
271
1044
|
* "uniVer": "√",
|
|
272
1045
|
* "unixVer": "4.11"
|
|
273
|
-
* }
|
|
274
|
-
|
|
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
|
+
* }
|
|
275
1057
|
* }
|
|
276
1058
|
*/
|
|
277
1059
|
osTheme?: 'light' | 'dark' | null,
|
|
278
1060
|
/**
|
|
279
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
|
+
* }
|
|
280
1088
|
*/
|
|
281
1089
|
pixelRatio: number,
|
|
282
1090
|
/**
|
|
283
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
|
+
* }
|
|
284
1118
|
*/
|
|
285
|
-
platform: 'ios' | 'android' | 'mac' | 'windows' | 'linux',
|
|
1119
|
+
platform: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux',
|
|
286
1120
|
/**
|
|
287
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
|
+
* }
|
|
288
1147
|
*/
|
|
289
1148
|
screenWidth: number,
|
|
290
1149
|
/**
|
|
291
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
|
+
* }
|
|
292
1176
|
*/
|
|
293
1177
|
screenHeight: number,
|
|
294
1178
|
/**
|
|
295
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
|
+
* }
|
|
296
1205
|
*/
|
|
297
1206
|
statusBarHeight: number,
|
|
298
1207
|
/**
|
|
299
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
|
+
* }
|
|
300
1235
|
*/
|
|
301
1236
|
system: string,
|
|
302
1237
|
/**
|
|
303
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
|
+
* }
|
|
304
1264
|
*/
|
|
305
1265
|
safeArea: SafeArea,
|
|
306
1266
|
/**
|
|
307
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
|
+
* }
|
|
308
1293
|
*/
|
|
309
1294
|
safeAreaInsets: SafeAreaInsets,
|
|
310
1295
|
/**
|
|
311
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
|
+
* }
|
|
312
1322
|
*/
|
|
313
1323
|
ua: string,
|
|
314
1324
|
/**
|
|
315
|
-
* uni
|
|
1325
|
+
* uni 编译器版本。
|
|
316
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
|
+
* }
|
|
317
1352
|
*/
|
|
318
1353
|
uniCompileVersion: string,
|
|
319
1354
|
/**
|
|
320
|
-
* uni
|
|
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
|
+
* }
|
|
321
1381
|
*/
|
|
322
1382
|
uniCompilerVersion: string,
|
|
323
1383
|
/**
|
|
324
|
-
* uni-app
|
|
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
|
+
* }
|
|
325
1410
|
*/
|
|
326
|
-
uniPlatform: 'app
|
|
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',
|
|
327
1412
|
/**
|
|
328
|
-
* uni
|
|
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
|
+
* }
|
|
329
1439
|
*/
|
|
330
1440
|
uniRuntimeVersion: string,
|
|
331
1441
|
/**
|
|
332
|
-
* uni
|
|
1442
|
+
* uni 编译器版本号。
|
|
333
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
|
+
* }
|
|
334
1469
|
*/
|
|
335
1470
|
uniCompileVersionCode: number,
|
|
336
1471
|
/**
|
|
337
|
-
* uni
|
|
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
|
+
* }
|
|
338
1498
|
*/
|
|
339
1499
|
uniCompilerVersionCode: number,
|
|
340
1500
|
/**
|
|
341
|
-
* uni
|
|
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
|
+
* }
|
|
342
1527
|
*/
|
|
343
1528
|
uniRuntimeVersionCode: number,
|
|
344
1529
|
/**
|
|
345
|
-
*
|
|
1530
|
+
* 引擎版本号。
|
|
346
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
|
+
* }
|
|
347
1557
|
*/
|
|
348
1558
|
version: string,
|
|
349
1559
|
/**
|
|
350
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
|
+
* }
|
|
351
1586
|
*/
|
|
352
1587
|
romName: string,
|
|
353
1588
|
/**
|
|
354
|
-
* rom 版本号。Android 部分机型获取不到值。iOS
|
|
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
|
+
* }
|
|
355
1615
|
*/
|
|
356
1616
|
romVersion: string,
|
|
357
1617
|
/**
|
|
358
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
|
+
* }
|
|
359
1644
|
*/
|
|
360
1645
|
windowWidth: number,
|
|
361
1646
|
/**
|
|
362
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
|
+
* }
|
|
363
1673
|
*/
|
|
364
1674
|
windowHeight: number,
|
|
365
1675
|
/**
|
|
366
|
-
*
|
|
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
|
+
* }
|
|
367
1702
|
*/
|
|
368
1703
|
windowTop: number,
|
|
369
1704
|
/**
|
|
370
|
-
*
|
|
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
|
+
* }
|
|
371
1731
|
*/
|
|
372
1732
|
windowBottom: number,
|
|
373
1733
|
/**
|
|
374
1734
|
* Android 系统API库的版本。
|
|
375
|
-
*
|
|
1735
|
+
*
|
|
376
1736
|
* @uniPlatform
|
|
377
1737
|
* {
|
|
378
1738
|
* "app": {
|
|
@@ -385,11 +1745,49 @@ export type GetSystemInfoResult = {
|
|
|
385
1745
|
* "osVer": "x",
|
|
386
1746
|
* "uniVer": "x",
|
|
387
1747
|
* "unixVer": "x"
|
|
388
|
-
* }
|
|
389
|
-
|
|
1748
|
+
* },
|
|
1749
|
+
* "harmony": {
|
|
1750
|
+
* "osVer": "x",
|
|
1751
|
+
* "uniVer": "x",
|
|
1752
|
+
* "unixVer": "x"
|
|
1753
|
+
* }
|
|
1754
|
+
* },
|
|
1755
|
+
* "web": {
|
|
1756
|
+
* "uniVer": "x",
|
|
1757
|
+
* "unixVer": "x"
|
|
1758
|
+
* }
|
|
390
1759
|
* }
|
|
391
1760
|
*/
|
|
392
|
-
osAndroidAPILevel?: number | null
|
|
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,
|
|
393
1791
|
};
|
|
394
1792
|
export type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void;
|
|
395
1793
|
type GetSystemInfoFail = UniError;
|
|
@@ -417,46 +1815,317 @@ export type GetSystemInfoOptions = {
|
|
|
417
1815
|
export type GetWindowInfoResult = {
|
|
418
1816
|
/**
|
|
419
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
|
+
* }
|
|
420
1843
|
*/
|
|
421
1844
|
pixelRatio: number,
|
|
422
1845
|
/**
|
|
423
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
|
+
* }
|
|
424
1872
|
*/
|
|
425
1873
|
screenWidth: number,
|
|
426
1874
|
/**
|
|
427
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
|
+
* }
|
|
428
1901
|
*/
|
|
429
1902
|
screenHeight: number,
|
|
430
1903
|
/**
|
|
431
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
|
+
* }
|
|
432
1930
|
*/
|
|
433
1931
|
windowWidth: number,
|
|
434
1932
|
/**
|
|
435
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
|
+
* }
|
|
436
1955
|
*/
|
|
437
1956
|
windowHeight: number,
|
|
438
1957
|
/**
|
|
439
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
|
+
* }
|
|
440
1984
|
*/
|
|
441
1985
|
statusBarHeight: number,
|
|
442
1986
|
/**
|
|
443
|
-
*
|
|
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
|
+
* }
|
|
444
2013
|
*/
|
|
445
2014
|
windowTop: number,
|
|
446
2015
|
/**
|
|
447
|
-
*
|
|
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
|
+
* }
|
|
448
2042
|
*/
|
|
449
2043
|
windowBottom: number,
|
|
450
2044
|
/**
|
|
451
|
-
*
|
|
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
|
+
* }
|
|
452
2071
|
*/
|
|
453
2072
|
safeArea: SafeArea,
|
|
454
2073
|
/**
|
|
455
|
-
*
|
|
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
|
+
* }
|
|
456
2100
|
*/
|
|
457
2101
|
safeAreaInsets: SafeAreaInsets,
|
|
458
2102
|
/**
|
|
459
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
|
+
* }
|
|
460
2129
|
*/
|
|
461
2130
|
screenTop: number
|
|
462
2131
|
};
|