@capgo/camera-preview 7.3.12 → 7.4.0-alpha.0
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/CapgoCameraPreview.podspec +16 -13
- package/README.md +492 -73
- package/android/build.gradle +11 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/AndroidManifest.xml +5 -3
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +968 -505
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraXView.java +3017 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/GridOverlayView.java +119 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraDevice.java +63 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraLens.java +79 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraSessionConfiguration.java +167 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/LensInfo.java +40 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/ZoomFactors.java +35 -0
- package/dist/docs.json +1041 -161
- package/dist/esm/definitions.d.ts +484 -84
- package/dist/esm/definitions.js +10 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +78 -3
- package/dist/esm/web.js +813 -68
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +819 -68
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +819 -68
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapgoCameraPreviewPlugin/CameraController.swift +1663 -0
- package/ios/Sources/CapgoCameraPreviewPlugin/GridOverlayView.swift +65 -0
- package/ios/Sources/CapgoCameraPreviewPlugin/Plugin.swift +1550 -0
- package/ios/Tests/CameraPreviewPluginTests/CameraPreviewPluginTests.swift +15 -0
- package/package.json +2 -2
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraActivity.java +0 -1279
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomSurfaceView.java +0 -29
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomTextureView.java +0 -39
- package/android/src/main/java/com/ahm/capacitor/camera/preview/Preview.java +0 -461
- package/android/src/main/java/com/ahm/capacitor/camera/preview/TapGestureDetector.java +0 -24
- package/ios/Plugin/CameraController.swift +0 -809
- package/ios/Plugin/Info.plist +0 -24
- package/ios/Plugin/Plugin.h +0 -10
- package/ios/Plugin/Plugin.m +0 -18
- package/ios/Plugin/Plugin.swift +0 -511
- package/ios/Plugin.xcodeproj/project.pbxproj +0 -593
- package/ios/Plugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/Plugin.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/PluginTests/Info.plist +0 -22
- package/ios/PluginTests/PluginTests.swift +0 -83
- package/ios/Podfile +0 -13
- package/ios/Podfile.lock +0 -23
package/dist/docs.json
CHANGED
|
@@ -2,39 +2,35 @@
|
|
|
2
2
|
"api": {
|
|
3
3
|
"name": "CameraPreviewPlugin",
|
|
4
4
|
"slug": "camerapreviewplugin",
|
|
5
|
-
"docs": "",
|
|
5
|
+
"docs": "The main interface for the CameraPreview plugin.",
|
|
6
6
|
"tags": [],
|
|
7
7
|
"methods": [
|
|
8
8
|
{
|
|
9
9
|
"name": "start",
|
|
10
|
-
"signature": "(options: CameraPreviewOptions) => Promise<
|
|
10
|
+
"signature": "(options: CameraPreviewOptions) => Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
11
11
|
"parameters": [
|
|
12
12
|
{
|
|
13
13
|
"name": "options",
|
|
14
|
-
"docs": "
|
|
14
|
+
"docs": "- The configuration for the camera preview.",
|
|
15
15
|
"type": "CameraPreviewOptions"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
|
-
"returns": "Promise<
|
|
18
|
+
"returns": "Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
19
19
|
"tags": [
|
|
20
20
|
{
|
|
21
21
|
"name": "param",
|
|
22
|
-
"text": "options
|
|
22
|
+
"text": "options - The configuration for the camera preview."
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "returns",
|
|
26
|
-
"text": "
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "throws",
|
|
30
|
-
"text": "An error if the something went wrong"
|
|
26
|
+
"text": "A promise that resolves with the preview dimensions."
|
|
31
27
|
},
|
|
32
28
|
{
|
|
33
29
|
"name": "since",
|
|
34
30
|
"text": "0.0.1"
|
|
35
31
|
}
|
|
36
32
|
],
|
|
37
|
-
"docs": "
|
|
33
|
+
"docs": "Starts the camera preview.",
|
|
38
34
|
"complexTypes": [
|
|
39
35
|
"CameraPreviewOptions"
|
|
40
36
|
],
|
|
@@ -48,52 +44,45 @@
|
|
|
48
44
|
"tags": [
|
|
49
45
|
{
|
|
50
46
|
"name": "returns",
|
|
51
|
-
"text": "
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "throws",
|
|
55
|
-
"text": "An error if the something went wrong"
|
|
47
|
+
"text": "A promise that resolves when the camera preview is stopped."
|
|
56
48
|
},
|
|
57
49
|
{
|
|
58
50
|
"name": "since",
|
|
59
51
|
"text": "0.0.1"
|
|
60
52
|
}
|
|
61
53
|
],
|
|
62
|
-
"docs": "
|
|
54
|
+
"docs": "Stops the camera preview.",
|
|
63
55
|
"complexTypes": [],
|
|
64
56
|
"slug": "stop"
|
|
65
57
|
},
|
|
66
58
|
{
|
|
67
59
|
"name": "capture",
|
|
68
|
-
"signature": "(options: CameraPreviewPictureOptions) => Promise<{ value: string; }>",
|
|
60
|
+
"signature": "(options: CameraPreviewPictureOptions) => Promise<{ value: string; exif: ExifData; }>",
|
|
69
61
|
"parameters": [
|
|
70
62
|
{
|
|
71
63
|
"name": "options",
|
|
72
|
-
"docs": "
|
|
64
|
+
"docs": "- The options for capturing the picture.",
|
|
73
65
|
"type": "CameraPreviewPictureOptions"
|
|
74
66
|
}
|
|
75
67
|
],
|
|
76
|
-
"returns": "Promise<{ value: string; }>",
|
|
68
|
+
"returns": "Promise<{ value: string; exif: ExifData; }>",
|
|
77
69
|
"tags": [
|
|
78
70
|
{
|
|
79
71
|
"name": "param",
|
|
80
|
-
"text": "options
|
|
72
|
+
"text": "options - The options for capturing the picture."
|
|
81
73
|
},
|
|
82
74
|
{
|
|
83
75
|
"name": "returns",
|
|
84
|
-
"text": "
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"name": "throws",
|
|
88
|
-
"text": "An error if the something went wrong"
|
|
76
|
+
"text": "A promise that resolves with the captured image data.\nThe `value` is a base64 encoded string unless `storeToFile` is true, in which case it's a file path."
|
|
89
77
|
},
|
|
90
78
|
{
|
|
91
79
|
"name": "since",
|
|
92
80
|
"text": "0.0.1"
|
|
93
81
|
}
|
|
94
82
|
],
|
|
95
|
-
"docs": "
|
|
83
|
+
"docs": "Captures a picture from the camera.",
|
|
96
84
|
"complexTypes": [
|
|
85
|
+
"ExifData",
|
|
97
86
|
"CameraPreviewPictureOptions"
|
|
98
87
|
],
|
|
99
88
|
"slug": "capture"
|
|
@@ -104,7 +93,7 @@
|
|
|
104
93
|
"parameters": [
|
|
105
94
|
{
|
|
106
95
|
"name": "options",
|
|
107
|
-
"docs": "
|
|
96
|
+
"docs": "- The options for capturing the sample.",
|
|
108
97
|
"type": "CameraSampleOptions"
|
|
109
98
|
}
|
|
110
99
|
],
|
|
@@ -112,22 +101,18 @@
|
|
|
112
101
|
"tags": [
|
|
113
102
|
{
|
|
114
103
|
"name": "param",
|
|
115
|
-
"text": "options
|
|
104
|
+
"text": "options - The options for capturing the sample."
|
|
116
105
|
},
|
|
117
106
|
{
|
|
118
107
|
"name": "returns",
|
|
119
|
-
"text": "
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"name": "throws",
|
|
123
|
-
"text": "An error if the something went wrong"
|
|
108
|
+
"text": "A promise that resolves with the sample image as a base64 encoded string."
|
|
124
109
|
},
|
|
125
110
|
{
|
|
126
111
|
"name": "since",
|
|
127
112
|
"text": "0.0.1"
|
|
128
113
|
}
|
|
129
114
|
],
|
|
130
|
-
"docs": "
|
|
115
|
+
"docs": "Captures a single frame from the camera preview stream.",
|
|
131
116
|
"complexTypes": [
|
|
132
117
|
"CameraSampleOptions"
|
|
133
118
|
],
|
|
@@ -141,63 +126,157 @@
|
|
|
141
126
|
"tags": [
|
|
142
127
|
{
|
|
143
128
|
"name": "returns",
|
|
144
|
-
"text": "
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"name": "throws",
|
|
148
|
-
"text": "An error if the something went wrong"
|
|
129
|
+
"text": "A promise that resolves with an array of supported flash modes."
|
|
149
130
|
},
|
|
150
131
|
{
|
|
151
132
|
"name": "since",
|
|
152
133
|
"text": "0.0.1"
|
|
153
134
|
}
|
|
154
135
|
],
|
|
155
|
-
"docs": "
|
|
136
|
+
"docs": "Gets the flash modes supported by the active camera.",
|
|
156
137
|
"complexTypes": [
|
|
157
138
|
"CameraPreviewFlashMode"
|
|
158
139
|
],
|
|
159
140
|
"slug": "getsupportedflashmodes"
|
|
160
141
|
},
|
|
161
142
|
{
|
|
162
|
-
"name": "
|
|
163
|
-
"signature": "() => Promise<{
|
|
143
|
+
"name": "setAspectRatio",
|
|
144
|
+
"signature": "(options: { aspectRatio: \"4:3\" | \"16:9\"; x?: number; y?: number; }) => Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
145
|
+
"parameters": [
|
|
146
|
+
{
|
|
147
|
+
"name": "options",
|
|
148
|
+
"docs": "- The desired aspect ratio and optional position.\n- aspectRatio: The desired aspect ratio ('4:3' or '16:9')\n- x: Optional x coordinate for positioning. If not provided, view will be auto-centered horizontally.\n- y: Optional y coordinate for positioning. If not provided, view will be auto-centered vertically.",
|
|
149
|
+
"type": "{ aspectRatio: '4:3' | '16:9'; x?: number | undefined; y?: number | undefined; }"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"returns": "Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
153
|
+
"tags": [
|
|
154
|
+
{
|
|
155
|
+
"name": "param",
|
|
156
|
+
"text": "options - The desired aspect ratio and optional position.\n- aspectRatio: The desired aspect ratio ('4:3' or '16:9')\n- x: Optional x coordinate for positioning. If not provided, view will be auto-centered horizontally.\n- y: Optional y coordinate for positioning. If not provided, view will be auto-centered vertically."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "returns",
|
|
160
|
+
"text": "A promise that resolves with the actual preview dimensions and position."
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "since",
|
|
164
|
+
"text": "7.4.0"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"docs": "Set the aspect ratio of the camera preview.",
|
|
168
|
+
"complexTypes": [],
|
|
169
|
+
"slug": "setaspectratio"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "getAspectRatio",
|
|
173
|
+
"signature": "() => Promise<{ aspectRatio: \"4:3\" | \"16:9\"; }>",
|
|
174
|
+
"parameters": [],
|
|
175
|
+
"returns": "Promise<{ aspectRatio: '4:3' | '16:9'; }>",
|
|
176
|
+
"tags": [
|
|
177
|
+
{
|
|
178
|
+
"name": "returns",
|
|
179
|
+
"text": "A promise that resolves with the current aspect ratio."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "since",
|
|
183
|
+
"text": "7.4.0"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"docs": "Gets the current aspect ratio of the camera preview.",
|
|
187
|
+
"complexTypes": [],
|
|
188
|
+
"slug": "getaspectratio"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "setGridMode",
|
|
192
|
+
"signature": "(options: { gridMode: GridMode; }) => Promise<void>",
|
|
193
|
+
"parameters": [
|
|
194
|
+
{
|
|
195
|
+
"name": "options",
|
|
196
|
+
"docs": "- The desired grid mode ('none', '3x3', or '4x4').",
|
|
197
|
+
"type": "{ gridMode: GridMode; }"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"returns": "Promise<void>",
|
|
201
|
+
"tags": [
|
|
202
|
+
{
|
|
203
|
+
"name": "param",
|
|
204
|
+
"text": "options - The desired grid mode ('none', '3x3', or '4x4')."
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "returns",
|
|
208
|
+
"text": "A promise that resolves when the grid mode is set."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "since",
|
|
212
|
+
"text": "8.0.0"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"docs": "Sets the grid mode of the camera preview overlay.",
|
|
216
|
+
"complexTypes": [
|
|
217
|
+
"GridMode"
|
|
218
|
+
],
|
|
219
|
+
"slug": "setgridmode"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "getGridMode",
|
|
223
|
+
"signature": "() => Promise<{ gridMode: GridMode; }>",
|
|
164
224
|
"parameters": [],
|
|
165
|
-
"returns": "Promise<{
|
|
225
|
+
"returns": "Promise<{ gridMode: GridMode; }>",
|
|
166
226
|
"tags": [
|
|
167
227
|
{
|
|
168
228
|
"name": "returns",
|
|
169
|
-
"text": "
|
|
229
|
+
"text": "A promise that resolves with the current grid mode."
|
|
170
230
|
},
|
|
171
231
|
{
|
|
172
|
-
"name": "
|
|
173
|
-
"text": "
|
|
232
|
+
"name": "since",
|
|
233
|
+
"text": "8.0.0"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"docs": "Gets the current grid mode of the camera preview overlay.",
|
|
237
|
+
"complexTypes": [
|
|
238
|
+
"GridMode"
|
|
239
|
+
],
|
|
240
|
+
"slug": "getgridmode"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "getHorizontalFov",
|
|
244
|
+
"signature": "() => Promise<{ result: number; }>",
|
|
245
|
+
"parameters": [],
|
|
246
|
+
"returns": "Promise<{ result: number; }>",
|
|
247
|
+
"tags": [
|
|
248
|
+
{
|
|
249
|
+
"name": "returns",
|
|
250
|
+
"text": "A promise that resolves with the horizontal field of view in degrees."
|
|
174
251
|
},
|
|
175
252
|
{
|
|
176
253
|
"name": "since",
|
|
177
254
|
"text": "0.0.1"
|
|
178
255
|
}
|
|
179
256
|
],
|
|
180
|
-
"docs": "
|
|
257
|
+
"docs": "Gets the horizontal field of view (FoV) for the active camera.\nNote: This can be an estimate on some devices.",
|
|
181
258
|
"complexTypes": [],
|
|
182
259
|
"slug": "gethorizontalfov"
|
|
183
260
|
},
|
|
184
261
|
{
|
|
185
262
|
"name": "getSupportedPictureSizes",
|
|
186
|
-
"signature": "() => Promise<{ supportedPictureSizes:
|
|
263
|
+
"signature": "() => Promise<{ supportedPictureSizes: SupportedPictureSizes[]; }>",
|
|
187
264
|
"parameters": [],
|
|
188
|
-
"returns": "Promise<{ supportedPictureSizes:
|
|
265
|
+
"returns": "Promise<{ supportedPictureSizes: SupportedPictureSizes[]; }>",
|
|
189
266
|
"tags": [
|
|
190
267
|
{
|
|
191
268
|
"name": "returns",
|
|
192
|
-
"text": "
|
|
269
|
+
"text": "A promise that resolves with the list of supported sizes."
|
|
193
270
|
},
|
|
194
271
|
{
|
|
195
|
-
"name": "
|
|
196
|
-
"text": "
|
|
272
|
+
"name": "since",
|
|
273
|
+
"text": "7.4.0"
|
|
197
274
|
}
|
|
198
275
|
],
|
|
199
|
-
"docs": "Gets the supported picture sizes for
|
|
200
|
-
"complexTypes": [
|
|
276
|
+
"docs": "Gets the supported picture sizes for all cameras.",
|
|
277
|
+
"complexTypes": [
|
|
278
|
+
"SupportedPictureSizes"
|
|
279
|
+
],
|
|
201
280
|
"slug": "getsupportedpicturesizes"
|
|
202
281
|
},
|
|
203
282
|
{
|
|
@@ -206,7 +285,7 @@
|
|
|
206
285
|
"parameters": [
|
|
207
286
|
{
|
|
208
287
|
"name": "options",
|
|
209
|
-
"docs": "
|
|
288
|
+
"docs": "- The desired flash mode.",
|
|
210
289
|
"type": "{ flashMode: string; }"
|
|
211
290
|
}
|
|
212
291
|
],
|
|
@@ -214,22 +293,18 @@
|
|
|
214
293
|
"tags": [
|
|
215
294
|
{
|
|
216
295
|
"name": "param",
|
|
217
|
-
"text": "options
|
|
296
|
+
"text": "options - The desired flash mode."
|
|
218
297
|
},
|
|
219
298
|
{
|
|
220
299
|
"name": "returns",
|
|
221
|
-
"text": "
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"name": "throws",
|
|
225
|
-
"text": "An error if the something went wrong"
|
|
300
|
+
"text": "A promise that resolves when the flash mode is set."
|
|
226
301
|
},
|
|
227
302
|
{
|
|
228
303
|
"name": "since",
|
|
229
304
|
"text": "0.0.1"
|
|
230
305
|
}
|
|
231
306
|
],
|
|
232
|
-
"docs": "
|
|
307
|
+
"docs": "Sets the flash mode for the active camera.",
|
|
233
308
|
"complexTypes": [
|
|
234
309
|
"CameraPreviewFlashMode"
|
|
235
310
|
],
|
|
@@ -243,18 +318,14 @@
|
|
|
243
318
|
"tags": [
|
|
244
319
|
{
|
|
245
320
|
"name": "returns",
|
|
246
|
-
"text": "
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"name": "throws",
|
|
250
|
-
"text": "An error if the something went wrong"
|
|
321
|
+
"text": "A promise that resolves when the camera is flipped."
|
|
251
322
|
},
|
|
252
323
|
{
|
|
253
324
|
"name": "since",
|
|
254
325
|
"text": "0.0.1"
|
|
255
326
|
}
|
|
256
327
|
],
|
|
257
|
-
"docs": "
|
|
328
|
+
"docs": "Toggles between the front and rear cameras.",
|
|
258
329
|
"complexTypes": [],
|
|
259
330
|
"slug": "flip"
|
|
260
331
|
},
|
|
@@ -264,7 +335,7 @@
|
|
|
264
335
|
"parameters": [
|
|
265
336
|
{
|
|
266
337
|
"name": "options",
|
|
267
|
-
"docs": "
|
|
338
|
+
"docs": "- The opacity options.",
|
|
268
339
|
"type": "CameraOpacityOptions"
|
|
269
340
|
}
|
|
270
341
|
],
|
|
@@ -272,22 +343,18 @@
|
|
|
272
343
|
"tags": [
|
|
273
344
|
{
|
|
274
345
|
"name": "param",
|
|
275
|
-
"text": "options
|
|
346
|
+
"text": "options - The opacity options."
|
|
276
347
|
},
|
|
277
348
|
{
|
|
278
349
|
"name": "returns",
|
|
279
|
-
"text": "
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"name": "throws",
|
|
283
|
-
"text": "An error if the something went wrong"
|
|
350
|
+
"text": "A promise that resolves when the opacity is set."
|
|
284
351
|
},
|
|
285
352
|
{
|
|
286
353
|
"name": "since",
|
|
287
354
|
"text": "0.0.1"
|
|
288
355
|
}
|
|
289
356
|
],
|
|
290
|
-
"docs": "
|
|
357
|
+
"docs": "Sets the opacity of the camera preview.",
|
|
291
358
|
"complexTypes": [
|
|
292
359
|
"CameraOpacityOptions"
|
|
293
360
|
],
|
|
@@ -299,24 +366,16 @@
|
|
|
299
366
|
"parameters": [],
|
|
300
367
|
"returns": "Promise<{ videoFilePath: string; }>",
|
|
301
368
|
"tags": [
|
|
302
|
-
{
|
|
303
|
-
"name": "param",
|
|
304
|
-
"text": "options the options to stop recording video with"
|
|
305
|
-
},
|
|
306
369
|
{
|
|
307
370
|
"name": "returns",
|
|
308
|
-
"text": "
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "throws",
|
|
312
|
-
"text": "An error if the something went wrong"
|
|
371
|
+
"text": "A promise that resolves with the path to the recorded video file."
|
|
313
372
|
},
|
|
314
373
|
{
|
|
315
374
|
"name": "since",
|
|
316
375
|
"text": "0.0.1"
|
|
317
376
|
}
|
|
318
377
|
],
|
|
319
|
-
"docs": "
|
|
378
|
+
"docs": "Stops an ongoing video recording.",
|
|
320
379
|
"complexTypes": [],
|
|
321
380
|
"slug": "stoprecordvideo"
|
|
322
381
|
},
|
|
@@ -326,7 +385,7 @@
|
|
|
326
385
|
"parameters": [
|
|
327
386
|
{
|
|
328
387
|
"name": "options",
|
|
329
|
-
"docs": "
|
|
388
|
+
"docs": "- The options for video recording.",
|
|
330
389
|
"type": "CameraPreviewOptions"
|
|
331
390
|
}
|
|
332
391
|
],
|
|
@@ -334,26 +393,264 @@
|
|
|
334
393
|
"tags": [
|
|
335
394
|
{
|
|
336
395
|
"name": "param",
|
|
337
|
-
"text": "options
|
|
396
|
+
"text": "options - The options for video recording."
|
|
338
397
|
},
|
|
339
398
|
{
|
|
340
399
|
"name": "returns",
|
|
341
|
-
"text": "
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"name": "throws",
|
|
345
|
-
"text": "An error if the something went wrong"
|
|
400
|
+
"text": "A promise that resolves when video recording starts."
|
|
346
401
|
},
|
|
347
402
|
{
|
|
348
403
|
"name": "since",
|
|
349
404
|
"text": "0.0.1"
|
|
350
405
|
}
|
|
351
406
|
],
|
|
352
|
-
"docs": "
|
|
407
|
+
"docs": "Starts recording a video.",
|
|
353
408
|
"complexTypes": [
|
|
354
409
|
"CameraPreviewOptions"
|
|
355
410
|
],
|
|
356
411
|
"slug": "startrecordvideo"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "isRunning",
|
|
415
|
+
"signature": "() => Promise<{ isRunning: boolean; }>",
|
|
416
|
+
"parameters": [],
|
|
417
|
+
"returns": "Promise<{ isRunning: boolean; }>",
|
|
418
|
+
"tags": [
|
|
419
|
+
{
|
|
420
|
+
"name": "returns",
|
|
421
|
+
"text": "A promise that resolves with the running state."
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "since",
|
|
425
|
+
"text": "7.4.0"
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"docs": "Checks if the camera preview is currently running.",
|
|
429
|
+
"complexTypes": [],
|
|
430
|
+
"slug": "isrunning"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "getAvailableDevices",
|
|
434
|
+
"signature": "() => Promise<{ devices: CameraDevice[]; }>",
|
|
435
|
+
"parameters": [],
|
|
436
|
+
"returns": "Promise<{ devices: CameraDevice[]; }>",
|
|
437
|
+
"tags": [
|
|
438
|
+
{
|
|
439
|
+
"name": "returns",
|
|
440
|
+
"text": "A promise that resolves with the list of available camera devices."
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "since",
|
|
444
|
+
"text": "7.4.0"
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"docs": "Gets all available camera devices.",
|
|
448
|
+
"complexTypes": [
|
|
449
|
+
"CameraDevice"
|
|
450
|
+
],
|
|
451
|
+
"slug": "getavailabledevices"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "getZoom",
|
|
455
|
+
"signature": "() => Promise<{ min: number; max: number; current: number; lens: LensInfo; }>",
|
|
456
|
+
"parameters": [],
|
|
457
|
+
"returns": "Promise<{ min: number; max: number; current: number; lens: LensInfo; }>",
|
|
458
|
+
"tags": [
|
|
459
|
+
{
|
|
460
|
+
"name": "returns",
|
|
461
|
+
"text": "A promise that resolves with the zoom state."
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"name": "since",
|
|
465
|
+
"text": "7.4.0"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"docs": "Gets the current zoom state, including min/max and current lens info.",
|
|
469
|
+
"complexTypes": [
|
|
470
|
+
"LensInfo"
|
|
471
|
+
],
|
|
472
|
+
"slug": "getzoom"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "setZoom",
|
|
476
|
+
"signature": "(options: { level: number; ramp?: boolean; autoFocus?: boolean; }) => Promise<void>",
|
|
477
|
+
"parameters": [
|
|
478
|
+
{
|
|
479
|
+
"name": "options",
|
|
480
|
+
"docs": "- The desired zoom level. `ramp` is currently unused. `autoFocus` defaults to true.",
|
|
481
|
+
"type": "{ level: number; ramp?: boolean | undefined; autoFocus?: boolean | undefined; }"
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
"returns": "Promise<void>",
|
|
485
|
+
"tags": [
|
|
486
|
+
{
|
|
487
|
+
"name": "param",
|
|
488
|
+
"text": "options - The desired zoom level. `ramp` is currently unused. `autoFocus` defaults to true."
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "returns",
|
|
492
|
+
"text": "A promise that resolves when the zoom level is set."
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "since",
|
|
496
|
+
"text": "7.4.0"
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"docs": "Sets the zoom level of the camera.",
|
|
500
|
+
"complexTypes": [],
|
|
501
|
+
"slug": "setzoom"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "getFlashMode",
|
|
505
|
+
"signature": "() => Promise<{ flashMode: FlashMode; }>",
|
|
506
|
+
"parameters": [],
|
|
507
|
+
"returns": "Promise<{ flashMode: CameraPreviewFlashMode; }>",
|
|
508
|
+
"tags": [
|
|
509
|
+
{
|
|
510
|
+
"name": "returns",
|
|
511
|
+
"text": "A promise that resolves with the current flash mode."
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "since",
|
|
515
|
+
"text": "7.4.0"
|
|
516
|
+
}
|
|
517
|
+
],
|
|
518
|
+
"docs": "Gets the current flash mode.",
|
|
519
|
+
"complexTypes": [
|
|
520
|
+
"FlashMode"
|
|
521
|
+
],
|
|
522
|
+
"slug": "getflashmode"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "removeAllListeners",
|
|
526
|
+
"signature": "() => Promise<void>",
|
|
527
|
+
"parameters": [],
|
|
528
|
+
"returns": "Promise<void>",
|
|
529
|
+
"tags": [
|
|
530
|
+
{
|
|
531
|
+
"name": "since",
|
|
532
|
+
"text": "7.4.0"
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"docs": "Removes all registered listeners.",
|
|
536
|
+
"complexTypes": [],
|
|
537
|
+
"slug": "removealllisteners"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "setDeviceId",
|
|
541
|
+
"signature": "(options: { deviceId: string; }) => Promise<void>",
|
|
542
|
+
"parameters": [
|
|
543
|
+
{
|
|
544
|
+
"name": "options",
|
|
545
|
+
"docs": "- The ID of the device to switch to.",
|
|
546
|
+
"type": "{ deviceId: string; }"
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"returns": "Promise<void>",
|
|
550
|
+
"tags": [
|
|
551
|
+
{
|
|
552
|
+
"name": "param",
|
|
553
|
+
"text": "options - The ID of the device to switch to."
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "returns",
|
|
557
|
+
"text": "A promise that resolves when the camera is switched."
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "since",
|
|
561
|
+
"text": "7.4.0"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"docs": "Switches the active camera to the one with the specified `deviceId`.",
|
|
565
|
+
"complexTypes": [],
|
|
566
|
+
"slug": "setdeviceid"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "getDeviceId",
|
|
570
|
+
"signature": "() => Promise<{ deviceId: string; }>",
|
|
571
|
+
"parameters": [],
|
|
572
|
+
"returns": "Promise<{ deviceId: string; }>",
|
|
573
|
+
"tags": [
|
|
574
|
+
{
|
|
575
|
+
"name": "returns",
|
|
576
|
+
"text": "A promise that resolves with the current device ID."
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "since",
|
|
580
|
+
"text": "7.4.0"
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"docs": "Gets the ID of the currently active camera device.",
|
|
584
|
+
"complexTypes": [],
|
|
585
|
+
"slug": "getdeviceid"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "getPreviewSize",
|
|
589
|
+
"signature": "() => Promise<{ x: number; y: number; width: number; height: number; }>",
|
|
590
|
+
"parameters": [],
|
|
591
|
+
"returns": "Promise<{ x: number; y: number; width: number; height: number; }>",
|
|
592
|
+
"tags": [
|
|
593
|
+
{
|
|
594
|
+
"name": "returns"
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
"docs": "Gets the current preview size and position.",
|
|
598
|
+
"complexTypes": [],
|
|
599
|
+
"slug": "getpreviewsize"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "setPreviewSize",
|
|
603
|
+
"signature": "(options: { x?: number; y?: number; width: number; height: number; }) => Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
604
|
+
"parameters": [
|
|
605
|
+
{
|
|
606
|
+
"name": "options",
|
|
607
|
+
"docs": "The new position and dimensions.",
|
|
608
|
+
"type": "{ x?: number | undefined; y?: number | undefined; width: number; height: number; }"
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"returns": "Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
612
|
+
"tags": [
|
|
613
|
+
{
|
|
614
|
+
"name": "param",
|
|
615
|
+
"text": "options The new position and dimensions."
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "returns",
|
|
619
|
+
"text": "A promise that resolves with the actual preview dimensions and position."
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"docs": "Sets the preview size and position.",
|
|
623
|
+
"complexTypes": [],
|
|
624
|
+
"slug": "setpreviewsize"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"name": "setFocus",
|
|
628
|
+
"signature": "(options: { x: number; y: number; }) => Promise<void>",
|
|
629
|
+
"parameters": [
|
|
630
|
+
{
|
|
631
|
+
"name": "options",
|
|
632
|
+
"docs": "- The focus options.",
|
|
633
|
+
"type": "{ x: number; y: number; }"
|
|
634
|
+
}
|
|
635
|
+
],
|
|
636
|
+
"returns": "Promise<void>",
|
|
637
|
+
"tags": [
|
|
638
|
+
{
|
|
639
|
+
"name": "param",
|
|
640
|
+
"text": "options - The focus options."
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "returns",
|
|
644
|
+
"text": "A promise that resolves when the focus is set."
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"name": "since",
|
|
648
|
+
"text": "8.1.0"
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"docs": "Sets the camera focus to a specific point in the preview.",
|
|
652
|
+
"complexTypes": [],
|
|
653
|
+
"slug": "setfocus"
|
|
357
654
|
}
|
|
358
655
|
],
|
|
359
656
|
"properties": []
|
|
@@ -362,84 +659,181 @@
|
|
|
362
659
|
{
|
|
363
660
|
"name": "CameraPreviewOptions",
|
|
364
661
|
"slug": "camerapreviewoptions",
|
|
365
|
-
"docs": "",
|
|
662
|
+
"docs": "Defines the configuration options for starting the camera preview.",
|
|
366
663
|
"tags": [],
|
|
367
664
|
"methods": [],
|
|
368
665
|
"properties": [
|
|
369
666
|
{
|
|
370
667
|
"name": "parent",
|
|
371
|
-
"tags": [
|
|
372
|
-
|
|
668
|
+
"tags": [
|
|
669
|
+
{
|
|
670
|
+
"text": "web",
|
|
671
|
+
"name": "platform"
|
|
672
|
+
}
|
|
673
|
+
],
|
|
674
|
+
"docs": "The parent element to attach the video preview to.",
|
|
373
675
|
"complexTypes": [],
|
|
374
676
|
"type": "string | undefined"
|
|
375
677
|
},
|
|
376
678
|
{
|
|
377
679
|
"name": "className",
|
|
378
|
-
"tags": [
|
|
379
|
-
|
|
680
|
+
"tags": [
|
|
681
|
+
{
|
|
682
|
+
"text": "web",
|
|
683
|
+
"name": "platform"
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"docs": "A CSS class name to add to the preview element.",
|
|
380
687
|
"complexTypes": [],
|
|
381
688
|
"type": "string | undefined"
|
|
382
689
|
},
|
|
383
690
|
{
|
|
384
691
|
"name": "width",
|
|
385
|
-
"tags": [
|
|
386
|
-
|
|
692
|
+
"tags": [
|
|
693
|
+
{
|
|
694
|
+
"text": "android, ios, web",
|
|
695
|
+
"name": "platform"
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"docs": "The width of the preview in pixels. Defaults to the screen width.",
|
|
387
699
|
"complexTypes": [],
|
|
388
700
|
"type": "number | undefined"
|
|
389
701
|
},
|
|
390
702
|
{
|
|
391
703
|
"name": "height",
|
|
392
|
-
"tags": [
|
|
393
|
-
|
|
704
|
+
"tags": [
|
|
705
|
+
{
|
|
706
|
+
"text": "android, ios, web",
|
|
707
|
+
"name": "platform"
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
"docs": "The height of the preview in pixels. Defaults to the screen height.",
|
|
394
711
|
"complexTypes": [],
|
|
395
712
|
"type": "number | undefined"
|
|
396
713
|
},
|
|
397
714
|
{
|
|
398
715
|
"name": "x",
|
|
399
|
-
"tags": [
|
|
400
|
-
|
|
716
|
+
"tags": [
|
|
717
|
+
{
|
|
718
|
+
"text": "android, ios",
|
|
719
|
+
"name": "platform"
|
|
720
|
+
}
|
|
721
|
+
],
|
|
722
|
+
"docs": "The horizontal origin of the preview, in pixels.",
|
|
401
723
|
"complexTypes": [],
|
|
402
724
|
"type": "number | undefined"
|
|
403
725
|
},
|
|
404
726
|
{
|
|
405
727
|
"name": "y",
|
|
406
|
-
"tags": [
|
|
407
|
-
|
|
728
|
+
"tags": [
|
|
729
|
+
{
|
|
730
|
+
"text": "android, ios",
|
|
731
|
+
"name": "platform"
|
|
732
|
+
}
|
|
733
|
+
],
|
|
734
|
+
"docs": "The vertical origin of the preview, in pixels.",
|
|
408
735
|
"complexTypes": [],
|
|
409
736
|
"type": "number | undefined"
|
|
410
737
|
},
|
|
738
|
+
{
|
|
739
|
+
"name": "aspectRatio",
|
|
740
|
+
"tags": [
|
|
741
|
+
{
|
|
742
|
+
"text": "2.0.0",
|
|
743
|
+
"name": "since"
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
"docs": "The aspect ratio of the camera preview, '4:3' or '16:9' or 'fill'.\nCannot be set if width or height is provided, otherwise the call will be rejected.\nUse setPreviewSize to adjust size after starting.",
|
|
747
|
+
"complexTypes": [],
|
|
748
|
+
"type": "'4:3' | '16:9' | undefined"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"name": "gridMode",
|
|
752
|
+
"tags": [
|
|
753
|
+
{
|
|
754
|
+
"text": "\"none\"",
|
|
755
|
+
"name": "default"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"text": "2.1.0",
|
|
759
|
+
"name": "since"
|
|
760
|
+
}
|
|
761
|
+
],
|
|
762
|
+
"docs": "The grid overlay to display on the camera preview.",
|
|
763
|
+
"complexTypes": [
|
|
764
|
+
"GridMode"
|
|
765
|
+
],
|
|
766
|
+
"type": "GridMode"
|
|
767
|
+
},
|
|
411
768
|
{
|
|
412
769
|
"name": "includeSafeAreaInsets",
|
|
413
|
-
"tags": [
|
|
414
|
-
|
|
770
|
+
"tags": [
|
|
771
|
+
{
|
|
772
|
+
"text": "ios",
|
|
773
|
+
"name": "platform"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"text": "false",
|
|
777
|
+
"name": "default"
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
"docs": "Adjusts the y-position to account for safe areas (e.g., notches).",
|
|
415
781
|
"complexTypes": [],
|
|
416
782
|
"type": "boolean | undefined"
|
|
417
783
|
},
|
|
418
784
|
{
|
|
419
785
|
"name": "toBack",
|
|
420
|
-
"tags": [
|
|
421
|
-
|
|
786
|
+
"tags": [
|
|
787
|
+
{
|
|
788
|
+
"text": "android",
|
|
789
|
+
"name": "platform"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"text": "true",
|
|
793
|
+
"name": "default"
|
|
794
|
+
}
|
|
795
|
+
],
|
|
796
|
+
"docs": "If true, places the preview behind the webview.",
|
|
422
797
|
"complexTypes": [],
|
|
423
798
|
"type": "boolean | undefined"
|
|
424
799
|
},
|
|
425
800
|
{
|
|
426
801
|
"name": "paddingBottom",
|
|
427
|
-
"tags": [
|
|
428
|
-
|
|
802
|
+
"tags": [
|
|
803
|
+
{
|
|
804
|
+
"text": "android, ios",
|
|
805
|
+
"name": "platform"
|
|
806
|
+
}
|
|
807
|
+
],
|
|
808
|
+
"docs": "Bottom padding for the preview, in pixels.",
|
|
429
809
|
"complexTypes": [],
|
|
430
810
|
"type": "number | undefined"
|
|
431
811
|
},
|
|
432
812
|
{
|
|
433
813
|
"name": "rotateWhenOrientationChanged",
|
|
434
|
-
"tags": [
|
|
435
|
-
|
|
814
|
+
"tags": [
|
|
815
|
+
{
|
|
816
|
+
"text": "ios",
|
|
817
|
+
"name": "platform"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"text": "true",
|
|
821
|
+
"name": "default"
|
|
822
|
+
}
|
|
823
|
+
],
|
|
824
|
+
"docs": "Whether to rotate the preview when the device orientation changes.",
|
|
436
825
|
"complexTypes": [],
|
|
437
826
|
"type": "boolean | undefined"
|
|
438
827
|
},
|
|
439
828
|
{
|
|
440
829
|
"name": "position",
|
|
441
|
-
"tags": [
|
|
442
|
-
|
|
830
|
+
"tags": [
|
|
831
|
+
{
|
|
832
|
+
"text": "\"rear\"",
|
|
833
|
+
"name": "default"
|
|
834
|
+
}
|
|
835
|
+
],
|
|
836
|
+
"docs": "The camera to use.",
|
|
443
837
|
"complexTypes": [
|
|
444
838
|
"CameraPosition"
|
|
445
839
|
],
|
|
@@ -447,136 +841,594 @@
|
|
|
447
841
|
},
|
|
448
842
|
{
|
|
449
843
|
"name": "storeToFile",
|
|
450
|
-
"tags": [
|
|
451
|
-
|
|
844
|
+
"tags": [
|
|
845
|
+
{
|
|
846
|
+
"text": "false",
|
|
847
|
+
"name": "default"
|
|
848
|
+
}
|
|
849
|
+
],
|
|
850
|
+
"docs": "If true, saves the captured image to a file and returns the file path.\nIf false, returns a base64 encoded string.",
|
|
452
851
|
"complexTypes": [],
|
|
453
852
|
"type": "boolean | undefined"
|
|
454
853
|
},
|
|
455
854
|
{
|
|
456
855
|
"name": "disableExifHeaderStripping",
|
|
457
|
-
"tags": [
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
856
|
+
"tags": [
|
|
857
|
+
{
|
|
858
|
+
"text": "android",
|
|
859
|
+
"name": "platform"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"text": "false",
|
|
863
|
+
"name": "default"
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"docs": "If true, prevents the plugin from rotating the image based on EXIF data.",
|
|
466
867
|
"complexTypes": [],
|
|
467
868
|
"type": "boolean | undefined"
|
|
468
869
|
},
|
|
469
870
|
{
|
|
470
871
|
"name": "disableAudio",
|
|
471
|
-
"tags": [
|
|
472
|
-
|
|
872
|
+
"tags": [
|
|
873
|
+
{
|
|
874
|
+
"text": "true",
|
|
875
|
+
"name": "default"
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"docs": "If true, disables the audio stream, preventing audio permission requests.",
|
|
473
879
|
"complexTypes": [],
|
|
474
880
|
"type": "boolean | undefined"
|
|
475
881
|
},
|
|
476
882
|
{
|
|
477
883
|
"name": "lockAndroidOrientation",
|
|
478
|
-
"tags": [
|
|
479
|
-
|
|
884
|
+
"tags": [
|
|
885
|
+
{
|
|
886
|
+
"text": "android",
|
|
887
|
+
"name": "platform"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"text": "false",
|
|
891
|
+
"name": "default"
|
|
892
|
+
}
|
|
893
|
+
],
|
|
894
|
+
"docs": "If true, locks the device orientation while the camera is active.",
|
|
480
895
|
"complexTypes": [],
|
|
481
896
|
"type": "boolean | undefined"
|
|
482
897
|
},
|
|
483
898
|
{
|
|
484
899
|
"name": "enableOpacity",
|
|
485
|
-
"tags": [
|
|
486
|
-
|
|
900
|
+
"tags": [
|
|
901
|
+
{
|
|
902
|
+
"text": "android, web",
|
|
903
|
+
"name": "platform"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"text": "false",
|
|
907
|
+
"name": "default"
|
|
908
|
+
}
|
|
909
|
+
],
|
|
910
|
+
"docs": "If true, allows the camera preview's opacity to be changed.",
|
|
487
911
|
"complexTypes": [],
|
|
488
912
|
"type": "boolean | undefined"
|
|
489
913
|
},
|
|
490
914
|
{
|
|
491
915
|
"name": "enableZoom",
|
|
492
|
-
"tags": [
|
|
493
|
-
|
|
916
|
+
"tags": [
|
|
917
|
+
{
|
|
918
|
+
"text": "android",
|
|
919
|
+
"name": "platform"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"text": "false",
|
|
923
|
+
"name": "default"
|
|
924
|
+
}
|
|
925
|
+
],
|
|
926
|
+
"docs": "If true, enables pinch-to-zoom functionality on the preview.",
|
|
494
927
|
"complexTypes": [],
|
|
495
928
|
"type": "boolean | undefined"
|
|
496
929
|
},
|
|
497
930
|
{
|
|
498
|
-
"name": "
|
|
499
|
-
"tags": [
|
|
500
|
-
|
|
931
|
+
"name": "enableVideoMode",
|
|
932
|
+
"tags": [
|
|
933
|
+
{
|
|
934
|
+
"text": "ios",
|
|
935
|
+
"name": "platform"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"text": "false",
|
|
939
|
+
"name": "default"
|
|
940
|
+
}
|
|
941
|
+
],
|
|
942
|
+
"docs": "If true, uses the video-optimized preset for the camera session.",
|
|
501
943
|
"complexTypes": [],
|
|
502
944
|
"type": "boolean | undefined"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "deviceId",
|
|
948
|
+
"tags": [
|
|
949
|
+
{
|
|
950
|
+
"text": "ios",
|
|
951
|
+
"name": "platform"
|
|
952
|
+
}
|
|
953
|
+
],
|
|
954
|
+
"docs": "The `deviceId` of the camera to use. If provided, `position` is ignored.",
|
|
955
|
+
"complexTypes": [],
|
|
956
|
+
"type": "string | undefined"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"name": "initialZoomLevel",
|
|
960
|
+
"tags": [
|
|
961
|
+
{
|
|
962
|
+
"text": "1.0",
|
|
963
|
+
"name": "default"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"text": "android, ios",
|
|
967
|
+
"name": "platform"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"text": "2.2.0",
|
|
971
|
+
"name": "since"
|
|
972
|
+
}
|
|
973
|
+
],
|
|
974
|
+
"docs": "The initial zoom level when starting the camera preview.\nIf the requested zoom level is not available, the native plugin will reject.",
|
|
975
|
+
"complexTypes": [],
|
|
976
|
+
"type": "number | undefined"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"name": "positioning",
|
|
980
|
+
"tags": [
|
|
981
|
+
{
|
|
982
|
+
"text": "\"center\"",
|
|
983
|
+
"name": "default"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"text": "android, ios, web",
|
|
987
|
+
"name": "platform"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"text": "2.3.0",
|
|
991
|
+
"name": "since"
|
|
992
|
+
}
|
|
993
|
+
],
|
|
994
|
+
"docs": "The vertical positioning of the camera preview.",
|
|
995
|
+
"complexTypes": [
|
|
996
|
+
"CameraPositioning"
|
|
997
|
+
],
|
|
998
|
+
"type": "CameraPositioning"
|
|
503
999
|
}
|
|
504
1000
|
]
|
|
505
1001
|
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "ExifData",
|
|
1004
|
+
"slug": "exifdata",
|
|
1005
|
+
"docs": "Represents EXIF data extracted from an image.",
|
|
1006
|
+
"tags": [],
|
|
1007
|
+
"methods": [],
|
|
1008
|
+
"properties": []
|
|
1009
|
+
},
|
|
506
1010
|
{
|
|
507
1011
|
"name": "CameraPreviewPictureOptions",
|
|
508
1012
|
"slug": "camerapreviewpictureoptions",
|
|
509
|
-
"docs": "",
|
|
1013
|
+
"docs": "Defines the options for capturing a picture.",
|
|
510
1014
|
"tags": [],
|
|
511
1015
|
"methods": [],
|
|
512
1016
|
"properties": [
|
|
513
1017
|
{
|
|
514
1018
|
"name": "height",
|
|
515
|
-
"tags": [
|
|
516
|
-
|
|
1019
|
+
"tags": [
|
|
1020
|
+
{
|
|
1021
|
+
"text": ",\nThe desired height of the picture in pixels.\nIf not specified and no aspectRatio is provided, the captured image will match the preview's visible area.",
|
|
1022
|
+
"name": "deprecated"
|
|
1023
|
+
}
|
|
1024
|
+
],
|
|
1025
|
+
"docs": "",
|
|
517
1026
|
"complexTypes": [],
|
|
518
1027
|
"type": "number | undefined"
|
|
519
1028
|
},
|
|
520
1029
|
{
|
|
521
1030
|
"name": "width",
|
|
522
|
-
"tags": [
|
|
523
|
-
|
|
1031
|
+
"tags": [
|
|
1032
|
+
{
|
|
1033
|
+
"text": ",\nThe desired width of the picture in pixels.\nIf not specified and no aspectRatio is provided, the captured image will match the preview's visible area.",
|
|
1034
|
+
"name": "deprecated"
|
|
1035
|
+
}
|
|
1036
|
+
],
|
|
1037
|
+
"docs": "",
|
|
524
1038
|
"complexTypes": [],
|
|
525
1039
|
"type": "number | undefined"
|
|
526
1040
|
},
|
|
1041
|
+
{
|
|
1042
|
+
"name": "aspectRatio",
|
|
1043
|
+
"tags": [
|
|
1044
|
+
{
|
|
1045
|
+
"text": ",\nThe desired aspect ratio of the captured image (e.g., '4:3', '16:9').\nIf not specified and no width/height is provided, the aspect ratio from the camera start will be used.\nIf no aspect ratio was set at start, defaults to '4:3'.\nCannot be used together with width or height - the capture will be rejected with an error.",
|
|
1046
|
+
"name": "deprecated"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"text": "7.7.0",
|
|
1050
|
+
"name": "since"
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"docs": "",
|
|
1054
|
+
"complexTypes": [],
|
|
1055
|
+
"type": "string | undefined"
|
|
1056
|
+
},
|
|
527
1057
|
{
|
|
528
1058
|
"name": "quality",
|
|
529
|
-
"tags": [
|
|
530
|
-
|
|
1059
|
+
"tags": [
|
|
1060
|
+
{
|
|
1061
|
+
"text": "85",
|
|
1062
|
+
"name": "default"
|
|
1063
|
+
}
|
|
1064
|
+
],
|
|
1065
|
+
"docs": "The quality of the captured image, from 0 to 100.\nDoes not apply to `png` format.",
|
|
531
1066
|
"complexTypes": [],
|
|
532
1067
|
"type": "number | undefined"
|
|
533
1068
|
},
|
|
534
1069
|
{
|
|
535
1070
|
"name": "format",
|
|
536
|
-
"tags": [
|
|
537
|
-
|
|
1071
|
+
"tags": [
|
|
1072
|
+
{
|
|
1073
|
+
"text": "\"jpeg\"",
|
|
1074
|
+
"name": "default"
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
"docs": "The format of the captured image.",
|
|
538
1078
|
"complexTypes": [
|
|
539
1079
|
"PictureFormat"
|
|
540
1080
|
],
|
|
541
1081
|
"type": "PictureFormat"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"name": "saveToGallery",
|
|
1085
|
+
"tags": [
|
|
1086
|
+
{
|
|
1087
|
+
"text": "false",
|
|
1088
|
+
"name": "default"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"text": "7.5.0",
|
|
1092
|
+
"name": "since"
|
|
1093
|
+
}
|
|
1094
|
+
],
|
|
1095
|
+
"docs": "If true, the captured image will be saved to the user's gallery.",
|
|
1096
|
+
"complexTypes": [],
|
|
1097
|
+
"type": "boolean | undefined"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"name": "withExifLocation",
|
|
1101
|
+
"tags": [
|
|
1102
|
+
{
|
|
1103
|
+
"text": "false",
|
|
1104
|
+
"name": "default"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"text": "7.6.0",
|
|
1108
|
+
"name": "since"
|
|
1109
|
+
}
|
|
1110
|
+
],
|
|
1111
|
+
"docs": "If true, the plugin will attempt to add GPS location data to the image's EXIF metadata.\nThis may prompt the user for location permissions.",
|
|
1112
|
+
"complexTypes": [],
|
|
1113
|
+
"type": "boolean | undefined"
|
|
542
1114
|
}
|
|
543
1115
|
]
|
|
544
1116
|
},
|
|
545
1117
|
{
|
|
546
1118
|
"name": "CameraSampleOptions",
|
|
547
1119
|
"slug": "camerasampleoptions",
|
|
548
|
-
"docs": "",
|
|
1120
|
+
"docs": "Defines the options for capturing a sample frame from the camera preview.",
|
|
549
1121
|
"tags": [],
|
|
550
1122
|
"methods": [],
|
|
551
1123
|
"properties": [
|
|
552
1124
|
{
|
|
553
1125
|
"name": "quality",
|
|
554
|
-
"tags": [
|
|
555
|
-
|
|
1126
|
+
"tags": [
|
|
1127
|
+
{
|
|
1128
|
+
"text": "85",
|
|
1129
|
+
"name": "default"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"docs": "The quality of the captured sample, from 0 to 100.",
|
|
556
1133
|
"complexTypes": [],
|
|
557
1134
|
"type": "number | undefined"
|
|
558
1135
|
}
|
|
559
1136
|
]
|
|
560
1137
|
},
|
|
1138
|
+
{
|
|
1139
|
+
"name": "SupportedPictureSizes",
|
|
1140
|
+
"slug": "supportedpicturesizes",
|
|
1141
|
+
"docs": "Represents the supported picture sizes for a camera facing a certain direction.",
|
|
1142
|
+
"tags": [],
|
|
1143
|
+
"methods": [],
|
|
1144
|
+
"properties": [
|
|
1145
|
+
{
|
|
1146
|
+
"name": "facing",
|
|
1147
|
+
"tags": [],
|
|
1148
|
+
"docs": "The camera direction (\"front\" or \"rear\").",
|
|
1149
|
+
"complexTypes": [],
|
|
1150
|
+
"type": "string"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"name": "supportedPictureSizes",
|
|
1154
|
+
"tags": [],
|
|
1155
|
+
"docs": "A list of supported picture sizes for this camera.",
|
|
1156
|
+
"complexTypes": [
|
|
1157
|
+
"PictureSize"
|
|
1158
|
+
],
|
|
1159
|
+
"type": "PictureSize[]"
|
|
1160
|
+
}
|
|
1161
|
+
]
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"name": "PictureSize",
|
|
1165
|
+
"slug": "picturesize",
|
|
1166
|
+
"docs": "Defines a standard picture size with width and height.",
|
|
1167
|
+
"tags": [],
|
|
1168
|
+
"methods": [],
|
|
1169
|
+
"properties": [
|
|
1170
|
+
{
|
|
1171
|
+
"name": "width",
|
|
1172
|
+
"tags": [],
|
|
1173
|
+
"docs": "The width of the picture in pixels.",
|
|
1174
|
+
"complexTypes": [],
|
|
1175
|
+
"type": "number"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"name": "height",
|
|
1179
|
+
"tags": [],
|
|
1180
|
+
"docs": "The height of the picture in pixels.",
|
|
1181
|
+
"complexTypes": [],
|
|
1182
|
+
"type": "number"
|
|
1183
|
+
}
|
|
1184
|
+
]
|
|
1185
|
+
},
|
|
561
1186
|
{
|
|
562
1187
|
"name": "CameraOpacityOptions",
|
|
563
1188
|
"slug": "cameraopacityoptions",
|
|
564
|
-
"docs": "",
|
|
1189
|
+
"docs": "Defines the options for setting the camera preview's opacity.",
|
|
565
1190
|
"tags": [],
|
|
566
1191
|
"methods": [],
|
|
567
1192
|
"properties": [
|
|
568
1193
|
{
|
|
569
1194
|
"name": "opacity",
|
|
570
|
-
"tags": [
|
|
571
|
-
|
|
1195
|
+
"tags": [
|
|
1196
|
+
{
|
|
1197
|
+
"text": "1.0",
|
|
1198
|
+
"name": "default"
|
|
1199
|
+
}
|
|
1200
|
+
],
|
|
1201
|
+
"docs": "The opacity percentage, from 0.0 (fully transparent) to 1.0 (fully opaque).",
|
|
572
1202
|
"complexTypes": [],
|
|
573
1203
|
"type": "number | undefined"
|
|
574
1204
|
}
|
|
575
1205
|
]
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "CameraDevice",
|
|
1209
|
+
"slug": "cameradevice",
|
|
1210
|
+
"docs": "Represents a physical camera on the device (e.g., the front-facing camera).",
|
|
1211
|
+
"tags": [],
|
|
1212
|
+
"methods": [],
|
|
1213
|
+
"properties": [
|
|
1214
|
+
{
|
|
1215
|
+
"name": "deviceId",
|
|
1216
|
+
"tags": [],
|
|
1217
|
+
"docs": "A unique identifier for the camera device.",
|
|
1218
|
+
"complexTypes": [],
|
|
1219
|
+
"type": "string"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"name": "label",
|
|
1223
|
+
"tags": [],
|
|
1224
|
+
"docs": "A human-readable name for the camera device.",
|
|
1225
|
+
"complexTypes": [],
|
|
1226
|
+
"type": "string"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"name": "position",
|
|
1230
|
+
"tags": [],
|
|
1231
|
+
"docs": "The physical position of the camera on the device.",
|
|
1232
|
+
"complexTypes": [
|
|
1233
|
+
"CameraPosition"
|
|
1234
|
+
],
|
|
1235
|
+
"type": "CameraPosition"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "lenses",
|
|
1239
|
+
"tags": [],
|
|
1240
|
+
"docs": "A list of all available lenses for this camera device.",
|
|
1241
|
+
"complexTypes": [
|
|
1242
|
+
"CameraLens"
|
|
1243
|
+
],
|
|
1244
|
+
"type": "CameraLens[]"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "minZoom",
|
|
1248
|
+
"tags": [],
|
|
1249
|
+
"docs": "The overall minimum zoom factor available across all lenses on this device.",
|
|
1250
|
+
"complexTypes": [],
|
|
1251
|
+
"type": "number"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"name": "maxZoom",
|
|
1255
|
+
"tags": [],
|
|
1256
|
+
"docs": "The overall maximum zoom factor available across all lenses on this device.",
|
|
1257
|
+
"complexTypes": [],
|
|
1258
|
+
"type": "number"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"name": "isLogical",
|
|
1262
|
+
"tags": [],
|
|
1263
|
+
"docs": "Identifies whether the device is a logical camera (composed of multiple physical lenses).",
|
|
1264
|
+
"complexTypes": [],
|
|
1265
|
+
"type": "boolean"
|
|
1266
|
+
}
|
|
1267
|
+
]
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"name": "CameraLens",
|
|
1271
|
+
"slug": "cameralens",
|
|
1272
|
+
"docs": "Represents a single camera lens on a device. A {@link CameraDevice} can have multiple lenses.",
|
|
1273
|
+
"tags": [],
|
|
1274
|
+
"methods": [],
|
|
1275
|
+
"properties": [
|
|
1276
|
+
{
|
|
1277
|
+
"name": "label",
|
|
1278
|
+
"tags": [],
|
|
1279
|
+
"docs": "A human-readable name for the lens, e.g., \"Ultra-Wide\".",
|
|
1280
|
+
"complexTypes": [],
|
|
1281
|
+
"type": "string"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"name": "deviceType",
|
|
1285
|
+
"tags": [],
|
|
1286
|
+
"docs": "The type of the camera lens.",
|
|
1287
|
+
"complexTypes": [
|
|
1288
|
+
"DeviceType"
|
|
1289
|
+
],
|
|
1290
|
+
"type": "DeviceType"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"name": "focalLength",
|
|
1294
|
+
"tags": [],
|
|
1295
|
+
"docs": "The focal length of the lens in millimeters.",
|
|
1296
|
+
"complexTypes": [],
|
|
1297
|
+
"type": "number"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"name": "baseZoomRatio",
|
|
1301
|
+
"tags": [],
|
|
1302
|
+
"docs": "The base zoom factor for this lens (e.g., 0.5 for ultra-wide, 1.0 for wide).",
|
|
1303
|
+
"complexTypes": [],
|
|
1304
|
+
"type": "number"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"name": "minZoom",
|
|
1308
|
+
"tags": [],
|
|
1309
|
+
"docs": "The minimum zoom factor supported by this specific lens.",
|
|
1310
|
+
"complexTypes": [],
|
|
1311
|
+
"type": "number"
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"name": "maxZoom",
|
|
1315
|
+
"tags": [],
|
|
1316
|
+
"docs": "The maximum zoom factor supported by this specific lens.",
|
|
1317
|
+
"complexTypes": [],
|
|
1318
|
+
"type": "number"
|
|
1319
|
+
}
|
|
1320
|
+
]
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"name": "LensInfo",
|
|
1324
|
+
"slug": "lensinfo",
|
|
1325
|
+
"docs": "Represents the detailed information of the currently active lens.",
|
|
1326
|
+
"tags": [],
|
|
1327
|
+
"methods": [],
|
|
1328
|
+
"properties": [
|
|
1329
|
+
{
|
|
1330
|
+
"name": "focalLength",
|
|
1331
|
+
"tags": [],
|
|
1332
|
+
"docs": "The focal length of the active lens in millimeters.",
|
|
1333
|
+
"complexTypes": [],
|
|
1334
|
+
"type": "number"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "deviceType",
|
|
1338
|
+
"tags": [],
|
|
1339
|
+
"docs": "The device type of the active lens.",
|
|
1340
|
+
"complexTypes": [
|
|
1341
|
+
"DeviceType"
|
|
1342
|
+
],
|
|
1343
|
+
"type": "DeviceType"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"name": "baseZoomRatio",
|
|
1347
|
+
"tags": [],
|
|
1348
|
+
"docs": "The base zoom ratio of the active lens (e.g., 0.5x, 1.0x).",
|
|
1349
|
+
"complexTypes": [],
|
|
1350
|
+
"type": "number"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"name": "digitalZoom",
|
|
1354
|
+
"tags": [],
|
|
1355
|
+
"docs": "The current digital zoom factor applied on top of the base zoom.",
|
|
1356
|
+
"complexTypes": [],
|
|
1357
|
+
"type": "number"
|
|
1358
|
+
}
|
|
1359
|
+
]
|
|
1360
|
+
}
|
|
1361
|
+
],
|
|
1362
|
+
"enums": [
|
|
1363
|
+
{
|
|
1364
|
+
"name": "DeviceType",
|
|
1365
|
+
"slug": "devicetype",
|
|
1366
|
+
"members": [
|
|
1367
|
+
{
|
|
1368
|
+
"name": "ULTRA_WIDE",
|
|
1369
|
+
"value": "\"ultraWide\"",
|
|
1370
|
+
"tags": [],
|
|
1371
|
+
"docs": ""
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"name": "WIDE_ANGLE",
|
|
1375
|
+
"value": "\"wideAngle\"",
|
|
1376
|
+
"tags": [],
|
|
1377
|
+
"docs": ""
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"name": "TELEPHOTO",
|
|
1381
|
+
"value": "\"telephoto\"",
|
|
1382
|
+
"tags": [],
|
|
1383
|
+
"docs": ""
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"name": "TRUE_DEPTH",
|
|
1387
|
+
"value": "\"trueDepth\"",
|
|
1388
|
+
"tags": [],
|
|
1389
|
+
"docs": ""
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "DUAL",
|
|
1393
|
+
"value": "\"dual\"",
|
|
1394
|
+
"tags": [],
|
|
1395
|
+
"docs": ""
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"name": "DUAL_WIDE",
|
|
1399
|
+
"value": "\"dualWide\"",
|
|
1400
|
+
"tags": [],
|
|
1401
|
+
"docs": ""
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "TRIPLE",
|
|
1405
|
+
"value": "\"triple\"",
|
|
1406
|
+
"tags": [],
|
|
1407
|
+
"docs": ""
|
|
1408
|
+
}
|
|
1409
|
+
]
|
|
576
1410
|
}
|
|
577
1411
|
],
|
|
578
|
-
"enums": [],
|
|
579
1412
|
"typeAliases": [
|
|
1413
|
+
{
|
|
1414
|
+
"name": "GridMode",
|
|
1415
|
+
"slug": "gridmode",
|
|
1416
|
+
"docs": "",
|
|
1417
|
+
"types": [
|
|
1418
|
+
{
|
|
1419
|
+
"text": "\"none\"",
|
|
1420
|
+
"complexTypes": []
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"text": "\"3x3\"",
|
|
1424
|
+
"complexTypes": []
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"text": "\"4x4\"",
|
|
1428
|
+
"complexTypes": []
|
|
1429
|
+
}
|
|
1430
|
+
]
|
|
1431
|
+
},
|
|
580
1432
|
{
|
|
581
1433
|
"name": "CameraPosition",
|
|
582
1434
|
"slug": "cameraposition",
|
|
@@ -592,6 +1444,25 @@
|
|
|
592
1444
|
}
|
|
593
1445
|
]
|
|
594
1446
|
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "CameraPositioning",
|
|
1449
|
+
"slug": "camerapositioning",
|
|
1450
|
+
"docs": "",
|
|
1451
|
+
"types": [
|
|
1452
|
+
{
|
|
1453
|
+
"text": "\"center\"",
|
|
1454
|
+
"complexTypes": []
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"text": "\"top\"",
|
|
1458
|
+
"complexTypes": []
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
"text": "\"bottom\"",
|
|
1462
|
+
"complexTypes": []
|
|
1463
|
+
}
|
|
1464
|
+
]
|
|
1465
|
+
},
|
|
595
1466
|
{
|
|
596
1467
|
"name": "PictureFormat",
|
|
597
1468
|
"slug": "pictureformat",
|
|
@@ -610,7 +1481,7 @@
|
|
|
610
1481
|
{
|
|
611
1482
|
"name": "CameraPreviewFlashMode",
|
|
612
1483
|
"slug": "camerapreviewflashmode",
|
|
613
|
-
"docs": "",
|
|
1484
|
+
"docs": "The available flash modes for the camera.\n'torch' is a continuous light mode.",
|
|
614
1485
|
"types": [
|
|
615
1486
|
{
|
|
616
1487
|
"text": "\"off\"",
|
|
@@ -624,15 +1495,24 @@
|
|
|
624
1495
|
"text": "\"auto\"",
|
|
625
1496
|
"complexTypes": []
|
|
626
1497
|
},
|
|
627
|
-
{
|
|
628
|
-
"text": "\"red-eye\"",
|
|
629
|
-
"complexTypes": []
|
|
630
|
-
},
|
|
631
1498
|
{
|
|
632
1499
|
"text": "\"torch\"",
|
|
633
1500
|
"complexTypes": []
|
|
634
1501
|
}
|
|
635
1502
|
]
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "FlashMode",
|
|
1506
|
+
"slug": "flashmode",
|
|
1507
|
+
"docs": "",
|
|
1508
|
+
"types": [
|
|
1509
|
+
{
|
|
1510
|
+
"text": "CameraPreviewFlashMode",
|
|
1511
|
+
"complexTypes": [
|
|
1512
|
+
"CameraPreviewFlashMode"
|
|
1513
|
+
]
|
|
1514
|
+
}
|
|
1515
|
+
]
|
|
636
1516
|
}
|
|
637
1517
|
],
|
|
638
1518
|
"pluginConfigs": []
|