@dcloudio/uni-app-x 0.5.4 → 0.5.6
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/package.json +1 -1
- package/types/app.d.ts +17 -8
- package/types/native/AsyncApiResult.d.ts +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +2 -2
- package/types/native/DrawableContext.d.ts +2 -2
- package/types/native/Element.d.ts +52 -17
- package/types/native/IDocument.d.ts +2 -3
- package/types/native/IPage.d.ts +1 -1
- package/types/native/IUniError.d.ts +1 -1
- package/types/native/NodeData.d.ts +1 -1
- package/types/native/SnapshotOptions.d.ts +63 -0
- package/types/native/UniAppManager.d.ts +1 -1
- package/types/native/UniElement.d.ts +97 -0
- package/types/native/UniTabsElement.d.ts +86 -0
- package/types/native/UniTextElement.d.ts +13 -0
- package/types/native/UniVideoElement.d.ts +70 -0
- package/types/native/{IWebViewNode.d.ts → UniWebViewElement.d.ts} +5 -2
- package/types/native/WebViewDownloadEvent.d.ts +37 -0
- package/types/native/WebViewErrorEvent.d.ts +26 -7
- package/types/native/WebViewLoadedEvent.d.ts +15 -2
- package/types/native/WebViewLoadingEvent.d.ts +15 -2
- package/types/native/WebViewMessageEvent.d.ts +15 -7
- package/types/native/WebViewStyles.d.ts +20 -0
- package/types/native/index.d.ts +8 -4
- package/types/shims-vue.d.ts +4 -2
- package/types/uni/core/lib/base/event/interface.d.ts +3 -6
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +3 -2
- package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +4 -0
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +10 -1
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +4 -8
- package/types/uni/uts-plugin-api/index.d.ts +1 -2
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +86 -86
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +103 -103
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +52 -52
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +82 -82
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +59 -56
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +116 -97
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/index.d.ts +55 -0
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/interface.d.ts +338 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +39 -39
- package/types/uni-cloud/interface.d.ts +10 -10
- package/types/vue/CheckboxGroupChangeEvent.d.ts +13 -0
- package/types/vue/PickerViewChangeEvent.d.ts +13 -0
- package/types/vue/ProgressActiveendEvent.d.ts +7 -0
- package/types/vue/RadioGroupChangeEvent.d.ts +13 -0
- package/types/vue/SliderChangeEvent.d.ts +2 -2
- package/types/vue/SwitchChangeEvent.d.ts +7 -0
- package/types/vue/UniButtonElement.d.ts +7 -0
- package/types/vue/UniCloudDBElement.d.ts +213 -0
- package/types/vue/UniNavigatorElement.d.ts +7 -0
- package/types/vue/index.d.ts +3 -0
- package/types/native/DomNode.d.ts +0 -48
- package/types/native/ITabsNode.d.ts +0 -36
- package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/index.d.ts +0 -17
- package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/interface.d.ts +0 -804
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +0 -15
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +0 -213
|
@@ -11,7 +11,7 @@ export interface Uni {
|
|
|
11
11
|
* "android": {
|
|
12
12
|
* "osVer": "4.4",
|
|
13
13
|
* "uniVer": "√",
|
|
14
|
-
* "unixVer": "3.9
|
|
14
|
+
* "unixVer": "3.9+"
|
|
15
15
|
* },
|
|
16
16
|
* "ios": {
|
|
17
17
|
* "osVer": "9.0",
|
|
@@ -36,7 +36,7 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
36
36
|
* - authorized: 已经获得授权,无需再次请求授权
|
|
37
37
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
38
38
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
39
|
-
* @type 'authorized' | 'denied' | 'not determined'
|
|
39
|
+
* @type 'authorized' | 'denied' | 'not determined'
|
|
40
40
|
* @uniPlatform {
|
|
41
41
|
* "app": {
|
|
42
42
|
* "android": {
|
|
@@ -59,20 +59,20 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
59
59
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
60
60
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
61
61
|
* - config error: Android平台没有该值;iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `BlueTooth(低功耗蓝牙)` 模块
|
|
62
|
-
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
63
|
-
* @uniPlatform {
|
|
64
|
-
* "app": {
|
|
65
|
-
* "android": {
|
|
66
|
-
* "osVer": "x",
|
|
67
|
-
* "uniVer": "x",
|
|
68
|
-
* "unixVer": "x"
|
|
69
|
-
* },
|
|
70
|
-
* "ios": {
|
|
71
|
-
* "osVer": "9.0",
|
|
72
|
-
* "uniVer": "√",
|
|
73
|
-
* "unixVer": "x"
|
|
74
|
-
* }
|
|
75
|
-
* }
|
|
62
|
+
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
63
|
+
* @uniPlatform {
|
|
64
|
+
* "app": {
|
|
65
|
+
* "android": {
|
|
66
|
+
* "osVer": "x",
|
|
67
|
+
* "uniVer": "x",
|
|
68
|
+
* "unixVer": "x"
|
|
69
|
+
* },
|
|
70
|
+
* "ios": {
|
|
71
|
+
* "osVer": "9.0",
|
|
72
|
+
* "uniVer": "√",
|
|
73
|
+
* "unixVer": "x"
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
76
76
|
* }
|
|
77
77
|
*/
|
|
78
78
|
bluetoothAuthorized: string | null,
|
|
@@ -104,20 +104,20 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
104
104
|
locationAccuracy: string | null,
|
|
105
105
|
/**
|
|
106
106
|
* 定位准确度(推荐使用 locationAccuracy 属性)。true 表示模糊定位,false 表示精确定位(仅 iOS 支持)
|
|
107
|
-
* @type boolean
|
|
108
|
-
* @uniPlatform {
|
|
109
|
-
* "app": {
|
|
110
|
-
* "android": {
|
|
111
|
-
* "osVer": "x",
|
|
112
|
-
* "uniVer": "x",
|
|
113
|
-
* "unixVer": "x"
|
|
114
|
-
* },
|
|
115
|
-
* "ios": {
|
|
116
|
-
* "osVer": "9.0",
|
|
117
|
-
* "uniVer": "√",
|
|
118
|
-
* "unixVer": "x"
|
|
119
|
-
* }
|
|
120
|
-
* }
|
|
107
|
+
* @type boolean
|
|
108
|
+
* @uniPlatform {
|
|
109
|
+
* "app": {
|
|
110
|
+
* "android": {
|
|
111
|
+
* "osVer": "x",
|
|
112
|
+
* "uniVer": "x",
|
|
113
|
+
* "unixVer": "x"
|
|
114
|
+
* },
|
|
115
|
+
* "ios": {
|
|
116
|
+
* "osVer": "9.0",
|
|
117
|
+
* "uniVer": "√",
|
|
118
|
+
* "unixVer": "x"
|
|
119
|
+
* }
|
|
120
|
+
* }
|
|
121
121
|
* }
|
|
122
122
|
*/
|
|
123
123
|
locationReducedAccuracy: boolean | null,
|
|
@@ -145,20 +145,20 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
145
145
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
146
146
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
147
147
|
* - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
|
|
148
|
-
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
149
|
-
* @uniPlatform {
|
|
150
|
-
* "app": {
|
|
151
|
-
* "android": {
|
|
152
|
-
* "osVer": "x",
|
|
153
|
-
* "uniVer": "x",
|
|
154
|
-
* "unixVer": "x"
|
|
155
|
-
* },
|
|
156
|
-
* "ios": {
|
|
157
|
-
* "osVer": "10.0",
|
|
158
|
-
* "uniVer": "√",
|
|
159
|
-
* "unixVer": "x"
|
|
160
|
-
* }
|
|
161
|
-
* }
|
|
148
|
+
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
149
|
+
* @uniPlatform {
|
|
150
|
+
* "app": {
|
|
151
|
+
* "android": {
|
|
152
|
+
* "osVer": "x",
|
|
153
|
+
* "uniVer": "x",
|
|
154
|
+
* "unixVer": "x"
|
|
155
|
+
* },
|
|
156
|
+
* "ios": {
|
|
157
|
+
* "osVer": "10.0",
|
|
158
|
+
* "uniVer": "√",
|
|
159
|
+
* "unixVer": "x"
|
|
160
|
+
* }
|
|
161
|
+
* }
|
|
162
162
|
* }
|
|
163
163
|
*/
|
|
164
164
|
notificationAlertAuthorized: string | null,
|
|
@@ -168,20 +168,20 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
168
168
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
169
169
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
170
170
|
* - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
|
|
171
|
-
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
172
|
-
* @uniPlatform {
|
|
173
|
-
* "app": {
|
|
174
|
-
* "android": {
|
|
175
|
-
* "osVer": "x",
|
|
176
|
-
* "uniVer": "x",
|
|
177
|
-
* "unixVer": "x"
|
|
178
|
-
* },
|
|
179
|
-
* "ios": {
|
|
180
|
-
* "osVer": "10.0",
|
|
181
|
-
* "uniVer": "√",
|
|
182
|
-
* "unixVer": "x"
|
|
183
|
-
* }
|
|
184
|
-
* }
|
|
171
|
+
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
172
|
+
* @uniPlatform {
|
|
173
|
+
* "app": {
|
|
174
|
+
* "android": {
|
|
175
|
+
* "osVer": "x",
|
|
176
|
+
* "uniVer": "x",
|
|
177
|
+
* "unixVer": "x"
|
|
178
|
+
* },
|
|
179
|
+
* "ios": {
|
|
180
|
+
* "osVer": "10.0",
|
|
181
|
+
* "uniVer": "√",
|
|
182
|
+
* "unixVer": "x"
|
|
183
|
+
* }
|
|
184
|
+
* }
|
|
185
185
|
* }
|
|
186
186
|
*/
|
|
187
187
|
notificationBadgeAuthorized: string | null,
|
|
@@ -191,20 +191,20 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
191
191
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
192
192
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
193
193
|
* - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
|
|
194
|
-
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
195
|
-
* @uniPlatform {
|
|
196
|
-
* "app": {
|
|
197
|
-
* "android": {
|
|
198
|
-
* "osVer": "x",
|
|
199
|
-
* "uniVer": "x",
|
|
200
|
-
* "unixVer": "x"
|
|
201
|
-
* },
|
|
202
|
-
* "ios": {
|
|
203
|
-
* "osVer": "10.0",
|
|
204
|
-
* "uniVer": "√",
|
|
205
|
-
* "unixVer": "x"
|
|
206
|
-
* }
|
|
207
|
-
* }
|
|
194
|
+
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
195
|
+
* @uniPlatform {
|
|
196
|
+
* "app": {
|
|
197
|
+
* "android": {
|
|
198
|
+
* "osVer": "x",
|
|
199
|
+
* "uniVer": "x",
|
|
200
|
+
* "unixVer": "x"
|
|
201
|
+
* },
|
|
202
|
+
* "ios": {
|
|
203
|
+
* "osVer": "10.0",
|
|
204
|
+
* "uniVer": "√",
|
|
205
|
+
* "unixVer": "x"
|
|
206
|
+
* }
|
|
207
|
+
* }
|
|
208
208
|
* }
|
|
209
209
|
*/
|
|
210
210
|
notificationSoundAuthorized: string | null,
|
|
@@ -213,20 +213,20 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
213
213
|
* - authorized: 已经获得授权,无需再次请求授权
|
|
214
214
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
215
215
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
216
|
-
* @type 'authorized' | 'denied' | 'not determined'
|
|
217
|
-
* @uniPlatform {
|
|
218
|
-
* "app": {
|
|
219
|
-
* "android": {
|
|
220
|
-
* "osVer": "x",
|
|
221
|
-
* "uniVer": "x",
|
|
222
|
-
* "unixVer": "x"
|
|
223
|
-
* },
|
|
224
|
-
* "ios": {
|
|
225
|
-
* "osVer": "x",
|
|
226
|
-
* "uniVer": "x",
|
|
227
|
-
* "unixVer": "x"
|
|
228
|
-
* }
|
|
229
|
-
* }
|
|
216
|
+
* @type 'authorized' | 'denied' | 'not determined'
|
|
217
|
+
* @uniPlatform {
|
|
218
|
+
* "app": {
|
|
219
|
+
* "android": {
|
|
220
|
+
* "osVer": "x",
|
|
221
|
+
* "uniVer": "x",
|
|
222
|
+
* "unixVer": "x"
|
|
223
|
+
* },
|
|
224
|
+
* "ios": {
|
|
225
|
+
* "osVer": "x",
|
|
226
|
+
* "uniVer": "x",
|
|
227
|
+
* "unixVer": "x"
|
|
228
|
+
* }
|
|
229
|
+
* }
|
|
230
230
|
* }
|
|
231
231
|
*/
|
|
232
232
|
phoneCalendarAuthorized: string | null
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
export type GetAppBaseInfoOptions = {
|
|
2
2
|
/**
|
|
3
3
|
* @description 过滤字段的字符串数组,假如要获取指定字段,传入此数组。
|
|
4
|
-
*/
|
|
5
|
-
filter: Array<string>
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export type GetAppBaseInfoResult = {
|
|
9
|
-
/**
|
|
10
|
-
* manifest.json 中应用appid,即DCloud appid。
|
|
11
|
-
*/
|
|
12
|
-
appId?: string,
|
|
13
|
-
/**
|
|
14
|
-
* manifest.json
|
|
15
|
-
*/
|
|
16
|
-
appName?: string,
|
|
17
|
-
/**
|
|
18
|
-
* manifest.json 中应用版本名称。
|
|
19
|
-
*/
|
|
20
|
-
appVersion?: string,
|
|
21
|
-
/**
|
|
22
|
-
* manifest.json 中应用版本名号。
|
|
23
|
-
*/
|
|
24
|
-
appVersionCode?: string,
|
|
25
|
-
/**
|
|
26
|
-
* 应用设置的语言en、zh-Hans、zh-Hant、fr、es
|
|
27
|
-
*/
|
|
28
|
-
appLanguage?: string,
|
|
29
|
-
/**
|
|
30
|
-
* 应用设置的语言
|
|
31
|
-
*/
|
|
32
|
-
language?: string,
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @deprecated 已废弃,仅为了向下兼容保留
|
|
36
|
-
*/
|
|
37
|
-
version?: string,
|
|
38
|
-
/**
|
|
4
|
+
*/
|
|
5
|
+
filter: Array<string>
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type GetAppBaseInfoResult = {
|
|
9
|
+
/**
|
|
10
|
+
* manifest.json 中应用appid,即DCloud appid。
|
|
11
|
+
*/
|
|
12
|
+
appId?: string,
|
|
13
|
+
/**
|
|
14
|
+
* `manifest.json` 中应用名称。
|
|
15
|
+
*/
|
|
16
|
+
appName?: string,
|
|
17
|
+
/**
|
|
18
|
+
* `manifest.json` 中应用版本名称。
|
|
19
|
+
*/
|
|
20
|
+
appVersion?: string,
|
|
21
|
+
/**
|
|
22
|
+
* `manifest.json` 中应用版本名号。
|
|
23
|
+
*/
|
|
24
|
+
appVersionCode?: string,
|
|
25
|
+
/**
|
|
26
|
+
* 应用设置的语言en、zh-Hans、zh-Hant、fr、es
|
|
27
|
+
*/
|
|
28
|
+
appLanguage?: string,
|
|
29
|
+
/**
|
|
30
|
+
* 应用设置的语言
|
|
31
|
+
*/
|
|
32
|
+
language?: string,
|
|
33
|
+
/**
|
|
34
|
+
* 引擎版本号。已废弃,仅为了向下兼容保留
|
|
35
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
36
|
+
*/
|
|
37
|
+
version?: string,
|
|
38
|
+
/**
|
|
39
39
|
* 应用资源(wgt)的版本名称。
|
|
40
40
|
*
|
|
41
41
|
* @uniPlatform {
|
|
@@ -51,10 +51,10 @@ export type GetAppBaseInfoResult = {
|
|
|
51
51
|
* "unixVer": "x"
|
|
52
52
|
* }
|
|
53
53
|
* }
|
|
54
|
-
* }
|
|
55
|
-
*/
|
|
56
|
-
appWgtVersion?: string,
|
|
57
|
-
/**
|
|
54
|
+
* }
|
|
55
|
+
*/
|
|
56
|
+
appWgtVersion?: string,
|
|
57
|
+
/**
|
|
58
58
|
* 小程序宿主语言
|
|
59
59
|
*
|
|
60
60
|
* @uniPlatform {
|
|
@@ -70,10 +70,10 @@ export type GetAppBaseInfoResult = {
|
|
|
70
70
|
* "unixVer": "x"
|
|
71
71
|
* }
|
|
72
72
|
* }
|
|
73
|
-
* }
|
|
74
|
-
*/
|
|
75
|
-
hostLanguage?: string,
|
|
76
|
-
/**
|
|
73
|
+
* }
|
|
74
|
+
*/
|
|
75
|
+
hostLanguage?: string,
|
|
76
|
+
/**
|
|
77
77
|
* App、小程序宿主版本。
|
|
78
78
|
*
|
|
79
79
|
* @uniPlatform {
|
|
@@ -89,10 +89,10 @@ export type GetAppBaseInfoResult = {
|
|
|
89
89
|
* "unixVer": "x"
|
|
90
90
|
* }
|
|
91
91
|
* }
|
|
92
|
-
* }
|
|
93
|
-
*/
|
|
94
|
-
hostVersion?: string,
|
|
95
|
-
/**
|
|
92
|
+
* }
|
|
93
|
+
*/
|
|
94
|
+
hostVersion?: string,
|
|
95
|
+
/**
|
|
96
96
|
* 小程序宿主名称
|
|
97
97
|
*
|
|
98
98
|
* @uniPlatform {
|
|
@@ -108,10 +108,10 @@ export type GetAppBaseInfoResult = {
|
|
|
108
108
|
* "unixVer": "x"
|
|
109
109
|
* }
|
|
110
110
|
* }
|
|
111
|
-
* }
|
|
112
|
-
*/
|
|
113
|
-
hostName?: string,
|
|
114
|
-
/**
|
|
111
|
+
* }
|
|
112
|
+
*/
|
|
113
|
+
hostName?: string,
|
|
114
|
+
/**
|
|
115
115
|
* 小程序宿主包名
|
|
116
116
|
*
|
|
117
117
|
* @uniPlatform {
|
|
@@ -127,10 +127,10 @@ export type GetAppBaseInfoResult = {
|
|
|
127
127
|
* "unixVer": "x"
|
|
128
128
|
* }
|
|
129
129
|
* }
|
|
130
|
-
* }
|
|
131
|
-
*/
|
|
132
|
-
hostPackageName?: string,
|
|
133
|
-
/**
|
|
130
|
+
* }
|
|
131
|
+
*/
|
|
132
|
+
hostPackageName?: string,
|
|
133
|
+
/**
|
|
134
134
|
* uni小程序SDK版本、小程序客户端基础库版本
|
|
135
135
|
*
|
|
136
136
|
* @uniPlatform {
|
|
@@ -146,10 +146,10 @@ export type GetAppBaseInfoResult = {
|
|
|
146
146
|
* "unixVer": "x"
|
|
147
147
|
* }
|
|
148
148
|
* }
|
|
149
|
-
* }
|
|
150
|
-
*/
|
|
151
|
-
hostSDKVersion?: string,
|
|
152
|
-
/**
|
|
149
|
+
* }
|
|
150
|
+
*/
|
|
151
|
+
hostSDKVersion?: string,
|
|
152
|
+
/**
|
|
153
153
|
* 系统当前主题,取值为light或dark。微信小程序全局配置"darkmode":true时才能获取,否则为 undefined (不支持小游戏)
|
|
154
154
|
*
|
|
155
155
|
* @uniPlatform {
|
|
@@ -165,12 +165,12 @@ export type GetAppBaseInfoResult = {
|
|
|
165
165
|
* "unixVer": "x"
|
|
166
166
|
* }
|
|
167
167
|
* }
|
|
168
|
-
* }
|
|
169
|
-
*/
|
|
170
|
-
hostTheme?: string,
|
|
171
|
-
/**
|
|
172
|
-
* 是否uni-app x
|
|
173
|
-
*/
|
|
168
|
+
* }
|
|
169
|
+
*/
|
|
170
|
+
hostTheme?: string,
|
|
171
|
+
/**
|
|
172
|
+
* 是否uni-app x
|
|
173
|
+
*/
|
|
174
174
|
isUniAppX ?: boolean,
|
|
175
175
|
/**
|
|
176
176
|
* uni 编译器版本
|
|
@@ -191,43 +191,43 @@ export type GetAppBaseInfoResult = {
|
|
|
191
191
|
/**
|
|
192
192
|
* uni 运行时版本号
|
|
193
193
|
*/
|
|
194
|
-
uniRuntimeVersionCode?: number,
|
|
195
|
-
}
|
|
196
|
-
|
|
194
|
+
uniRuntimeVersionCode?: number,
|
|
195
|
+
}
|
|
196
|
+
|
|
197
197
|
/**
|
|
198
198
|
* @param{GetAppBaseInfoOptions} [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
|
|
199
|
-
*/
|
|
200
|
-
export type GetAppBaseInfo = (options?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
export interface Uni {
|
|
204
|
-
/**
|
|
205
|
-
* GetAppBaseInfo(Object object)
|
|
206
|
-
* @description
|
|
207
|
-
* 获取app基本信息
|
|
208
|
-
* @param {GetAppBaseInfoOptions} options [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
|
|
209
|
-
* @return {object}
|
|
210
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/system/getAppBaseInfo.html
|
|
211
|
-
* @uniPlatform {
|
|
212
|
-
* "app": {
|
|
213
|
-
* "android": {
|
|
214
|
-
* "osVer": "4.4",
|
|
215
|
-
* "uniVer": "√",
|
|
216
|
-
* "unixVer": "3.9
|
|
217
|
-
* },
|
|
218
|
-
* "ios": {
|
|
219
|
-
* "osVer": "9.0",
|
|
220
|
-
* "uniVer": "√",
|
|
221
|
-
* "unixVer": "3.9
|
|
222
|
-
* }
|
|
223
|
-
* }
|
|
224
|
-
* }
|
|
225
|
-
* @example
|
|
226
|
-
```typescript
|
|
227
|
-
uni.getAppBaseInfo({
|
|
228
|
-
filter:[]
|
|
229
|
-
})
|
|
230
|
-
```
|
|
231
|
-
*/
|
|
232
|
-
getAppBaseInfo(options?: GetAppBaseInfoOptions | null): GetAppBaseInfoResult;
|
|
233
|
-
}
|
|
199
|
+
*/
|
|
200
|
+
export type GetAppBaseInfo = (options?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult;
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
export interface Uni {
|
|
204
|
+
/**
|
|
205
|
+
* GetAppBaseInfo(Object object)
|
|
206
|
+
* @description
|
|
207
|
+
* 获取app基本信息
|
|
208
|
+
* @param {GetAppBaseInfoOptions} options [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
|
|
209
|
+
* @return {object}
|
|
210
|
+
* @tutorial https://uniapp.dcloud.net.cn/api/system/getAppBaseInfo.html
|
|
211
|
+
* @uniPlatform {
|
|
212
|
+
* "app": {
|
|
213
|
+
* "android": {
|
|
214
|
+
* "osVer": "4.4",
|
|
215
|
+
* "uniVer": "√",
|
|
216
|
+
* "unixVer": "3.9+"
|
|
217
|
+
* },
|
|
218
|
+
* "ios": {
|
|
219
|
+
* "osVer": "9.0",
|
|
220
|
+
* "uniVer": "√",
|
|
221
|
+
* "unixVer": "3.9+"
|
|
222
|
+
* }
|
|
223
|
+
* }
|
|
224
|
+
* }
|
|
225
|
+
* @example
|
|
226
|
+
```typescript
|
|
227
|
+
uni.getAppBaseInfo({
|
|
228
|
+
filter:[]
|
|
229
|
+
})
|
|
230
|
+
```
|
|
231
|
+
*/
|
|
232
|
+
getAppBaseInfo(options?: GetAppBaseInfoOptions | null): GetAppBaseInfoResult;
|
|
233
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type GetDeviceInfoOptions = {
|
|
2
|
-
/**
|
|
3
|
-
* @description 过滤字段的字符串数组,假如要获取指定字段,传入此数组。
|
|
1
|
+
export type GetDeviceInfoOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* @description 过滤字段的字符串数组,假如要获取指定字段,传入此数组。
|
|
4
4
|
*/
|
|
5
5
|
filter: Array<string>
|
|
6
6
|
}
|
|
@@ -47,21 +47,21 @@ export type GetDeviceInfoResult = {
|
|
|
47
47
|
*/
|
|
48
48
|
platform?: string,
|
|
49
49
|
/**
|
|
50
|
-
* oaid标识 Android专有
|
|
51
|
-
*
|
|
52
|
-
* @uniPlatform {
|
|
53
|
-
* "app": {
|
|
54
|
-
* "android": {
|
|
55
|
-
* "osVer": "5.0",
|
|
56
|
-
* "uniVer": "√",
|
|
57
|
-
* "unixVer": "√"
|
|
58
|
-
* },
|
|
59
|
-
* "ios": {
|
|
60
|
-
* "osVer": "9.0",
|
|
61
|
-
* "uniVer": "x",
|
|
62
|
-
* "unixVer": "x"
|
|
63
|
-
* }
|
|
64
|
-
* }
|
|
50
|
+
* oaid标识 Android专有
|
|
51
|
+
*
|
|
52
|
+
* @uniPlatform {
|
|
53
|
+
* "app": {
|
|
54
|
+
* "android": {
|
|
55
|
+
* "osVer": "5.0",
|
|
56
|
+
* "uniVer": "√",
|
|
57
|
+
* "unixVer": "√"
|
|
58
|
+
* },
|
|
59
|
+
* "ios": {
|
|
60
|
+
* "osVer": "9.0",
|
|
61
|
+
* "uniVer": "x",
|
|
62
|
+
* "unixVer": "x"
|
|
63
|
+
* }
|
|
64
|
+
* }
|
|
65
65
|
* }
|
|
66
66
|
*/
|
|
67
67
|
oaid?: string,
|
|
@@ -74,40 +74,40 @@ export type GetDeviceInfoResult = {
|
|
|
74
74
|
*/
|
|
75
75
|
isSimulator?: boolean,
|
|
76
76
|
/**
|
|
77
|
-
* adb是否开启
|
|
78
|
-
*
|
|
79
|
-
* @uniPlatform {
|
|
80
|
-
* "app": {
|
|
81
|
-
* "android": {
|
|
82
|
-
* "osVer": "5.0",
|
|
83
|
-
* "uniVer": "√",
|
|
84
|
-
* "unixVer": "√"
|
|
85
|
-
* },
|
|
86
|
-
* "ios": {
|
|
87
|
-
* "osVer": "9.0",
|
|
88
|
-
* "uniVer": "x",
|
|
89
|
-
* "unixVer": "x"
|
|
90
|
-
* }
|
|
91
|
-
* }
|
|
77
|
+
* adb是否开启
|
|
78
|
+
*
|
|
79
|
+
* @uniPlatform {
|
|
80
|
+
* "app": {
|
|
81
|
+
* "android": {
|
|
82
|
+
* "osVer": "5.0",
|
|
83
|
+
* "uniVer": "√",
|
|
84
|
+
* "unixVer": "√"
|
|
85
|
+
* },
|
|
86
|
+
* "ios": {
|
|
87
|
+
* "osVer": "9.0",
|
|
88
|
+
* "uniVer": "x",
|
|
89
|
+
* "unixVer": "x"
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
92
|
* }
|
|
93
93
|
*/
|
|
94
94
|
isUSBDebugging?: boolean,
|
|
95
95
|
/**
|
|
96
|
-
* idfa标识 iOS专有
|
|
97
|
-
*
|
|
98
|
-
* @uniPlatform {
|
|
99
|
-
* "app": {
|
|
100
|
-
* "android": {
|
|
101
|
-
* "osVer": "5.0",
|
|
102
|
-
* "uniVer": "x",
|
|
103
|
-
* "unixVer": "x"
|
|
104
|
-
* },
|
|
105
|
-
* "ios": {
|
|
106
|
-
* "osVer": "9.0",
|
|
107
|
-
* "uniVer": "√",
|
|
108
|
-
* "unixVer": "√"
|
|
109
|
-
* }
|
|
110
|
-
* }
|
|
96
|
+
* idfa标识 iOS专有
|
|
97
|
+
*
|
|
98
|
+
* @uniPlatform {
|
|
99
|
+
* "app": {
|
|
100
|
+
* "android": {
|
|
101
|
+
* "osVer": "5.0",
|
|
102
|
+
* "uniVer": "x",
|
|
103
|
+
* "unixVer": "x"
|
|
104
|
+
* },
|
|
105
|
+
* "ios": {
|
|
106
|
+
* "osVer": "9.0",
|
|
107
|
+
* "uniVer": "√",
|
|
108
|
+
* "unixVer": "√"
|
|
109
|
+
* }
|
|
110
|
+
* }
|
|
111
111
|
* }
|
|
112
112
|
*/
|
|
113
113
|
idfa?: string,
|
|
@@ -117,8 +117,8 @@ export type GetDeviceInfoResult = {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
/**
|
|
121
|
-
* @param [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
|
|
120
|
+
/**
|
|
121
|
+
* @param [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
|
|
122
122
|
*/
|
|
123
123
|
export type GetDeviceInfo = (options?: GetDeviceInfoOptions | null) => GetDeviceInfoResult;
|
|
124
124
|
|
|
@@ -136,12 +136,12 @@ export interface Uni {
|
|
|
136
136
|
* "android": {
|
|
137
137
|
* "osVer": "4.4",
|
|
138
138
|
* "uniVer": "√",
|
|
139
|
-
* "unixVer": "3.9
|
|
139
|
+
* "unixVer": "3.9+"
|
|
140
140
|
* },
|
|
141
141
|
* "ios": {
|
|
142
142
|
* "osVer": "9.0",
|
|
143
143
|
* "uniVer": "√",
|
|
144
|
-
* "unixVer": "3.9
|
|
144
|
+
* "unixVer": "3.9+"
|
|
145
145
|
* }
|
|
146
146
|
* }
|
|
147
147
|
* }
|
|
@@ -11,7 +11,7 @@ export interface Uni {
|
|
|
11
11
|
* "android": {
|
|
12
12
|
* "osVer": "4.4",
|
|
13
13
|
* "uniVer": "√",
|
|
14
|
-
* "unixVer": "3.9
|
|
14
|
+
* "unixVer": "3.9+"
|
|
15
15
|
* },
|
|
16
16
|
* "ios": {
|
|
17
17
|
* "osVer": "9.0",
|
|
@@ -46,17 +46,17 @@ export type GetNetworkTypeComplete = any;
|
|
|
46
46
|
export type GetNetworkTypeCompleteCallback = (result: GetNetworkTypeComplete) => void;
|
|
47
47
|
export type GetNetworkTypeOptions = {
|
|
48
48
|
/**
|
|
49
|
-
* 接口调用成功的回调函数
|
|
49
|
+
* 接口调用成功的回调函数
|
|
50
50
|
* @defaultValue null
|
|
51
51
|
*/
|
|
52
52
|
success?: GetNetworkTypeSuccessCallback | null,
|
|
53
53
|
/**
|
|
54
|
-
* 接口调用失败的回调函数
|
|
54
|
+
* 接口调用失败的回调函数
|
|
55
55
|
* @defaultValue null
|
|
56
56
|
*/
|
|
57
57
|
fail?: GetNetworkTypeFailCallback | null,
|
|
58
58
|
/**
|
|
59
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
59
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
60
60
|
* @defaultValue null
|
|
61
61
|
*/
|
|
62
62
|
complete?: GetNetworkTypeCompleteCallback | null
|