@dcloudio/uni-app-x 0.7.22 → 0.7.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +16 -16
  3. package/types/native/CanvasRenderingContext2D.d.ts +1697 -111
  4. package/types/native/IUniElement.d.ts +73 -4
  5. package/types/native/Path2D.d.ts +41 -13
  6. package/types/native/UniProvider.d.ts +17 -0
  7. package/types/native/UniVideoElement.d.ts +13 -5
  8. package/types/native/global.d.ts +18 -0
  9. package/types/uni/uts-plugin-api/global.d.ts +1 -1
  10. package/types/uni/uts-plugin-api/index.d.ts +1 -1
  11. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +14 -4
  12. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +2 -2
  13. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +1 -1
  14. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +2 -2
  15. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +78 -14
  16. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +9 -3
  17. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +56 -15
  18. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +191 -65
  19. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +3 -3
  20. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +7 -7
  21. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +614 -169
  22. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +12 -6
  23. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +6 -3
  24. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +249 -103
  25. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +9 -2
  26. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +49 -11
  27. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +33 -16
  28. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +80 -33
  29. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +63 -17
  30. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +307 -20
  31. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +213 -21
  32. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +554 -24
  33. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +22 -0
  34. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +10 -0
  35. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +120 -0
  36. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +28 -8
  37. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +766 -364
  38. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +14 -4
  39. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +0 -12
  40. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +0 -5
  41. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +0 -50
@@ -1,6 +1,10 @@
1
1
  // 本文件为自动构建生成
2
2
  import {
3
+ GetProviderFailImpl as GetProviderFailImplOrigin,
3
4
  GetProviderSuccess as GetProviderSuccessOrigin,
5
+ GetProviderSyncSuccess as GetProviderSyncSuccessOrigin,
6
+ GetProviderSync as GetProviderSyncOrigin,
7
+ GetProviderSyncOptions as GetProviderSyncOptionsOrigin,
4
8
  GetProviderSuccessCallback as GetProviderSuccessCallbackOrigin,
5
9
  GetProviderFail as GetProviderFailOrigin,
6
10
  GetProviderFailCallback as GetProviderFailCallbackOrigin,
@@ -8,14 +12,17 @@ import {
8
12
  GetProviderCompleteCallback as GetProviderCompleteCallbackOrigin,
9
13
  GetProviderOptions as GetProviderOptionsOrigin,
10
14
  GetProvider as GetProviderOrigin,
11
- GetProviderSync as GetProviderSyncOrigin,
12
- GetProviderObjectById as GetProviderObjectByIdOrigin,
13
- GetProviderObjectByIdOptions as GetProviderObjectByIdOptionsOrigin,
15
+ ProviderErrorCode as ProviderErrorCodeOrigin,
16
+ IGetProviderFail as IGetProviderFailOrigin,
14
17
  Uni as UniOrigin
15
18
  } from './interface'
16
19
 
17
20
  declare global {
21
+ type GetProviderFailImpl = GetProviderFailImplOrigin
18
22
  type GetProviderSuccess = GetProviderSuccessOrigin
23
+ type GetProviderSyncSuccess = GetProviderSyncSuccessOrigin
24
+ type GetProviderSync = GetProviderSyncOrigin
25
+ type GetProviderSyncOptions = GetProviderSyncOptionsOrigin
19
26
  type GetProviderSuccessCallback = GetProviderSuccessCallbackOrigin
20
27
  type GetProviderFail = GetProviderFailOrigin
21
28
  type GetProviderFailCallback = GetProviderFailCallbackOrigin
@@ -23,8 +30,7 @@ declare global {
23
30
  type GetProviderCompleteCallback = GetProviderCompleteCallbackOrigin
24
31
  type GetProviderOptions = GetProviderOptionsOrigin
25
32
  type GetProvider = GetProviderOrigin
26
- type GetProviderSync = GetProviderSyncOrigin
27
- type GetProviderObjectById = GetProviderObjectByIdOrigin
28
- type GetProviderObjectByIdOptions = GetProviderObjectByIdOptionsOrigin
33
+ type ProviderErrorCode = ProviderErrorCodeOrigin
34
+ type IGetProviderFail = IGetProviderFailOrigin
29
35
  interface Uni extends UniOrigin { }
30
36
  }
@@ -1,6 +1,10 @@
1
1
  // 本文件为自动构建生成
2
2
  export {
3
+ GetProviderFailImpl,
3
4
  GetProviderSuccess,
5
+ GetProviderSyncSuccess,
6
+ GetProviderSync,
7
+ GetProviderSyncOptions,
4
8
  GetProviderSuccessCallback,
5
9
  GetProviderFail,
6
10
  GetProviderFailCallback,
@@ -8,7 +12,6 @@ export {
8
12
  GetProviderCompleteCallback,
9
13
  GetProviderOptions,
10
14
  GetProvider,
11
- GetProviderSync,
12
- GetProviderObjectById,
13
- GetProviderObjectByIdOptions,
15
+ ProviderErrorCode,
16
+ IGetProviderFail,
14
17
  } from './interface'
@@ -1,9 +1,10 @@
1
+ import { GetProviderFailImpl as GetProviderFailImplement } from './unierror.uts'
2
+
3
+ export type GetProviderFailImpl = GetProviderFailImplement
1
4
  export type GetProviderSuccess = {
2
5
  /**
3
- * 服务类型
4
- * - payment: 支付
5
- * - location: 定位
6
- * @type 'payment'
6
+ * 服务类型:支付 (payment)
7
+ *
7
8
  * @uniPlatform {
8
9
  * "app": {
9
10
  * "android": {
@@ -12,7 +13,7 @@ export type GetProviderSuccess = {
12
13
  * "unixVer": "4.18"
13
14
  * },
14
15
  * "ios": {
15
- * "osVer": "9.0",
16
+ * "osVer": "12.0",
16
17
  * "uniVer": "√",
17
18
  * "unixVer": "4.18"
18
19
  * }
@@ -23,10 +24,31 @@ export type GetProviderSuccess = {
23
24
  * }
24
25
  * }
25
26
  */
26
- service : 'payment' | 'location',
27
+ service :
28
+ /**
29
+ * 支付 (alipay、wxpay)
30
+ * @uniPlatform {
31
+ * "app": {
32
+ * "android": {
33
+ * "osVer": "5.0",
34
+ * "uniVer": "√",
35
+ * "unixVer": "4.11"
36
+ * },
37
+ * "ios": {
38
+ * "osVer": "12.0",
39
+ * "uniVer": "√",
40
+ * "unixVer": "4.18"
41
+ * }
42
+ * },
43
+ * "web": {
44
+ * "uniVer": "x",
45
+ * "unixVer": "x"
46
+ * }
47
+ * }
48
+ */
49
+ 'payment',
27
50
  /**
28
51
  * 得到的服务供应商
29
- * @deprecated 从4.25版本后已弃用,请使用providerIds 代替
30
52
  * @type PlusShareShareService['id'][] | PlusPushClientInfo['id'][] | PlusOauthAuthService['id'][] | PlusPaymentPaymentChannel['id'][]
31
53
  * @uniPlatform {
32
54
  * "app": {
@@ -36,7 +58,7 @@ export type GetProviderSuccess = {
36
58
  * "unixVer": "4.18"
37
59
  * },
38
60
  * "ios": {
39
- * "osVer": "9.0",
61
+ * "osVer": "12.0",
40
62
  * "uniVer": "√",
41
63
  * "unixVer": "4.18"
42
64
  * }
@@ -49,8 +71,34 @@ export type GetProviderSuccess = {
49
71
  */
50
72
  provider : string[],
51
73
  /**
52
- * 得到的服务供应商
53
- * @type PlusShareShareService['id'][] | PlusPushClientInfo['id'][] | PlusOauthAuthService['id'][] | PlusPaymentPaymentChannel['id'][]
74
+ * 得到的服务供应商服务对象
75
+ * @uniPlatform {
76
+ * "app": {
77
+ * "android": {
78
+ * "osVer": "5.0",
79
+ * "uniVer": "√",
80
+ * "unixVer": "4.18"
81
+ * },
82
+ * "ios": {
83
+ * "osVer": "12.0",
84
+ * "uniVer": "√",
85
+ * "unixVer": "4.18"
86
+ * }
87
+ * },
88
+ * "web": {
89
+ * "uniVer": "x",
90
+ * "unixVer": "x"
91
+ * }
92
+ * }
93
+ */
94
+ providers : UniProvider[]
95
+
96
+ };
97
+
98
+ export type GetProviderSyncSuccess = {
99
+ /**
100
+ * 服务类型
101
+ *
54
102
  * @uniPlatform {
55
103
  * "app": {
56
104
  * "android": {
@@ -59,7 +107,7 @@ export type GetProviderSuccess = {
59
107
  * "unixVer": "4.25"
60
108
  * },
61
109
  * "ios": {
62
- * "osVer": "9.0",
110
+ * "osVer": "12.0",
63
111
  * "uniVer": "√",
64
112
  * "unixVer": "4.25"
65
113
  * }
@@ -70,6 +118,88 @@ export type GetProviderSuccess = {
70
118
  * }
71
119
  * }
72
120
  */
121
+ service :
122
+ /**
123
+ * 支付 (alipay、wxpay)
124
+ * @uniPlatform {
125
+ * "app": {
126
+ * "android": {
127
+ * "osVer": "5.0",
128
+ * "uniVer": "x",
129
+ * "unixVer": "4.25"
130
+ * },
131
+ * "ios": {
132
+ * "osVer": "12.0",
133
+ * "uniVer": "x",
134
+ * "unixVer": "4.25"
135
+ * },
136
+ * "harmony": {
137
+ * "osVer": "3.0",
138
+ * "uniVer": "4.25",
139
+ * "unixVer": "x"
140
+ * }
141
+ * },
142
+ * "web": {
143
+ * "uniVer": "x",
144
+ * "unixVer": "x"
145
+ * }
146
+ * }
147
+ */
148
+ 'payment' |
149
+ /**
150
+ * 定位 (system、tencent)
151
+ * @uniPlatform {
152
+ * "app": {
153
+ * "android": {
154
+ * "osVer": "5.0",
155
+ * "uniVer": "x",
156
+ * "unixVer": "4.25"
157
+ * },
158
+ * "ios": {
159
+ * "osVer": "12.0",
160
+ * "uniVer": "x",
161
+ * "unixVer": "4.25"
162
+ * },
163
+ * "harmony": {
164
+ * "osVer": "3.0",
165
+ * "uniVer": "4.25",
166
+ * "unixVer": "x"
167
+ * }
168
+ * },
169
+ * "web": {
170
+ * "uniVer": "x",
171
+ * "unixVer": "x"
172
+ * }
173
+ * }
174
+ */
175
+ 'location',
176
+ /**
177
+ * 得到的服务供应商
178
+ * @type PlusShareShareService['id'][] | PlusPushClientInfo['id'][] | PlusOauthAuthService['id'][] | PlusPaymentPaymentChannel['id'][]
179
+ * @uniPlatform {
180
+ * "app": {
181
+ * "android": {
182
+ * "osVer": "5.0",
183
+ * "uniVer": "x",
184
+ * "unixVer": "4.25"
185
+ * },
186
+ * "ios": {
187
+ * "osVer": "12.0",
188
+ * "uniVer": "x",
189
+ * "unixVer": "4.25"
190
+ * },
191
+ * "harmony": {
192
+ * "osVer": "3.0",
193
+ * "uniVer": "4.25",
194
+ * "unixVer": "x"
195
+ * }
196
+ * },
197
+ * "web": {
198
+ * "uniVer": "x",
199
+ * "unixVer": "x"
200
+ * }
201
+ * }
202
+ */
73
203
  providerIds : string[],
74
204
  /**
75
205
  * 得到的服务供应商服务对象
@@ -77,11 +207,43 @@ export type GetProviderSuccess = {
77
207
  * "app": {
78
208
  * "android": {
79
209
  * "osVer": "5.0",
210
+ * "uniVer": "x",
211
+ * "unixVer": "4.25"
212
+ * },
213
+ * "ios": {
214
+ * "osVer": "12.0",
215
+ * "uniVer": "x",
216
+ * "unixVer": "4.25"
217
+ * },
218
+ * "harmony": {
219
+ * "osVer": "3.0",
220
+ * "uniVer": "4.25",
221
+ * "unixVer": "x"
222
+ * }
223
+ * },
224
+ * "web": {
225
+ * "uniVer": "x",
226
+ * "unixVer": "x"
227
+ * }
228
+ * }
229
+ */
230
+ providerObjects : UniProvider[]
231
+
232
+ };
233
+ export type GetProviderSync = (options : GetProviderSyncOptions) => GetProviderSyncSuccess;
234
+ export type GetProviderSyncOptions = {
235
+ /**
236
+ * 服务类型
237
+ *
238
+ * @uniPlatform {
239
+ * "app": {
240
+ * "android": {
241
+ * "osVer": "5.0",
80
242
  * "uniVer": "√",
81
243
  * "unixVer": "4.25"
82
244
  * },
83
245
  * "ios": {
84
- * "osVer": "9.0",
246
+ * "osVer": "12.0",
85
247
  * "uniVer": "√",
86
248
  * "unixVer": "4.25"
87
249
  * }
@@ -92,21 +254,20 @@ export type GetProviderSuccess = {
92
254
  * }
93
255
  * }
94
256
  */
95
- providerObjects : UniProvider[]
257
+ service :
96
258
  /**
97
- * 得到的服务供应商服务对象
98
- * @deprecated 从4.25版本后已弃用,请使用providerObjects 代替
259
+ * 支付 (alipay、wxpay)
99
260
  * @uniPlatform {
100
261
  * "app": {
101
262
  * "android": {
102
263
  * "osVer": "5.0",
103
264
  * "uniVer": "√",
104
- * "unixVer": "4.18"
265
+ * "unixVer": "4.25"
105
266
  * },
106
267
  * "ios": {
107
- * "osVer": "9.0",
268
+ * "osVer": "12.0",
108
269
  * "uniVer": "√",
109
- * "unixVer": "4.18"
270
+ * "unixVer": "4.25"
110
271
  * }
111
272
  * },
112
273
  * "web": {
@@ -115,32 +276,20 @@ export type GetProviderSuccess = {
115
276
  * }
116
277
  * }
117
278
  */
118
- providers : UniProvider[]
119
-
120
- };
121
- export type GetProviderSuccessCallback = (result : GetProviderSuccess) => void;
122
- export type GetProviderFail = UniError;
123
- export type GetProviderFailCallback = (result : GetProviderFail) => void;
124
- export type GetProviderComplete = any;
125
- export type GetProviderCompleteCallback = (result : GetProviderComplete) => void;
126
- export type GetProviderOptions = {
279
+ 'payment' |
127
280
  /**
128
- * 服务类型,可取值“payment”、“location”
129
- * - payment: 支付 (alipay、wxpay)
130
- * - location: 定位 (system、tencent)
131
- * @type 'payment' | 'location''
132
- * @type 'payment'
281
+ * 定位 (system、tencent)
133
282
  * @uniPlatform {
134
283
  * "app": {
135
284
  * "android": {
136
285
  * "osVer": "5.0",
137
286
  * "uniVer": "√",
138
- * "unixVer": "4.18"
287
+ * "unixVer": "4.25"
139
288
  * },
140
289
  * "ios": {
141
- * "osVer": "9.0",
290
+ * "osVer": "12.0",
142
291
  * "uniVer": "√",
143
- * "unixVer": "4.18"
292
+ * "unixVer": "4.25"
144
293
  * }
145
294
  * },
146
295
  * "web": {
@@ -149,9 +298,18 @@ export type GetProviderOptions = {
149
298
  * }
150
299
  * }
151
300
  */
152
- service : 'payment' | 'location',
301
+ 'location',
302
+ };
303
+
304
+ export type GetProviderSuccessCallback = (result : GetProviderSuccess) => void;
305
+ export type GetProviderFail = IGetProviderFail;
306
+ export type GetProviderFailCallback = (result : GetProviderFail) => void;
307
+ export type GetProviderComplete = any;
308
+ export type GetProviderCompleteCallback = (result : GetProviderComplete) => void;
309
+ export type GetProviderOptions = {
153
310
  /**
154
- * 接口调用成功的回调
311
+ * 服务类型:支付 (payment)
312
+ *
155
313
  * @uniPlatform {
156
314
  * "app": {
157
315
  * "android": {
@@ -160,7 +318,7 @@ export type GetProviderOptions = {
160
318
  * "unixVer": "4.18"
161
319
  * },
162
320
  * "ios": {
163
- * "osVer": "9.0",
321
+ * "osVer": "12.0",
164
322
  * "uniVer": "√",
165
323
  * "unixVer": "4.18"
166
324
  * }
@@ -171,18 +329,18 @@ export type GetProviderOptions = {
171
329
  * }
172
330
  * }
173
331
  */
174
- success ?: GetProviderSuccessCallback | null,
332
+ service :
175
333
  /**
176
- * 接口调用失败的回调函数
334
+ * 支付 (alipay、wxpay)
177
335
  * @uniPlatform {
178
336
  * "app": {
179
337
  * "android": {
180
338
  * "osVer": "5.0",
181
339
  * "uniVer": "√",
182
- * "unixVer": "4.18"
340
+ * "unixVer": "4.11"
183
341
  * },
184
342
  * "ios": {
185
- * "osVer": "9.0",
343
+ * "osVer": "12.0",
186
344
  * "uniVer": "√",
187
345
  * "unixVer": "4.18"
188
346
  * }
@@ -193,9 +351,9 @@ export type GetProviderOptions = {
193
351
  * }
194
352
  * }
195
353
  */
196
- fail ?: GetProviderFailCallback | null,
354
+ 'payment',
197
355
  /**
198
- * 接口调用结束的回调函数(调用成功、失败都会执行)
356
+ * 接口调用成功的回调
199
357
  * @uniPlatform {
200
358
  * "app": {
201
359
  * "android": {
@@ -204,7 +362,7 @@ export type GetProviderOptions = {
204
362
  * "unixVer": "4.18"
205
363
  * },
206
364
  * "ios": {
207
- * "osVer": "9.0",
365
+ * "osVer": "12.0",
208
366
  * "uniVer": "√",
209
367
  * "unixVer": "4.18"
210
368
  * }
@@ -214,33 +372,21 @@ export type GetProviderOptions = {
214
372
  * "unixVer": "x"
215
373
  * }
216
374
  * }
217
- */
218
- complete ?: GetProviderCompleteCallback | null
219
- };
220
-
221
- export type GetProvider = (options : GetProviderOptions) => void;
222
-
223
- export type GetProviderSync = (options : GetProviderOptions) => GetProviderSuccess;
224
-
225
- export type GetProviderObjectById = (options : GetProviderObjectByIdOptions) => UniProvider | null;
226
-
227
- export type GetProviderObjectByIdOptions = {
375
+ */
376
+ success ?: GetProviderSuccessCallback | null,
228
377
  /**
229
- * 服务类型,可取值“payment”、“location”
230
- * - payment: 支付 (alipay、wxpay)
231
- * - location: 定位 (system、tencent)
232
- * @type 'payment' | 'location''
378
+ * 接口调用失败的回调函数
233
379
  * @uniPlatform {
234
380
  * "app": {
235
381
  * "android": {
236
382
  * "osVer": "5.0",
237
383
  * "uniVer": "√",
238
- * "unixVer": "4.25"
384
+ * "unixVer": "4.18"
239
385
  * },
240
386
  * "ios": {
241
- * "osVer": "9.0",
387
+ * "osVer": "12.0",
242
388
  * "uniVer": "√",
243
- * "unixVer": "4.25"
389
+ * "unixVer": "4.18"
244
390
  * }
245
391
  * },
246
392
  * "web": {
@@ -249,21 +395,20 @@ export type GetProviderObjectByIdOptions = {
249
395
  * }
250
396
  * }
251
397
  */
252
- service : 'payment' | 'location',
253
-
398
+ fail ?: GetProviderFailCallback | null,
254
399
  /**
255
- * 服务供应商
400
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
256
401
  * @uniPlatform {
257
402
  * "app": {
258
403
  * "android": {
259
404
  * "osVer": "5.0",
260
405
  * "uniVer": "√",
261
- * "unixVer": "4.25"
406
+ * "unixVer": "4.18"
262
407
  * },
263
408
  * "ios": {
264
- * "osVer": "9.0",
409
+ * "osVer": "12.0",
265
410
  * "uniVer": "√",
266
- * "unixVer": "4.25"
411
+ * "unixVer": "4.18"
267
412
  * }
268
413
  * },
269
414
  * "web": {
@@ -271,18 +416,22 @@ export type GetProviderObjectByIdOptions = {
271
416
  * "unixVer": "x"
272
417
  * }
273
418
  * }
274
- */
275
- provider : string
419
+ */
420
+ complete ?: GetProviderCompleteCallback | null
276
421
  };
277
422
 
423
+ export type GetProvider = (options : GetProviderOptions) => void;
424
+
425
+
278
426
  export interface Uni {
279
427
  /**
280
428
  * 获取服务供应商
429
+ * @deprecated 已废弃,4.25及以后版本请使用getProviderSync()方法代替
281
430
  * @param {GetProviderOptions} options
282
431
  * @return {void}
283
432
  * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/provider.html#getprovider
284
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html
285
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html
433
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/provider.html
434
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/provider.html
286
435
  * @uniPlatform {
287
436
  * "app": {
288
437
  * "android": {
@@ -291,7 +440,7 @@ export interface Uni {
291
440
  * "unixVer": "4.11"
292
441
  * },
293
442
  * "ios": {
294
- * "osVer": "9.0",
443
+ * "osVer": "12.0",
295
444
  * "uniVer": "√",
296
445
  * "unixVer": "4.18"
297
446
  * },
@@ -309,31 +458,28 @@ export interface Uni {
309
458
  */
310
459
  getProvider(options : GetProviderOptions) : void;
311
460
  /**
312
- * 获取服务供应商 getProvider 的同步方法
313
- * @deprecated 已废弃(仅为了兼容uni1的规范)
314
- *
315
- * @param {GetProviderOptions} options
316
- * @return {GetProviderSuccess} 返回结果
461
+ * getProvider的同步方法
462
+ * @param {GetProviderSyncOptions} options
317
463
  * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/provider.html#getprovider
318
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html
319
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html
464
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/provider.html#getprovidersync
465
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/provider.html#getprovidersync
320
466
  * @uniPlatform {
321
467
  * "app": {
322
468
  * "android": {
323
469
  * "osVer": "5.0",
324
- * "uniVer": "",
470
+ * "uniVer": "x",
325
471
  * "unixVer": "4.25"
326
472
  * },
327
473
  * "ios": {
328
- * "osVer": "9.0",
329
- * "uniVer": "",
474
+ * "osVer": "12.0",
475
+ * "uniVer": "x",
330
476
  * "unixVer": "4.25"
331
477
  * },
332
- * "harmony": {
333
- * "osVer": "x",
334
- * "uniVer": "x",
335
- * "unixVer": "x"
336
- * }
478
+ * "harmony": {
479
+ * "osVer": "3.0",
480
+ * "uniVer": "4.25",
481
+ * "unixVer": "x"
482
+ * }
337
483
  * },
338
484
  * "web": {
339
485
  * "uniVer": "x",
@@ -341,12 +487,15 @@ export interface Uni {
341
487
  * }
342
488
  * }
343
489
  */
344
- getProviderSync(options : GetProviderOptions) : GetProviderSuccess;
490
+ getProviderSync(options : GetProviderSyncOptions) : GetProviderSyncSuccess;
491
+ }
492
+ /**
493
+ * 错误码:
494
+ * 110600:服务类型参数无效。
495
+ */
496
+ export type ProviderErrorCode =
345
497
  /**
346
- * 获取服务供应商对象
347
- * @param {GetProviderObjectOptions} options
348
- * @return {UniProvider | null} provider对象
349
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html
498
+ * 服务类型参数无效。
350
499
  * @uniPlatform {
351
500
  * "app": {
352
501
  * "android": {
@@ -355,15 +504,10 @@ export interface Uni {
355
504
  * "unixVer": "4.25"
356
505
  * },
357
506
  * "ios": {
358
- * "osVer": "9.0",
507
+ * "osVer": "12.0",
359
508
  * "uniVer": "√",
360
509
  * "unixVer": "4.25"
361
- * },
362
- * "harmony": {
363
- * "osVer": "x",
364
- * "uniVer": "x",
365
- * "unixVer": "x"
366
- * }
510
+ * }
367
511
  * },
368
512
  * "web": {
369
513
  * "uniVer": "x",
@@ -371,5 +515,7 @@ export interface Uni {
371
515
  * }
372
516
  * }
373
517
  */
374
- getProviderObjectById(options : GetProviderObjectByIdOptions) : UniProvider | null;
375
- }
518
+ 110600;
519
+ export interface IGetProviderFail extends IUniError {
520
+ errCode : ProviderErrorCode
521
+ };
@@ -853,7 +853,6 @@ export type GetSystemInfoResult = {
853
853
  devicePixelRatio: number,
854
854
  /**
855
855
  * 设备方向。
856
- * @type 'portrait' | 'landscape'
857
856
  *
858
857
  * @uniPlatform
859
858
  * {
@@ -880,7 +879,15 @@ export type GetSystemInfoResult = {
880
879
  * }
881
880
  * }
882
881
  */
883
- deviceOrientation: 'portrait' | 'landscape',
882
+ deviceOrientation:
883
+ /**
884
+ * 纵向
885
+ */
886
+ 'portrait' |
887
+ /**
888
+ * 横向
889
+ */
890
+ 'landscape',
884
891
  /**
885
892
  * 程序设置的语言
886
893
  * @deprecated 已废弃,仅为了向下兼容保留