@dcloudio/uni-app-x 0.7.56 → 0.7.57

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 (65) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +6 -6
  3. package/types/native/CanvasRenderingContext2D.d.ts +6 -1
  4. package/types/native/IUniElement.d.ts +4 -3
  5. package/types/native/IUniNativeViewElement.d.ts +140 -11
  6. package/types/native/Path2D.d.ts +75 -21
  7. package/types/native/UniCustomElement.d.ts +24 -0
  8. package/types/native/UniFormControlElement.d.ts +1 -1
  9. package/types/native/UniPage.d.ts +77 -38
  10. package/types/native/global.d.ts +4 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +65 -9
  13. package/types/uni/uni-camera.d.ts +12 -1
  14. package/types/uni/uts-plugin-api/global.d.ts +4 -4
  15. package/types/uni/uts-plugin-api/index.d.ts +4 -4
  16. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1 -1
  17. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +2 -2
  18. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  19. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +76 -4
  20. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +43 -1
  21. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +60 -8
  22. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +76 -1
  23. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +2 -2
  24. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +2 -2
  25. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +132 -38
  26. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +43 -1
  27. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  28. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +11 -0
  29. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +505 -38
  30. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +0 -4
  31. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +26 -0
  32. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +12 -0
  33. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1770 -0
  34. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/global.d.ts +10 -0
  35. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/index.d.ts +5 -0
  36. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/interface.d.ts +9 -0
  37. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/global.d.ts +10 -0
  38. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
  39. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/interface.d.ts +9 -0
  40. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1804 -1762
  41. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +49 -5
  42. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +41 -11
  43. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +0 -2
  44. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +0 -1
  45. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +0 -76
  46. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1 -1
  47. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +16 -0
  48. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +7 -0
  49. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +1349 -0
  50. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +20 -20
  51. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2 -2
  52. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +51 -22
  53. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1 -1
  54. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +15 -0
  55. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +379 -18
  56. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +4 -0
  57. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +2 -0
  58. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +225 -174
  59. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +5 -0
  60. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +2 -2
  61. package/types/uni-cloud/interface.d.ts +13 -13
  62. package/types/vue/PickerChangeEvent.d.ts +32 -0
  63. package/types/vue/PickerColumnChangeEvent.d.ts +33 -0
  64. package/types/vue/global.d.ts +40 -0
  65. package/types/vue/index.d.ts +2 -0
@@ -1,6 +1,54 @@
1
-
2
-
3
- export type CameraContextCameraFrameListenerStartOptions = {
1
+ export type CameraErrorCode =
2
+ /**
3
+ * 相机权限未授权
4
+ */
5
+ 2003002 |
6
+ /**
7
+ * 拍照失败
8
+ */
9
+ 2003003 |
10
+ /**
11
+ * 相机不可用
12
+ */
13
+ 2003004 |
14
+ /**
15
+ * 相机正在使用中
16
+ */
17
+ 2003005 |
18
+ /**
19
+ * 相机初始化失败
20
+ */
21
+ 2003006 |
22
+ /**
23
+ * 录制的视频地址不存在
24
+ */
25
+ 2003007 |
26
+ /**
27
+ * 录制失败
28
+ */
29
+ 2003008 |
30
+ /**
31
+ * app进入后台,摄像头终止
32
+ */
33
+ 2003009 |
34
+ /**
35
+ * 相机内部错误
36
+ */
37
+ 2003100 |
38
+ /**
39
+ * 录制视频的视频压缩失败
40
+ */
41
+ 2003101;
42
+
43
+
44
+ /**
45
+ * CameraContext API调用失败
46
+ */
47
+ export interface CameraContextFail extends IUniError {
48
+ errCode : CameraErrorCode
49
+ };
50
+
51
+ export type CameraContextCameraFrameListenerStartOptions = {
4
52
  /**
5
53
  * 接口调用成功的回调函数
6
54
  * @defaultValue null
@@ -9,36 +57,36 @@ export type CameraContextCameraFrameListenerStartOptions = {
9
57
  * "android": {
10
58
  * "osVer": "4.4",
11
59
  * "uniVer": "x",
12
- * "unixVer": "4.57"
60
+ * "unixVer": "4.61"
13
61
  * },
14
62
  * "ios": {
15
63
  * "osVer": "12.0",
16
64
  * "uniVer": "x",
17
- * "unixVer": "4.57"
65
+ * "unixVer": "4.61"
18
66
  * },
19
67
  * },
20
68
  * }
21
- */
22
- success ?: ((result : any) => void) | null;
69
+ */
70
+ success ?: ((result : any) => void) | null;
23
71
  /**
24
- * 接口调用失败的回调函数
72
+ * 接口调用失败的回调函数
25
73
  * @defaultValue null
26
74
  * @uniPlatform {
27
75
  * "app": {
28
76
  * "android": {
29
77
  * "osVer": "4.4",
30
78
  * "uniVer": "x",
31
- * "unixVer": "4.57"
79
+ * "unixVer": "4.61"
32
80
  * },
33
81
  * "ios": {
34
82
  * "osVer": "12.0",
35
83
  * "uniVer": "x",
36
- * "unixVer": "4.57"
84
+ * "unixVer": "4.61"
37
85
  * },
38
86
  * },
39
87
  * }
40
- */
41
- fail ?: ((result : any) => void) | null;
88
+ */
89
+ fail ?: ((result : any) => void) | null;
42
90
  /**
43
91
  * 接口调用结束的回调函数(调用成功、失败都会执行)
44
92
  * @defaultValue null
@@ -47,20 +95,20 @@ export type CameraContextCameraFrameListenerStartOptions = {
47
95
  * "android": {
48
96
  * "osVer": "4.4",
49
97
  * "uniVer": "x",
50
- * "unixVer": "4.57"
98
+ * "unixVer": "4.61"
51
99
  * },
52
100
  * "ios": {
53
101
  * "osVer": "12.0",
54
102
  * "uniVer": "x",
55
- * "unixVer": "4.57"
103
+ * "unixVer": "4.61"
56
104
  * },
57
105
  * },
58
106
  * }
59
- */
60
- complete ?: ((result : any) => void) | null;
61
- }
62
-
63
- export type CameraContextCameraFrameListenerStopOptions = {
107
+ */
108
+ complete ?: ((result : any) => void) | null;
109
+ }
110
+
111
+ export type CameraContextCameraFrameListenerStopOptions = {
64
112
  /**
65
113
  * 接口调用成功的回调函数
66
114
  * @defaultValue null
@@ -69,17 +117,17 @@ export type CameraContextCameraFrameListenerStopOptions = {
69
117
  * "android": {
70
118
  * "osVer": "4.4",
71
119
  * "uniVer": "x",
72
- * "unixVer": "4.57"
120
+ * "unixVer": "4.61"
73
121
  * },
74
122
  * "ios": {
75
123
  * "osVer": "12.0",
76
124
  * "uniVer": "x",
77
- * "unixVer": "4.57"
125
+ * "unixVer": "4.61"
78
126
  * },
79
127
  * },
80
128
  * }
81
- */
82
- success ?: ((result : any) => void) | null;
129
+ */
130
+ success ?: ((result : any) => void) | null;
83
131
  /**
84
132
  * 接口调用失败的回调函数
85
133
  * @defaultValue null
@@ -88,17 +136,17 @@ export type CameraContextCameraFrameListenerStopOptions = {
88
136
  * "android": {
89
137
  * "osVer": "4.4",
90
138
  * "uniVer": "x",
91
- * "unixVer": "4.57"
139
+ * "unixVer": "4.61"
92
140
  * },
93
141
  * "ios": {
94
142
  * "osVer": "12.0",
95
143
  * "uniVer": "x",
96
- * "unixVer": "4.57"
144
+ * "unixVer": "4.61"
97
145
  * },
98
146
  * },
99
147
  * }
100
- */
101
- fail ?: ((result : any) => void) | null;
148
+ */
149
+ fail ?: ((result : any) => void) | null;
102
150
  /**
103
151
  * 接口调用结束的回调函数(调用成功、失败都会执行)
104
152
  * @defaultValue null
@@ -107,39 +155,39 @@ export type CameraContextCameraFrameListenerStopOptions = {
107
155
  * "android": {
108
156
  * "osVer": "4.4",
109
157
  * "uniVer": "x",
110
- * "unixVer": "4.57"
158
+ * "unixVer": "4.61"
111
159
  * },
112
160
  * "ios": {
113
161
  * "osVer": "12.0",
114
162
  * "uniVer": "x",
115
- * "unixVer": "4.57"
163
+ * "unixVer": "4.61"
116
164
  * },
117
165
  * },
118
166
  * }
119
- */
120
- complete ?: ((result : any) => void) | null;
121
- }
122
-
123
- export interface CameraContextCameraFrameListener {
124
- /**
167
+ */
168
+ complete ?: ((result : any) => void) | null;
169
+ }
170
+
171
+ export interface CameraContextCameraFrameListener {
172
+ /**
125
173
  * 开始监听帧数据
126
174
  * @uniPlatform {
127
175
  * "app": {
128
176
  * "android": {
129
177
  * "osVer": "4.4",
130
178
  * "uniVer": "x",
131
- * "unixVer": "4.57"
179
+ * "unixVer": "4.61"
132
180
  * },
133
181
  * "ios": {
134
182
  * "osVer": "12.0",
135
183
  * "uniVer": "x",
136
- * "unixVer": "4.57"
184
+ * "unixVer": "4.61"
137
185
  * },
138
186
  * },
139
- * }
140
- */
141
- start(options : CameraContextCameraFrameListenerStartOptions) : void;
142
- /**
187
+ * }
188
+ */
189
+ start(options : CameraContextCameraFrameListenerStartOptions) : void;
190
+ /**
143
191
  * 停止监听帧数据
144
192
  *
145
193
  * @uniPlatform {
@@ -147,21 +195,21 @@ export interface CameraContextCameraFrameListener {
147
195
  * "android": {
148
196
  * "osVer": "4.4",
149
197
  * "uniVer": "x",
150
- * "unixVer": "4.57"
198
+ * "unixVer": "4.61"
151
199
  * },
152
200
  * "ios": {
153
201
  * "osVer": "12.0",
154
202
  * "uniVer": "x",
155
- * "unixVer": "4.57"
203
+ * "unixVer": "4.61"
156
204
  * },
157
205
  * },
158
- * }
159
- */
160
- stop(options : CameraContextCameraFrameListenerStopOptions) : void;
161
- }
162
-
163
- export type CameraContextOnCameraFrame = {
164
- /**
206
+ * }
207
+ */
208
+ stop(options : CameraContextCameraFrameListenerStopOptions) : void;
209
+ }
210
+
211
+ export type CameraContextOnCameraFrame = {
212
+ /**
165
213
  * 图像数据矩形的宽度
166
214
  *
167
215
  * @uniPlatform {
@@ -169,18 +217,18 @@ export type CameraContextOnCameraFrame = {
169
217
  * "android": {
170
218
  * "osVer": "4.4",
171
219
  * "uniVer": "x",
172
- * "unixVer": "4.57"
220
+ * "unixVer": "4.61"
173
221
  * },
174
222
  * "ios": {
175
223
  * "osVer": "12.0",
176
224
  * "uniVer": "x",
177
- * "unixVer": "4.57"
225
+ * "unixVer": "4.61"
178
226
  * },
179
227
  * },
180
- * }
181
- */
182
- width ?: number | null;
183
- /**
228
+ * }
229
+ */
230
+ width ?: number | null;
231
+ /**
184
232
  * 图像数据矩形的高度
185
233
  *
186
234
  * @uniPlatform {
@@ -188,18 +236,18 @@ export type CameraContextOnCameraFrame = {
188
236
  * "android": {
189
237
  * "osVer": "4.4",
190
238
  * "uniVer": "x",
191
- * "unixVer": "4.57"
239
+ * "unixVer": "4.61"
192
240
  * },
193
241
  * "ios": {
194
242
  * "osVer": "12.0",
195
243
  * "uniVer": "x",
196
- * "unixVer": "4.57"
244
+ * "unixVer": "4.61"
197
245
  * },
198
246
  * },
199
- * }
200
- */
201
- height ?: number | null;
202
- /**
247
+ * }
248
+ */
249
+ height ?: number | null;
250
+ /**
203
251
  * 图像像素点数据,一维数组,每四项表示一个像素点的 rgba
204
252
  *
205
253
  * @uniPlatform {
@@ -207,39 +255,39 @@ export type CameraContextOnCameraFrame = {
207
255
  * "android": {
208
256
  * "osVer": "4.4",
209
257
  * "uniVer": "x",
210
- * "unixVer": "4.57"
258
+ * "unixVer": "4.61"
211
259
  * },
212
260
  * "ios": {
213
261
  * "osVer": "12.0",
214
262
  * "uniVer": "x",
215
- * "unixVer": "4.57"
263
+ * "unixVer": "4.61"
216
264
  * },
217
265
  * },
218
- * }
219
- */
220
- data ?: ArrayBuffer | null
221
- }
222
-
223
- export type CameraContextSetZoomOptions = {
224
- /**
225
- * 缩放级别,范围[1, maxZoom]。zoom 可取小数,精确到小数后一位。maxZoom 可在 initdone 返回值中获取。
266
+ * }
267
+ */
268
+ data ?: ArrayBuffer | null
269
+ }
270
+
271
+ export type CameraContextSetZoomOptions = {
272
+ /**
273
+ * 缩放级别,范围[1, maxZoom]。zoom 可取小数,精确到小数后一位。maxZoom 可在 initdone 返回值中获取。
226
274
  * @uniPlatform {
227
275
  * "app": {
228
276
  * "android": {
229
277
  * "osVer": "4.4",
230
278
  * "uniVer": "x",
231
- * "unixVer": "4.57"
279
+ * "unixVer": "4.61"
232
280
  * },
233
281
  * "ios": {
234
282
  * "osVer": "12.0",
235
283
  * "uniVer": "x",
236
- * "unixVer": "4.57"
284
+ * "unixVer": "4.61"
237
285
  * },
238
286
  * },
239
287
  * }
240
- */
241
- zoom : number;
242
- /**
288
+ */
289
+ zoom : number;
290
+ /**
243
291
  * 接口调用成功的回调函数
244
292
  *
245
293
  * @defaultValue null
@@ -248,18 +296,18 @@ export type CameraContextSetZoomOptions = {
248
296
  * "android": {
249
297
  * "osVer": "4.4",
250
298
  * "uniVer": "x",
251
- * "unixVer": "4.57"
299
+ * "unixVer": "4.61"
252
300
  * },
253
301
  * "ios": {
254
302
  * "osVer": "12.0",
255
303
  * "uniVer": "x",
256
- * "unixVer": "4.57"
304
+ * "unixVer": "4.61"
257
305
  * },
258
306
  * },
259
- * }
260
- */
261
- success ?: ((result : any) => void) | null;
262
- /**
307
+ * }
308
+ */
309
+ success ?: ((result : any) => void) | null;
310
+ /**
263
311
  * 接口调用失败的回调函数
264
312
  *
265
313
  * @defaultValue null
@@ -268,60 +316,61 @@ export type CameraContextSetZoomOptions = {
268
316
  * "android": {
269
317
  * "osVer": "4.4",
270
318
  * "uniVer": "x",
271
- * "unixVer": "4.57"
319
+ * "unixVer": "4.61"
272
320
  * },
273
321
  * "ios": {
274
322
  * "osVer": "12.0",
275
323
  * "uniVer": "x",
276
- * "unixVer": "4.57"
324
+ * "unixVer": "4.61"
277
325
  * },
278
326
  * },
279
- * }
280
- */
281
- fail ?: ((result : any) => void) | null;
282
- /**
283
- * 接口调用结束的回调函数(调用成功、失败都会执行)
327
+ * }
328
+ */
329
+ fail ?: ((result : any) => void) | null;
330
+ /**
331
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
284
332
  * @defaultValue null
285
333
  * @uniPlatform {
286
334
  * "app": {
287
335
  * "android": {
288
336
  * "osVer": "4.4",
289
337
  * "uniVer": "x",
290
- * "unixVer": "4.57"
338
+ * "unixVer": "4.61"
291
339
  * },
292
340
  * "ios": {
293
341
  * "osVer": "12.0",
294
342
  * "uniVer": "x",
295
- * "unixVer": "4.57"
343
+ * "unixVer": "4.61"
296
344
  * },
297
345
  * },
298
- * }
299
- */
300
- complete ?: ((result : any) => void) | null;
346
+ * }
347
+ */
348
+ complete ?: ((result : any) => void) | null;
301
349
  }
302
350
 
303
351
  export type CameraContextTakePhotoResult = {
304
352
  /**
305
- * 照片文件的临时路径 (本地路径),安卓是jpg图片格式,ios是png
353
+ * 照片文件的临时路径 (本地路径),安卓是jpg图片格式,ios是png
354
+ * 照片会存放到uni-media目录下[文件系统](https://doc.dcloud.net.cn/uni-app-x/api/file-system-spec.html)
306
355
  *
307
356
  * @uniPlatform {
308
357
  * "app": {
309
358
  * "android": {
310
359
  * "osVer": "4.4",
311
360
  * "uniVer": "x",
312
- * "unixVer": "4.57"
361
+ * "unixVer": "4.61"
313
362
  * },
314
363
  * "ios": {
315
364
  * "osVer": "12.0",
316
365
  * "uniVer": "x",
317
- * "unixVer": "4.57"
366
+ * "unixVer": "4.61"
318
367
  * },
319
368
  * },
320
369
  * }
321
370
  */
322
371
  tempImagePath ?: string | null
323
- }
324
-
372
+ }
373
+
325
374
  export type CameraContextTakePhotoOptions = {
326
375
  /**
327
376
  * 成像质量
@@ -332,19 +381,19 @@ export type CameraContextTakePhotoOptions = {
332
381
  * "android": {
333
382
  * "osVer": "4.4",
334
383
  * "uniVer": "x",
335
- * "unixVer": "4.57"
384
+ * "unixVer": "4.61"
336
385
  * },
337
386
  * "ios": {
338
387
  * "osVer": "12.0",
339
388
  * "uniVer": "x",
340
- * "unixVer": "4.57"
389
+ * "unixVer": "4.61"
341
390
  * },
342
391
  * },
343
392
  * }
344
- */
393
+ */
345
394
  quality ?: "high" | "normal" | "low" | "original" | null;
346
395
  /**
347
- * 是否开启镜像
396
+ * 前置摄像头拍照时是否开启镜像
348
397
  *
349
398
  * @defaultValue true
350
399
  * @uniPlatform {
@@ -352,12 +401,12 @@ export type CameraContextTakePhotoOptions = {
352
401
  * "android": {
353
402
  * "osVer": "4.4",
354
403
  * "uniVer": "x",
355
- * "unixVer": "4.57"
404
+ * "unixVer": "4.61"
356
405
  * },
357
406
  * "ios": {
358
407
  * "osVer": "12.0",
359
408
  * "uniVer": "x",
360
- * "unixVer": "4.57"
409
+ * "unixVer": "4.61"
361
410
  * },
362
411
  * },
363
412
  * }
@@ -372,12 +421,12 @@ export type CameraContextTakePhotoOptions = {
372
421
  * "android": {
373
422
  * "osVer": "4.4",
374
423
  * "uniVer": "x",
375
- * "unixVer": "4.57"
424
+ * "unixVer": "4.61"
376
425
  * },
377
426
  * "ios": {
378
427
  * "osVer": "12.0",
379
428
  * "uniVer": "x",
380
- * "unixVer": "4.57"
429
+ * "unixVer": "4.61"
381
430
  * },
382
431
  * },
383
432
  * }
@@ -391,17 +440,17 @@ export type CameraContextTakePhotoOptions = {
391
440
  * "android": {
392
441
  * "osVer": "4.4",
393
442
  * "uniVer": "x",
394
- * "unixVer": "4.57"
443
+ * "unixVer": "4.61"
395
444
  * },
396
445
  * "ios": {
397
446
  * "osVer": "12.0",
398
447
  * "uniVer": "x",
399
- * "unixVer": "4.57"
448
+ * "unixVer": "4.61"
400
449
  * },
401
450
  * },
402
451
  * }
403
452
  */
404
- fail ?: ((result : any) => void) | null;
453
+ fail ?: ((error : CameraContextFail) => void) | null;
405
454
  /**
406
455
  * 接口调用结束的回调函数(调用成功、失败都会执行)
407
456
  * @defaultValue null
@@ -410,12 +459,12 @@ export type CameraContextTakePhotoOptions = {
410
459
  * "android": {
411
460
  * "osVer": "4.4",
412
461
  * "uniVer": "x",
413
- * "unixVer": "4.57"
462
+ * "unixVer": "4.61"
414
463
  * },
415
464
  * "ios": {
416
465
  * "osVer": "12.0",
417
466
  * "uniVer": "x",
418
- * "unixVer": "4.57"
467
+ * "unixVer": "4.61"
419
468
  * },
420
469
  * },
421
470
  * }
@@ -432,12 +481,12 @@ export type CameraContextStartRecordTimeoutResult = {
432
481
  * "android": {
433
482
  * "osVer": "4.4",
434
483
  * "uniVer": "x",
435
- * "unixVer": "4.57"
484
+ * "unixVer": "4.61"
436
485
  * },
437
486
  * "ios": {
438
487
  * "osVer": "12.0",
439
488
  * "uniVer": "x",
440
- * "unixVer": "4.57"
489
+ * "unixVer": "4.61"
441
490
  * },
442
491
  * },
443
492
  * }
@@ -451,12 +500,12 @@ export type CameraContextStartRecordTimeoutResult = {
451
500
  * "android": {
452
501
  * "osVer": "4.4",
453
502
  * "uniVer": "x",
454
- * "unixVer": "4.57"
503
+ * "unixVer": "4.61"
455
504
  * },
456
505
  * "ios": {
457
506
  * "osVer": "12.0",
458
507
  * "uniVer": "x",
459
- * "unixVer": "4.57"
508
+ * "unixVer": "4.61"
460
509
  * },
461
510
  * },
462
511
  * }
@@ -474,50 +523,50 @@ export type CameraContextStartRecordOptions = {
474
523
  * "android": {
475
524
  * "osVer": "4.4",
476
525
  * "uniVer": "x",
477
- * "unixVer": "4.57"
526
+ * "unixVer": "4.61"
478
527
  * },
479
528
  * "ios": {
480
529
  * "osVer": "12.0",
481
530
  * "uniVer": "x",
482
- * "unixVer": "4.57"
531
+ * "unixVer": "4.61"
483
532
  * },
484
533
  * },
485
534
  * }
486
535
  */
487
536
  timeoutCallback ?: ((result: any) => void) | null;
488
537
  /**
489
- * 录制时长上限,单位为秒,最长不能超过 5 分钟
538
+ * 录制时长上限,单位为秒
490
539
  * @defaultValue 30
491
540
  * @uniPlatform {
492
541
  * "app": {
493
542
  * "android": {
494
543
  * "osVer": "4.4",
495
544
  * "uniVer": "x",
496
- * "unixVer": "4.57"
545
+ * "unixVer": "4.61"
497
546
  * },
498
547
  * "ios": {
499
548
  * "osVer": "12.0",
500
549
  * "uniVer": "x",
501
- * "unixVer": "4.57"
550
+ * "unixVer": "4.61"
502
551
  * },
503
552
  * },
504
553
  * }
505
554
  */
506
555
  timeout ?: number | null;
507
556
  /**
508
- * 是否开启镜像
557
+ * 前置摄像头录制视频时是否开启镜像
509
558
  * @defaultValue true
510
559
  * @uniPlatform {
511
560
  * "app": {
512
561
  * "android": {
513
562
  * "osVer": "4.4",
514
563
  * "uniVer": "x",
515
- * "unixVer": "4.57"
564
+ * "unixVer": "4.61"
516
565
  * },
517
566
  * "ios": {
518
567
  * "osVer": "12.0",
519
568
  * "uniVer": "x",
520
- * "unixVer": "4.57"
569
+ * "unixVer": "4.61"
521
570
  * },
522
571
  * },
523
572
  * }
@@ -532,12 +581,12 @@ export type CameraContextStartRecordOptions = {
532
581
  * "android": {
533
582
  * "osVer": "4.4",
534
583
  * "uniVer": "x",
535
- * "unixVer": "4.57"
584
+ * "unixVer": "4.61"
536
585
  * },
537
586
  * "ios": {
538
587
  * "osVer": "12.0",
539
588
  * "uniVer": "x",
540
- * "unixVer": "4.57"
589
+ * "unixVer": "4.61"
541
590
  * },
542
591
  * },
543
592
  * }
@@ -551,17 +600,17 @@ export type CameraContextStartRecordOptions = {
551
600
  * "android": {
552
601
  * "osVer": "4.4",
553
602
  * "uniVer": "x",
554
- * "unixVer": "4.57"
603
+ * "unixVer": "4.61"
555
604
  * },
556
605
  * "ios": {
557
606
  * "osVer": "12.0",
558
607
  * "uniVer": "x",
559
- * "unixVer": "4.57"
608
+ * "unixVer": "4.61"
560
609
  * },
561
610
  * },
562
611
  * }
563
612
  */
564
- fail ?: ((result : any) => void) | null;
613
+ fail ?: ((error : CameraContextFail) => void) | null;
565
614
  /**
566
615
  * 接口调用结束的回调函数(调用成功、失败都会执行)
567
616
  * @defaultValue null
@@ -570,12 +619,12 @@ export type CameraContextStartRecordOptions = {
570
619
  * "android": {
571
620
  * "osVer": "4.4",
572
621
  * "uniVer": "x",
573
- * "unixVer": "4.57"
622
+ * "unixVer": "4.61"
574
623
  * },
575
624
  * "ios": {
576
625
  * "osVer": "12.0",
577
626
  * "uniVer": "x",
578
- * "unixVer": "4.57"
627
+ * "unixVer": "4.61"
579
628
  * },
580
629
  * },
581
630
  * }
@@ -586,18 +635,19 @@ export type CameraContextStartRecordOptions = {
586
635
  export type CameraContextStopRecordResult = {
587
636
  /**
588
637
  * 封面图片文件的临时路径 (本地路径)
638
+ * 图片会以jpg格式存放到uni-media目录下[文件系统](https://doc.dcloud.net.cn/uni-app-x/api/file-system-spec.html)
589
639
  *
590
640
  * @uniPlatform {
591
641
  * "app": {
592
642
  * "android": {
593
643
  * "osVer": "4.4",
594
644
  * "uniVer": "x",
595
- * "unixVer": "4.57"
645
+ * "unixVer": "4.61"
596
646
  * },
597
647
  * "ios": {
598
648
  * "osVer": "12.0",
599
649
  * "uniVer": "x",
600
- * "unixVer": "4.57"
650
+ * "unixVer": "4.61"
601
651
  * },
602
652
  * },
603
653
  * }
@@ -605,24 +655,25 @@ export type CameraContextStopRecordResult = {
605
655
  tempThumbPath ?: string | null;
606
656
  /**
607
657
  * 视频的文件的临时路径 (本地路径)
658
+ * 视频将以mp4格式存放到uni-media目录下[文件系统](https://doc.dcloud.net.cn/uni-app-x/api/file-system-spec.html)
608
659
  *
609
660
  * @uniPlatform {
610
661
  * "app": {
611
662
  * "android": {
612
663
  * "osVer": "4.4",
613
664
  * "uniVer": "x",
614
- * "unixVer": "4.57"
665
+ * "unixVer": "4.61"
615
666
  * },
616
667
  * "ios": {
617
668
  * "osVer": "12.0",
618
669
  * "uniVer": "x",
619
- * "unixVer": "4.57"
670
+ * "unixVer": "4.61"
620
671
  * },
621
672
  * },
622
673
  * }
623
674
  */
624
675
  tempVideoPath ?: string | null;
625
- }
676
+ }
626
677
 
627
678
  export type CameraContextStopRecordOptions = {
628
679
  /**
@@ -634,12 +685,12 @@ export type CameraContextStopRecordOptions = {
634
685
  * "android": {
635
686
  * "osVer": "4.4",
636
687
  * "uniVer": "x",
637
- * "unixVer": "4.57"
688
+ * "unixVer": "4.61"
638
689
  * },
639
690
  * "ios": {
640
691
  * "osVer": "12.0",
641
692
  * "uniVer": "x",
642
- * "unixVer": "4.57"
693
+ * "unixVer": "4.61"
643
694
  * },
644
695
  * },
645
696
  * }
@@ -654,12 +705,12 @@ export type CameraContextStopRecordOptions = {
654
705
  * "android": {
655
706
  * "osVer": "4.4",
656
707
  * "uniVer": "x",
657
- * "unixVer": "4.57"
708
+ * "unixVer": "4.61"
658
709
  * },
659
710
  * "ios": {
660
711
  * "osVer": "12.0",
661
712
  * "uniVer": "x",
662
- * "unixVer": "4.57"
713
+ * "unixVer": "4.61"
663
714
  * },
664
715
  * },
665
716
  * }
@@ -673,17 +724,17 @@ export type CameraContextStopRecordOptions = {
673
724
  * "android": {
674
725
  * "osVer": "4.4",
675
726
  * "uniVer": "x",
676
- * "unixVer": "4.57"
727
+ * "unixVer": "4.61"
677
728
  * },
678
729
  * "ios": {
679
730
  * "osVer": "12.0",
680
731
  * "uniVer": "x",
681
- * "unixVer": "4.57"
732
+ * "unixVer": "4.61"
682
733
  * },
683
734
  * },
684
735
  * }
685
736
  */
686
- fail ?: ((result : any) => void) | null;
737
+ fail ?: ((error : CameraContextFail) => void) | null;
687
738
  /**
688
739
  * 接口调用结束的回调函数(调用成功、失败都会执行)
689
740
  * @defaultValue null
@@ -692,22 +743,22 @@ export type CameraContextStopRecordOptions = {
692
743
  * "android": {
693
744
  * "osVer": "4.4",
694
745
  * "uniVer": "x",
695
- * "unixVer": "4.57"
746
+ * "unixVer": "4.61"
696
747
  * },
697
748
  * "ios": {
698
749
  * "osVer": "12.0",
699
750
  * "uniVer": "x",
700
- * "unixVer": "4.57"
751
+ * "unixVer": "4.61"
701
752
  * },
702
753
  * },
703
754
  * }
704
755
  */
705
756
  complete ?: ((result : any) => void) | null;
706
757
  }
707
-
708
-
709
- export interface CameraContext {
710
- /**
758
+
759
+
760
+ export interface CameraContext {
761
+ /**
711
762
  * 获取 Camera 实时帧数据
712
763
  *
713
764
  * @uniPlatform {
@@ -715,18 +766,18 @@ export interface CameraContext {
715
766
  * "android": {
716
767
  * "osVer": "4.4",
717
768
  * "uniVer": "x",
718
- * "unixVer": "4.57"
769
+ * "unixVer": "4.61"
719
770
  * },
720
771
  * "ios": {
721
772
  * "osVer": "12.0",
722
773
  * "uniVer": "x",
723
- * "unixVer": "4.57"
774
+ * "unixVer": "4.61"
724
775
  * },
725
776
  * },
726
- * }
727
- */
728
- onCameraFrame(callback : (frame : CameraContextOnCameraFrame) => void) : CameraContextCameraFrameListener | null;
729
- /**
777
+ * }
778
+ */
779
+ onCameraFrame(callback : (frame : CameraContextOnCameraFrame) => void) : CameraContextCameraFrameListener | null;
780
+ /**
730
781
  * 设置缩放级别
731
782
  *
732
783
  * @uniPlatform {
@@ -734,18 +785,18 @@ export interface CameraContext {
734
785
  * "android": {
735
786
  * "osVer": "4.4",
736
787
  * "uniVer": "x",
737
- * "unixVer": "4.57"
788
+ * "unixVer": "4.61"
738
789
  * },
739
790
  * "ios": {
740
791
  * "osVer": "12.0",
741
792
  * "uniVer": "x",
742
- * "unixVer": "4.57"
793
+ * "unixVer": "4.61"
743
794
  * },
744
795
  * },
745
- * }
746
- */
747
- setZoom(options : CameraContextSetZoomOptions) : void;
748
- /**
796
+ * }
797
+ */
798
+ setZoom(options : CameraContextSetZoomOptions) : void;
799
+ /**
749
800
  * 拍摄照片
750
801
  *
751
802
  * @uniPlatform {
@@ -753,16 +804,16 @@ export interface CameraContext {
753
804
  * "android": {
754
805
  * "osVer": "4.4",
755
806
  * "uniVer": "x",
756
- * "unixVer": "4.57"
807
+ * "unixVer": "4.61"
757
808
  * },
758
809
  * "ios": {
759
810
  * "osVer": "12.0",
760
811
  * "uniVer": "x",
761
- * "unixVer": "4.57"
812
+ * "unixVer": "4.61"
762
813
  * },
763
814
  * },
764
- * }
765
- */
815
+ * }
816
+ */
766
817
  takePhoto(options : CameraContextTakePhotoOptions) : void;
767
818
  /**
768
819
  * 开始录像
@@ -772,12 +823,12 @@ export interface CameraContext {
772
823
  * "android": {
773
824
  * "osVer": "4.4",
774
825
  * "uniVer": "x",
775
- * "unixVer": "4.57"
826
+ * "unixVer": "4.61"
776
827
  * },
777
828
  * "ios": {
778
829
  * "osVer": "12.0",
779
830
  * "uniVer": "x",
780
- * "unixVer": "4.57"
831
+ * "unixVer": "4.61"
781
832
  * },
782
833
  * },
783
834
  * }
@@ -791,19 +842,19 @@ export interface CameraContext {
791
842
  * "android": {
792
843
  * "osVer": "4.4",
793
844
  * "uniVer": "x",
794
- * "unixVer": "4.57"
845
+ * "unixVer": "4.61"
795
846
  * },
796
847
  * "ios": {
797
848
  * "osVer": "12.0",
798
849
  * "uniVer": "x",
799
- * "unixVer": "4.57"
850
+ * "unixVer": "4.61"
800
851
  * },
801
852
  * },
802
853
  * }
803
854
  */
804
855
  stopRecord(options: CameraContextStopRecordOptions) : void;
805
- }
806
-
856
+ }
857
+
807
858
  export type CreateCameraContext = () => CameraContext | null;
808
859
 
809
860
 
@@ -816,12 +867,12 @@ export interface Uni {
816
867
  * "android": {
817
868
  * "osVer": "4.4",
818
869
  * "uniVer": "x",
819
- * "unixVer": "4.57"
870
+ * "unixVer": "4.61"
820
871
  * },
821
872
  * "ios": {
822
873
  * "osVer": "12.0",
823
874
  * "uniVer": "x",
824
- * "unixVer": "4.57"
875
+ * "unixVer": "4.61"
825
876
  * }
826
877
  * },
827
878
  * "mp": {