@dcloudio/uni-app-x 0.7.1 → 0.7.2
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/native/{MouseEvent.d.ts → PointerEvent.ts} +2 -2
- package/types/native/ViewToTempFilePathOptions.d.ts +9 -0
- package/types/native/global.d.ts +0 -3
- package/types/native/index.d.ts +0 -1
- package/types/page.d.ts +7 -7
- package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +3 -3
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +15 -14
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +125 -117
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +200 -147
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +29 -68
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +15 -14
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +114 -119
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +16 -15
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +149 -140
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +15 -14
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +195 -182
|
@@ -6,20 +6,21 @@ export interface Uni {
|
|
|
6
6
|
* @param {GetSystemInfoOptions} options
|
|
7
7
|
* @return {void}
|
|
8
8
|
* @tutorial http://uniapp.dcloud.io/api/system/info?id=getsysteminfo
|
|
9
|
-
* @uniPlatform
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
* @uniPlatform
|
|
10
|
+
* {
|
|
11
|
+
* "app": {
|
|
12
|
+
* "android": {
|
|
13
|
+
* "osVer": "4.4",
|
|
14
|
+
* "uniVer": "√",
|
|
15
|
+
* "unixVer": "3.9+"
|
|
16
|
+
* },
|
|
17
|
+
* "ios": {
|
|
18
|
+
* "osVer": "9.0",
|
|
19
|
+
* "uniVer": "√",
|
|
20
|
+
* "unixVer": "x"
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
23
24
|
* @example
|
|
24
25
|
```typescript
|
|
25
26
|
uni.getSystemInfo({
|
|
@@ -41,20 +42,21 @@ export interface Uni {
|
|
|
41
42
|
* @param {void}
|
|
42
43
|
* @return {GetSystemInfoResult}
|
|
43
44
|
* @tutorial http://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
|
|
44
|
-
* @uniPlatform
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
* @uniPlatform
|
|
46
|
+
* {
|
|
47
|
+
* "app": {
|
|
48
|
+
* "android": {
|
|
49
|
+
* "osVer": "4.4",
|
|
50
|
+
* "uniVer": "√",
|
|
51
|
+
* "unixVer": "3.9+"
|
|
52
|
+
* },
|
|
53
|
+
* "ios": {
|
|
54
|
+
* "osVer": "9.0",
|
|
55
|
+
* "uniVer": "√",
|
|
56
|
+
* "unixVer": "x"
|
|
57
|
+
* }
|
|
58
|
+
* }
|
|
59
|
+
* }
|
|
58
60
|
* @example
|
|
59
61
|
```typescript
|
|
60
62
|
uni.getSystemInfoSync()
|
|
@@ -69,20 +71,21 @@ export interface Uni {
|
|
|
69
71
|
* @param {void}
|
|
70
72
|
* @return {GetWindowInfoResult} result
|
|
71
73
|
* @tutorial http://uniapp.dcloud.io/api/system/getWindowInfo.html
|
|
72
|
-
* @uniPlatform
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
* @uniPlatform
|
|
75
|
+
* {
|
|
76
|
+
* "app": {
|
|
77
|
+
* "android": {
|
|
78
|
+
* "osVer": "4.4",
|
|
79
|
+
* "uniVer": "√",
|
|
80
|
+
* "unixVer": "3.9+"
|
|
81
|
+
* },
|
|
82
|
+
* "ios": {
|
|
83
|
+
* "osVer": "9.0",
|
|
84
|
+
* "uniVer": "√",
|
|
85
|
+
* "unixVer": "x"
|
|
86
|
+
* }
|
|
87
|
+
* }
|
|
88
|
+
* }
|
|
86
89
|
* @example
|
|
87
90
|
```typescript
|
|
88
91
|
uni.getWindowInfo()
|
|
@@ -166,22 +169,23 @@ export type GetSystemInfoResult = {
|
|
|
166
169
|
/**
|
|
167
170
|
* 应用资源(wgt)的版本名称。
|
|
168
171
|
*
|
|
169
|
-
* @uniPlatform
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
172
|
+
* @uniPlatform
|
|
173
|
+
* {
|
|
174
|
+
* "app": {
|
|
175
|
+
* "android": {
|
|
176
|
+
* "osVer": "4.4",
|
|
177
|
+
* "uniVer": "√",
|
|
178
|
+
* "unixVer": "x"
|
|
179
|
+
* },
|
|
180
|
+
* "ios": {
|
|
181
|
+
* "osVer": "9.0",
|
|
182
|
+
* "uniVer": "√",
|
|
183
|
+
* "unixVer": "x"
|
|
184
|
+
* }
|
|
185
|
+
* }
|
|
182
186
|
* }
|
|
183
187
|
*/
|
|
184
|
-
appWgtVersion
|
|
188
|
+
appWgtVersion?: string | null,
|
|
185
189
|
/**
|
|
186
190
|
* 手机品牌。
|
|
187
191
|
*/
|
|
@@ -207,20 +211,18 @@ export type GetSystemInfoResult = {
|
|
|
207
211
|
*/
|
|
208
212
|
deviceModel: string,
|
|
209
213
|
/**
|
|
210
|
-
*
|
|
214
|
+
* 设备类型。
|
|
211
215
|
*/
|
|
212
|
-
deviceType:
|
|
216
|
+
deviceType: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance',
|
|
213
217
|
/**
|
|
214
218
|
* 设备像素比
|
|
215
219
|
*/
|
|
216
220
|
devicePixelRatio: number,
|
|
217
221
|
/**
|
|
218
|
-
*
|
|
219
|
-
* - portrait: 竖屏
|
|
220
|
-
* - landscape: 横屏
|
|
222
|
+
* 设备方向。
|
|
221
223
|
* @type 'portrait' | 'landscape'
|
|
222
224
|
*/
|
|
223
|
-
deviceOrientation:
|
|
225
|
+
deviceOrientation: 'portrait' | 'landscape',
|
|
224
226
|
/**
|
|
225
227
|
* 程序设置的语言
|
|
226
228
|
*/
|
|
@@ -230,9 +232,9 @@ export type GetSystemInfoResult = {
|
|
|
230
232
|
*/
|
|
231
233
|
model: string,
|
|
232
234
|
/**
|
|
233
|
-
*
|
|
235
|
+
* 系统名称
|
|
234
236
|
*/
|
|
235
|
-
osName:
|
|
237
|
+
osName: 'ios' | 'android' | 'mac' | 'windows' | 'linux',
|
|
236
238
|
/**
|
|
237
239
|
* 操作系统版本。如 ios 版本,andriod 版本
|
|
238
240
|
*/
|
|
@@ -242,24 +244,25 @@ export type GetSystemInfoResult = {
|
|
|
242
244
|
*/
|
|
243
245
|
osLanguage: string,
|
|
244
246
|
/**
|
|
245
|
-
* 操作系统主题
|
|
247
|
+
* 操作系统主题
|
|
246
248
|
*
|
|
247
|
-
* @uniPlatform
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
249
|
+
* @uniPlatform
|
|
250
|
+
* {
|
|
251
|
+
* "app": {
|
|
252
|
+
* "android": {
|
|
253
|
+
* "osVer": "4.4",
|
|
254
|
+
* "uniVer": "√",
|
|
255
|
+
* "unixVer": "√"
|
|
256
|
+
* },
|
|
257
|
+
* "ios": {
|
|
258
|
+
* "osVer": "9.0",
|
|
259
|
+
* "uniVer": "√",
|
|
260
|
+
* "unixVer": "x"
|
|
261
|
+
* }
|
|
262
|
+
* }
|
|
260
263
|
* }
|
|
261
264
|
*/
|
|
262
|
-
osTheme
|
|
265
|
+
osTheme?: 'light' | 'dark' | null,
|
|
263
266
|
/**
|
|
264
267
|
* 设备像素比
|
|
265
268
|
*/
|
|
@@ -267,7 +270,7 @@ export type GetSystemInfoResult = {
|
|
|
267
270
|
/**
|
|
268
271
|
* 客户端平台
|
|
269
272
|
*/
|
|
270
|
-
platform:
|
|
273
|
+
platform: 'ios' | 'android' | 'mac' | 'windows' | 'linux',
|
|
271
274
|
/**
|
|
272
275
|
* 屏幕宽度
|
|
273
276
|
*/
|
|
@@ -295,23 +298,33 @@ export type GetSystemInfoResult = {
|
|
|
295
298
|
/**
|
|
296
299
|
* 用户标识。小程序端为空
|
|
297
300
|
*/
|
|
298
|
-
ua: string,
|
|
301
|
+
ua: string,
|
|
302
|
+
/**
|
|
303
|
+
* uni 编译器版本
|
|
304
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
305
|
+
*/
|
|
306
|
+
uniCompileVersion: string,
|
|
299
307
|
/**
|
|
300
308
|
* uni 编译器版本
|
|
301
309
|
*/
|
|
302
|
-
|
|
310
|
+
uniCompilerVersion: string,
|
|
303
311
|
/**
|
|
304
|
-
* uni-app
|
|
312
|
+
* uni-app 运行平台。
|
|
305
313
|
*/
|
|
306
|
-
uniPlatform:
|
|
314
|
+
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',
|
|
307
315
|
/**
|
|
308
316
|
* uni 运行时版本
|
|
309
317
|
*/
|
|
310
|
-
uniRuntimeVersion: string,
|
|
318
|
+
uniRuntimeVersion: string,
|
|
319
|
+
/**
|
|
320
|
+
* uni 编译器版本号
|
|
321
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
322
|
+
*/
|
|
323
|
+
uniCompileVersionCode: number,
|
|
311
324
|
/**
|
|
312
325
|
* uni 编译器版本号
|
|
313
326
|
*/
|
|
314
|
-
|
|
327
|
+
uniCompilerVersionCode: number,
|
|
315
328
|
/**
|
|
316
329
|
* uni 运行时版本号
|
|
317
330
|
*/
|
|
@@ -345,44 +358,26 @@ export type GetSystemInfoResult = {
|
|
|
345
358
|
* 可使用窗口的底部位置
|
|
346
359
|
*/
|
|
347
360
|
windowBottom: number,
|
|
348
|
-
/**
|
|
349
|
-
* oaid
|
|
350
|
-
*
|
|
351
|
-
* @uniPlatform {
|
|
352
|
-
* "app": {
|
|
353
|
-
* "android": {
|
|
354
|
-
* "osVer": "4.4",
|
|
355
|
-
* "uniVer": "√",
|
|
356
|
-
* "unixVer": "√"
|
|
357
|
-
* },
|
|
358
|
-
* "ios": {
|
|
359
|
-
* "osVer": "x",
|
|
360
|
-
* "uniVer": "x",
|
|
361
|
-
* "unixVer": "x"
|
|
362
|
-
* }
|
|
363
|
-
* }
|
|
364
|
-
* }
|
|
365
|
-
*/
|
|
366
|
-
oaid: string | null
|
|
367
361
|
/**
|
|
368
362
|
* Android 系统API库的版本。
|
|
369
363
|
*
|
|
370
|
-
* @uniPlatform
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
*
|
|
364
|
+
* @uniPlatform
|
|
365
|
+
* {
|
|
366
|
+
* "app": {
|
|
367
|
+
* "android": {
|
|
368
|
+
* "osVer": "4.4",
|
|
369
|
+
* "uniVer": "√",
|
|
370
|
+
* "unixVer": "√"
|
|
371
|
+
* },
|
|
372
|
+
* "ios": {
|
|
373
|
+
* "osVer": "x",
|
|
374
|
+
* "uniVer": "x",
|
|
375
|
+
* "unixVer": "x"
|
|
376
|
+
* }
|
|
377
|
+
* }
|
|
383
378
|
* }
|
|
384
379
|
*/
|
|
385
|
-
osAndroidAPILevel
|
|
380
|
+
osAndroidAPILevel?: number | null
|
|
386
381
|
};
|
|
387
382
|
export type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void;
|
|
388
383
|
type GetSystemInfoFail = UniError;
|
|
@@ -24,7 +24,7 @@ export type GetSystemSettingResult = {
|
|
|
24
24
|
/**
|
|
25
25
|
* 设备方向
|
|
26
26
|
*/
|
|
27
|
-
deviceOrientation :
|
|
27
|
+
deviceOrientation : 'portrait' | 'landscape',
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
|
|
@@ -38,20 +38,21 @@ export interface Uni {
|
|
|
38
38
|
* 获取系统设置
|
|
39
39
|
* @return {object}
|
|
40
40
|
* @tutorial https://uniapp.dcloud.net.cn/api/system/getsystemsetting.html
|
|
41
|
-
* @uniPlatform
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
* @uniPlatform
|
|
42
|
+
* {
|
|
43
|
+
* "app": {
|
|
44
|
+
* "android": {
|
|
45
|
+
* "osVer": "4.4",
|
|
46
|
+
* "uniVer": "√",
|
|
47
|
+
* "unixVer": "3.9+"
|
|
48
|
+
* },
|
|
49
|
+
* "ios": {
|
|
50
|
+
* "osVer": "9.0",
|
|
51
|
+
* "uniVer": "√",
|
|
52
|
+
* "unixVer": "x"
|
|
53
|
+
* }
|
|
54
|
+
* }
|
|
55
|
+
* }
|
|
55
56
|
* @example
|
|
56
57
|
```typescript
|
|
57
58
|
uni.getSystemSetting()
|