@capgo/camera-preview 7.3.12 → 7.4.0-beta.10
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 +467 -73
- package/android/.gradle/8.14.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.14.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.14.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.14.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.14.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.14.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.14.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.14.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.14.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/8.14.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- 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 +472 -541
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraXView.java +1648 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/GridOverlayView.java +82 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraDevice.java +54 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraLens.java +70 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraSessionConfiguration.java +79 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/LensInfo.java +34 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/ZoomFactors.java +34 -0
- package/dist/docs.json +934 -154
- package/dist/esm/definitions.d.ts +445 -83
- package/dist/esm/definitions.js +10 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +73 -3
- package/dist/esm/web.js +492 -68
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +498 -68
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +498 -68
- package/dist/plugin.js.map +1 -1
- package/ios/{Plugin → Sources/CapgoCameraPreview}/CameraController.swift +601 -59
- package/ios/Sources/CapgoCameraPreview/GridOverlayView.swift +65 -0
- package/ios/Sources/CapgoCameraPreview/Plugin.swift +1369 -0
- package/ios/Tests/CameraPreviewPluginTests/CameraPreviewPluginTests.swift +15 -0
- package/package.json +1 -1
- 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/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,235 @@
|
|
|
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; }) => Promise<void>",
|
|
477
|
+
"parameters": [
|
|
478
|
+
{
|
|
479
|
+
"name": "options",
|
|
480
|
+
"docs": "- The desired zoom level. `ramp` is currently unused.",
|
|
481
|
+
"type": "{ level: number; ramp?: 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."
|
|
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 camera's zoom level.",
|
|
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; y: number; 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"
|
|
357
625
|
}
|
|
358
626
|
],
|
|
359
627
|
"properties": []
|
|
@@ -362,84 +630,181 @@
|
|
|
362
630
|
{
|
|
363
631
|
"name": "CameraPreviewOptions",
|
|
364
632
|
"slug": "camerapreviewoptions",
|
|
365
|
-
"docs": "",
|
|
633
|
+
"docs": "Defines the configuration options for starting the camera preview.",
|
|
366
634
|
"tags": [],
|
|
367
635
|
"methods": [],
|
|
368
636
|
"properties": [
|
|
369
637
|
{
|
|
370
638
|
"name": "parent",
|
|
371
|
-
"tags": [
|
|
372
|
-
|
|
639
|
+
"tags": [
|
|
640
|
+
{
|
|
641
|
+
"text": "web",
|
|
642
|
+
"name": "platform"
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
"docs": "The parent element to attach the video preview to.",
|
|
373
646
|
"complexTypes": [],
|
|
374
647
|
"type": "string | undefined"
|
|
375
648
|
},
|
|
376
649
|
{
|
|
377
650
|
"name": "className",
|
|
378
|
-
"tags": [
|
|
379
|
-
|
|
651
|
+
"tags": [
|
|
652
|
+
{
|
|
653
|
+
"text": "web",
|
|
654
|
+
"name": "platform"
|
|
655
|
+
}
|
|
656
|
+
],
|
|
657
|
+
"docs": "A CSS class name to add to the preview element.",
|
|
380
658
|
"complexTypes": [],
|
|
381
659
|
"type": "string | undefined"
|
|
382
660
|
},
|
|
383
661
|
{
|
|
384
662
|
"name": "width",
|
|
385
|
-
"tags": [
|
|
386
|
-
|
|
663
|
+
"tags": [
|
|
664
|
+
{
|
|
665
|
+
"text": "android, ios, web",
|
|
666
|
+
"name": "platform"
|
|
667
|
+
}
|
|
668
|
+
],
|
|
669
|
+
"docs": "The width of the preview in pixels. Defaults to the screen width.",
|
|
387
670
|
"complexTypes": [],
|
|
388
671
|
"type": "number | undefined"
|
|
389
672
|
},
|
|
390
673
|
{
|
|
391
674
|
"name": "height",
|
|
392
|
-
"tags": [
|
|
393
|
-
|
|
675
|
+
"tags": [
|
|
676
|
+
{
|
|
677
|
+
"text": "android, ios, web",
|
|
678
|
+
"name": "platform"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
"docs": "The height of the preview in pixels. Defaults to the screen height.",
|
|
394
682
|
"complexTypes": [],
|
|
395
683
|
"type": "number | undefined"
|
|
396
684
|
},
|
|
397
685
|
{
|
|
398
686
|
"name": "x",
|
|
399
|
-
"tags": [
|
|
400
|
-
|
|
687
|
+
"tags": [
|
|
688
|
+
{
|
|
689
|
+
"text": "android, ios",
|
|
690
|
+
"name": "platform"
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
"docs": "The horizontal origin of the preview, in pixels.",
|
|
401
694
|
"complexTypes": [],
|
|
402
695
|
"type": "number | undefined"
|
|
403
696
|
},
|
|
404
697
|
{
|
|
405
698
|
"name": "y",
|
|
406
|
-
"tags": [
|
|
407
|
-
|
|
699
|
+
"tags": [
|
|
700
|
+
{
|
|
701
|
+
"text": "android, ios",
|
|
702
|
+
"name": "platform"
|
|
703
|
+
}
|
|
704
|
+
],
|
|
705
|
+
"docs": "The vertical origin of the preview, in pixels.",
|
|
408
706
|
"complexTypes": [],
|
|
409
707
|
"type": "number | undefined"
|
|
410
708
|
},
|
|
709
|
+
{
|
|
710
|
+
"name": "aspectRatio",
|
|
711
|
+
"tags": [
|
|
712
|
+
{
|
|
713
|
+
"text": "2.0.0",
|
|
714
|
+
"name": "since"
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
"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.",
|
|
718
|
+
"complexTypes": [],
|
|
719
|
+
"type": "'4:3' | '16:9' | 'fill' | undefined"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "gridMode",
|
|
723
|
+
"tags": [
|
|
724
|
+
{
|
|
725
|
+
"text": "\"none\"",
|
|
726
|
+
"name": "default"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"text": "2.1.0",
|
|
730
|
+
"name": "since"
|
|
731
|
+
}
|
|
732
|
+
],
|
|
733
|
+
"docs": "The grid overlay to display on the camera preview.",
|
|
734
|
+
"complexTypes": [
|
|
735
|
+
"GridMode"
|
|
736
|
+
],
|
|
737
|
+
"type": "GridMode"
|
|
738
|
+
},
|
|
411
739
|
{
|
|
412
740
|
"name": "includeSafeAreaInsets",
|
|
413
|
-
"tags": [
|
|
414
|
-
|
|
741
|
+
"tags": [
|
|
742
|
+
{
|
|
743
|
+
"text": "ios",
|
|
744
|
+
"name": "platform"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"text": "false",
|
|
748
|
+
"name": "default"
|
|
749
|
+
}
|
|
750
|
+
],
|
|
751
|
+
"docs": "Adjusts the y-position to account for safe areas (e.g., notches).",
|
|
415
752
|
"complexTypes": [],
|
|
416
753
|
"type": "boolean | undefined"
|
|
417
754
|
},
|
|
418
755
|
{
|
|
419
756
|
"name": "toBack",
|
|
420
|
-
"tags": [
|
|
421
|
-
|
|
757
|
+
"tags": [
|
|
758
|
+
{
|
|
759
|
+
"text": "android",
|
|
760
|
+
"name": "platform"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"text": "true",
|
|
764
|
+
"name": "default"
|
|
765
|
+
}
|
|
766
|
+
],
|
|
767
|
+
"docs": "If true, places the preview behind the webview.",
|
|
422
768
|
"complexTypes": [],
|
|
423
769
|
"type": "boolean | undefined"
|
|
424
770
|
},
|
|
425
771
|
{
|
|
426
772
|
"name": "paddingBottom",
|
|
427
|
-
"tags": [
|
|
428
|
-
|
|
773
|
+
"tags": [
|
|
774
|
+
{
|
|
775
|
+
"text": "android, ios",
|
|
776
|
+
"name": "platform"
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
"docs": "Bottom padding for the preview, in pixels.",
|
|
429
780
|
"complexTypes": [],
|
|
430
781
|
"type": "number | undefined"
|
|
431
782
|
},
|
|
432
783
|
{
|
|
433
784
|
"name": "rotateWhenOrientationChanged",
|
|
434
|
-
"tags": [
|
|
435
|
-
|
|
785
|
+
"tags": [
|
|
786
|
+
{
|
|
787
|
+
"text": "ios",
|
|
788
|
+
"name": "platform"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"text": "true",
|
|
792
|
+
"name": "default"
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"docs": "Whether to rotate the preview when the device orientation changes.",
|
|
436
796
|
"complexTypes": [],
|
|
437
797
|
"type": "boolean | undefined"
|
|
438
798
|
},
|
|
439
799
|
{
|
|
440
800
|
"name": "position",
|
|
441
|
-
"tags": [
|
|
442
|
-
|
|
801
|
+
"tags": [
|
|
802
|
+
{
|
|
803
|
+
"text": "\"rear\"",
|
|
804
|
+
"name": "default"
|
|
805
|
+
}
|
|
806
|
+
],
|
|
807
|
+
"docs": "The camera to use.",
|
|
443
808
|
"complexTypes": [
|
|
444
809
|
"CameraPosition"
|
|
445
810
|
],
|
|
@@ -447,136 +812,542 @@
|
|
|
447
812
|
},
|
|
448
813
|
{
|
|
449
814
|
"name": "storeToFile",
|
|
450
|
-
"tags": [
|
|
451
|
-
|
|
815
|
+
"tags": [
|
|
816
|
+
{
|
|
817
|
+
"text": "false",
|
|
818
|
+
"name": "default"
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
"docs": "If true, saves the captured image to a file and returns the file path.\nIf false, returns a base64 encoded string.",
|
|
452
822
|
"complexTypes": [],
|
|
453
823
|
"type": "boolean | undefined"
|
|
454
824
|
},
|
|
455
825
|
{
|
|
456
826
|
"name": "disableExifHeaderStripping",
|
|
457
|
-
"tags": [
|
|
458
|
-
|
|
827
|
+
"tags": [
|
|
828
|
+
{
|
|
829
|
+
"text": "android",
|
|
830
|
+
"name": "platform"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"text": "false",
|
|
834
|
+
"name": "default"
|
|
835
|
+
}
|
|
836
|
+
],
|
|
837
|
+
"docs": "If true, prevents the plugin from rotating the image based on EXIF data.",
|
|
459
838
|
"complexTypes": [],
|
|
460
839
|
"type": "boolean | undefined"
|
|
461
840
|
},
|
|
462
841
|
{
|
|
463
842
|
"name": "enableHighResolution",
|
|
464
|
-
"tags": [
|
|
465
|
-
|
|
843
|
+
"tags": [
|
|
844
|
+
{
|
|
845
|
+
"text": "ios",
|
|
846
|
+
"name": "platform"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"text": "false",
|
|
850
|
+
"name": "default"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"docs": "If true, enables high-resolution image capture.",
|
|
466
854
|
"complexTypes": [],
|
|
467
855
|
"type": "boolean | undefined"
|
|
468
856
|
},
|
|
469
857
|
{
|
|
470
858
|
"name": "disableAudio",
|
|
471
|
-
"tags": [
|
|
472
|
-
|
|
859
|
+
"tags": [
|
|
860
|
+
{
|
|
861
|
+
"text": "true",
|
|
862
|
+
"name": "default"
|
|
863
|
+
}
|
|
864
|
+
],
|
|
865
|
+
"docs": "If true, disables the audio stream, preventing audio permission requests.",
|
|
473
866
|
"complexTypes": [],
|
|
474
867
|
"type": "boolean | undefined"
|
|
475
868
|
},
|
|
476
869
|
{
|
|
477
870
|
"name": "lockAndroidOrientation",
|
|
478
|
-
"tags": [
|
|
479
|
-
|
|
871
|
+
"tags": [
|
|
872
|
+
{
|
|
873
|
+
"text": "android",
|
|
874
|
+
"name": "platform"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"text": "false",
|
|
878
|
+
"name": "default"
|
|
879
|
+
}
|
|
880
|
+
],
|
|
881
|
+
"docs": "If true, locks the device orientation while the camera is active.",
|
|
480
882
|
"complexTypes": [],
|
|
481
883
|
"type": "boolean | undefined"
|
|
482
884
|
},
|
|
483
885
|
{
|
|
484
886
|
"name": "enableOpacity",
|
|
485
|
-
"tags": [
|
|
486
|
-
|
|
887
|
+
"tags": [
|
|
888
|
+
{
|
|
889
|
+
"text": "android, web",
|
|
890
|
+
"name": "platform"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"text": "false",
|
|
894
|
+
"name": "default"
|
|
895
|
+
}
|
|
896
|
+
],
|
|
897
|
+
"docs": "If true, allows the camera preview's opacity to be changed.",
|
|
487
898
|
"complexTypes": [],
|
|
488
899
|
"type": "boolean | undefined"
|
|
489
900
|
},
|
|
490
901
|
{
|
|
491
902
|
"name": "enableZoom",
|
|
492
|
-
"tags": [
|
|
493
|
-
|
|
903
|
+
"tags": [
|
|
904
|
+
{
|
|
905
|
+
"text": "android",
|
|
906
|
+
"name": "platform"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"text": "false",
|
|
910
|
+
"name": "default"
|
|
911
|
+
}
|
|
912
|
+
],
|
|
913
|
+
"docs": "If true, enables pinch-to-zoom functionality on the preview.",
|
|
494
914
|
"complexTypes": [],
|
|
495
915
|
"type": "boolean | undefined"
|
|
496
916
|
},
|
|
497
917
|
{
|
|
498
|
-
"name": "
|
|
499
|
-
"tags": [
|
|
500
|
-
|
|
918
|
+
"name": "enableVideoMode",
|
|
919
|
+
"tags": [
|
|
920
|
+
{
|
|
921
|
+
"text": "ios",
|
|
922
|
+
"name": "platform"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"text": "false",
|
|
926
|
+
"name": "default"
|
|
927
|
+
}
|
|
928
|
+
],
|
|
929
|
+
"docs": "If true, uses the video-optimized preset for the camera session.",
|
|
501
930
|
"complexTypes": [],
|
|
502
931
|
"type": "boolean | undefined"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "deviceId",
|
|
935
|
+
"tags": [
|
|
936
|
+
{
|
|
937
|
+
"text": "ios",
|
|
938
|
+
"name": "platform"
|
|
939
|
+
}
|
|
940
|
+
],
|
|
941
|
+
"docs": "The `deviceId` of the camera to use. If provided, `position` is ignored.",
|
|
942
|
+
"complexTypes": [],
|
|
943
|
+
"type": "string | undefined"
|
|
503
944
|
}
|
|
504
945
|
]
|
|
505
946
|
},
|
|
947
|
+
{
|
|
948
|
+
"name": "ExifData",
|
|
949
|
+
"slug": "exifdata",
|
|
950
|
+
"docs": "Represents EXIF data extracted from an image.",
|
|
951
|
+
"tags": [],
|
|
952
|
+
"methods": [],
|
|
953
|
+
"properties": []
|
|
954
|
+
},
|
|
506
955
|
{
|
|
507
956
|
"name": "CameraPreviewPictureOptions",
|
|
508
957
|
"slug": "camerapreviewpictureoptions",
|
|
509
|
-
"docs": "",
|
|
958
|
+
"docs": "Defines the options for capturing a picture.",
|
|
510
959
|
"tags": [],
|
|
511
960
|
"methods": [],
|
|
512
961
|
"properties": [
|
|
513
962
|
{
|
|
514
963
|
"name": "height",
|
|
515
964
|
"tags": [],
|
|
516
|
-
"docs": "The
|
|
965
|
+
"docs": "The desired height of the picture in pixels. If not provided, the device default is used.",
|
|
517
966
|
"complexTypes": [],
|
|
518
967
|
"type": "number | undefined"
|
|
519
968
|
},
|
|
520
969
|
{
|
|
521
970
|
"name": "width",
|
|
522
971
|
"tags": [],
|
|
523
|
-
"docs": "The
|
|
972
|
+
"docs": "The desired width of the picture in pixels. If not provided, the device default is used.",
|
|
524
973
|
"complexTypes": [],
|
|
525
974
|
"type": "number | undefined"
|
|
526
975
|
},
|
|
527
976
|
{
|
|
528
977
|
"name": "quality",
|
|
529
|
-
"tags": [
|
|
530
|
-
|
|
978
|
+
"tags": [
|
|
979
|
+
{
|
|
980
|
+
"text": "85",
|
|
981
|
+
"name": "default"
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
"docs": "The quality of the captured image, from 0 to 100.\nDoes not apply to `png` format.",
|
|
531
985
|
"complexTypes": [],
|
|
532
986
|
"type": "number | undefined"
|
|
533
987
|
},
|
|
534
988
|
{
|
|
535
989
|
"name": "format",
|
|
536
|
-
"tags": [
|
|
537
|
-
|
|
990
|
+
"tags": [
|
|
991
|
+
{
|
|
992
|
+
"text": "\"jpeg\"",
|
|
993
|
+
"name": "default"
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
"docs": "The format of the captured image.",
|
|
538
997
|
"complexTypes": [
|
|
539
998
|
"PictureFormat"
|
|
540
999
|
],
|
|
541
1000
|
"type": "PictureFormat"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "saveToGallery",
|
|
1004
|
+
"tags": [
|
|
1005
|
+
{
|
|
1006
|
+
"text": "false",
|
|
1007
|
+
"name": "default"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"text": "7.5.0",
|
|
1011
|
+
"name": "since"
|
|
1012
|
+
}
|
|
1013
|
+
],
|
|
1014
|
+
"docs": "If true, the captured image will be saved to the user's gallery.",
|
|
1015
|
+
"complexTypes": [],
|
|
1016
|
+
"type": "boolean | undefined"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "withExifLocation",
|
|
1020
|
+
"tags": [
|
|
1021
|
+
{
|
|
1022
|
+
"text": "false",
|
|
1023
|
+
"name": "default"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"text": "7.6.0",
|
|
1027
|
+
"name": "since"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"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.",
|
|
1031
|
+
"complexTypes": [],
|
|
1032
|
+
"type": "boolean | undefined"
|
|
542
1033
|
}
|
|
543
1034
|
]
|
|
544
1035
|
},
|
|
545
1036
|
{
|
|
546
1037
|
"name": "CameraSampleOptions",
|
|
547
1038
|
"slug": "camerasampleoptions",
|
|
548
|
-
"docs": "",
|
|
1039
|
+
"docs": "Defines the options for capturing a sample frame from the camera preview.",
|
|
549
1040
|
"tags": [],
|
|
550
1041
|
"methods": [],
|
|
551
1042
|
"properties": [
|
|
552
1043
|
{
|
|
553
1044
|
"name": "quality",
|
|
554
|
-
"tags": [
|
|
555
|
-
|
|
1045
|
+
"tags": [
|
|
1046
|
+
{
|
|
1047
|
+
"text": "85",
|
|
1048
|
+
"name": "default"
|
|
1049
|
+
}
|
|
1050
|
+
],
|
|
1051
|
+
"docs": "The quality of the captured sample, from 0 to 100.",
|
|
556
1052
|
"complexTypes": [],
|
|
557
1053
|
"type": "number | undefined"
|
|
558
1054
|
}
|
|
559
1055
|
]
|
|
560
1056
|
},
|
|
1057
|
+
{
|
|
1058
|
+
"name": "SupportedPictureSizes",
|
|
1059
|
+
"slug": "supportedpicturesizes",
|
|
1060
|
+
"docs": "Represents the supported picture sizes for a camera facing a certain direction.",
|
|
1061
|
+
"tags": [],
|
|
1062
|
+
"methods": [],
|
|
1063
|
+
"properties": [
|
|
1064
|
+
{
|
|
1065
|
+
"name": "facing",
|
|
1066
|
+
"tags": [],
|
|
1067
|
+
"docs": "The camera direction (\"front\" or \"rear\").",
|
|
1068
|
+
"complexTypes": [],
|
|
1069
|
+
"type": "string"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "supportedPictureSizes",
|
|
1073
|
+
"tags": [],
|
|
1074
|
+
"docs": "A list of supported picture sizes for this camera.",
|
|
1075
|
+
"complexTypes": [
|
|
1076
|
+
"PictureSize"
|
|
1077
|
+
],
|
|
1078
|
+
"type": "PictureSize[]"
|
|
1079
|
+
}
|
|
1080
|
+
]
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "PictureSize",
|
|
1084
|
+
"slug": "picturesize",
|
|
1085
|
+
"docs": "Defines a standard picture size with width and height.",
|
|
1086
|
+
"tags": [],
|
|
1087
|
+
"methods": [],
|
|
1088
|
+
"properties": [
|
|
1089
|
+
{
|
|
1090
|
+
"name": "width",
|
|
1091
|
+
"tags": [],
|
|
1092
|
+
"docs": "The width of the picture in pixels.",
|
|
1093
|
+
"complexTypes": [],
|
|
1094
|
+
"type": "number"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"name": "height",
|
|
1098
|
+
"tags": [],
|
|
1099
|
+
"docs": "The height of the picture in pixels.",
|
|
1100
|
+
"complexTypes": [],
|
|
1101
|
+
"type": "number"
|
|
1102
|
+
}
|
|
1103
|
+
]
|
|
1104
|
+
},
|
|
561
1105
|
{
|
|
562
1106
|
"name": "CameraOpacityOptions",
|
|
563
1107
|
"slug": "cameraopacityoptions",
|
|
564
|
-
"docs": "",
|
|
1108
|
+
"docs": "Defines the options for setting the camera preview's opacity.",
|
|
565
1109
|
"tags": [],
|
|
566
1110
|
"methods": [],
|
|
567
1111
|
"properties": [
|
|
568
1112
|
{
|
|
569
1113
|
"name": "opacity",
|
|
570
|
-
"tags": [
|
|
571
|
-
|
|
1114
|
+
"tags": [
|
|
1115
|
+
{
|
|
1116
|
+
"text": "1.0",
|
|
1117
|
+
"name": "default"
|
|
1118
|
+
}
|
|
1119
|
+
],
|
|
1120
|
+
"docs": "The opacity percentage, from 0.0 (fully transparent) to 1.0 (fully opaque).",
|
|
572
1121
|
"complexTypes": [],
|
|
573
1122
|
"type": "number | undefined"
|
|
574
1123
|
}
|
|
575
1124
|
]
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "CameraDevice",
|
|
1128
|
+
"slug": "cameradevice",
|
|
1129
|
+
"docs": "Represents a physical camera on the device (e.g., the front-facing camera).",
|
|
1130
|
+
"tags": [],
|
|
1131
|
+
"methods": [],
|
|
1132
|
+
"properties": [
|
|
1133
|
+
{
|
|
1134
|
+
"name": "deviceId",
|
|
1135
|
+
"tags": [],
|
|
1136
|
+
"docs": "A unique identifier for the camera device.",
|
|
1137
|
+
"complexTypes": [],
|
|
1138
|
+
"type": "string"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"name": "label",
|
|
1142
|
+
"tags": [],
|
|
1143
|
+
"docs": "A human-readable name for the camera device.",
|
|
1144
|
+
"complexTypes": [],
|
|
1145
|
+
"type": "string"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "position",
|
|
1149
|
+
"tags": [],
|
|
1150
|
+
"docs": "The physical position of the camera on the device.",
|
|
1151
|
+
"complexTypes": [
|
|
1152
|
+
"CameraPosition"
|
|
1153
|
+
],
|
|
1154
|
+
"type": "CameraPosition"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"name": "lenses",
|
|
1158
|
+
"tags": [],
|
|
1159
|
+
"docs": "A list of all available lenses for this camera device.",
|
|
1160
|
+
"complexTypes": [
|
|
1161
|
+
"CameraLens"
|
|
1162
|
+
],
|
|
1163
|
+
"type": "CameraLens[]"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"name": "minZoom",
|
|
1167
|
+
"tags": [],
|
|
1168
|
+
"docs": "The overall minimum zoom factor available across all lenses on this device.",
|
|
1169
|
+
"complexTypes": [],
|
|
1170
|
+
"type": "number"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"name": "maxZoom",
|
|
1174
|
+
"tags": [],
|
|
1175
|
+
"docs": "The overall maximum zoom factor available across all lenses on this device.",
|
|
1176
|
+
"complexTypes": [],
|
|
1177
|
+
"type": "number"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"name": "isLogical",
|
|
1181
|
+
"tags": [],
|
|
1182
|
+
"docs": "Identifies whether the device is a logical camera (composed of multiple physical lenses).",
|
|
1183
|
+
"complexTypes": [],
|
|
1184
|
+
"type": "boolean"
|
|
1185
|
+
}
|
|
1186
|
+
]
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"name": "CameraLens",
|
|
1190
|
+
"slug": "cameralens",
|
|
1191
|
+
"docs": "Represents a single camera lens on a device. A {@link CameraDevice} can have multiple lenses.",
|
|
1192
|
+
"tags": [],
|
|
1193
|
+
"methods": [],
|
|
1194
|
+
"properties": [
|
|
1195
|
+
{
|
|
1196
|
+
"name": "label",
|
|
1197
|
+
"tags": [],
|
|
1198
|
+
"docs": "A human-readable name for the lens, e.g., \"Ultra-Wide\".",
|
|
1199
|
+
"complexTypes": [],
|
|
1200
|
+
"type": "string"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "deviceType",
|
|
1204
|
+
"tags": [],
|
|
1205
|
+
"docs": "The type of the camera lens.",
|
|
1206
|
+
"complexTypes": [
|
|
1207
|
+
"DeviceType"
|
|
1208
|
+
],
|
|
1209
|
+
"type": "DeviceType"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"name": "focalLength",
|
|
1213
|
+
"tags": [],
|
|
1214
|
+
"docs": "The focal length of the lens in millimeters.",
|
|
1215
|
+
"complexTypes": [],
|
|
1216
|
+
"type": "number"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"name": "baseZoomRatio",
|
|
1220
|
+
"tags": [],
|
|
1221
|
+
"docs": "The base zoom factor for this lens (e.g., 0.5 for ultra-wide, 1.0 for wide).",
|
|
1222
|
+
"complexTypes": [],
|
|
1223
|
+
"type": "number"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"name": "minZoom",
|
|
1227
|
+
"tags": [],
|
|
1228
|
+
"docs": "The minimum zoom factor supported by this specific lens.",
|
|
1229
|
+
"complexTypes": [],
|
|
1230
|
+
"type": "number"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"name": "maxZoom",
|
|
1234
|
+
"tags": [],
|
|
1235
|
+
"docs": "The maximum zoom factor supported by this specific lens.",
|
|
1236
|
+
"complexTypes": [],
|
|
1237
|
+
"type": "number"
|
|
1238
|
+
}
|
|
1239
|
+
]
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"name": "LensInfo",
|
|
1243
|
+
"slug": "lensinfo",
|
|
1244
|
+
"docs": "Represents the detailed information of the currently active lens.",
|
|
1245
|
+
"tags": [],
|
|
1246
|
+
"methods": [],
|
|
1247
|
+
"properties": [
|
|
1248
|
+
{
|
|
1249
|
+
"name": "focalLength",
|
|
1250
|
+
"tags": [],
|
|
1251
|
+
"docs": "The focal length of the active lens in millimeters.",
|
|
1252
|
+
"complexTypes": [],
|
|
1253
|
+
"type": "number"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "deviceType",
|
|
1257
|
+
"tags": [],
|
|
1258
|
+
"docs": "The device type of the active lens.",
|
|
1259
|
+
"complexTypes": [
|
|
1260
|
+
"DeviceType"
|
|
1261
|
+
],
|
|
1262
|
+
"type": "DeviceType"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "baseZoomRatio",
|
|
1266
|
+
"tags": [],
|
|
1267
|
+
"docs": "The base zoom ratio of the active lens (e.g., 0.5x, 1.0x).",
|
|
1268
|
+
"complexTypes": [],
|
|
1269
|
+
"type": "number"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"name": "digitalZoom",
|
|
1273
|
+
"tags": [],
|
|
1274
|
+
"docs": "The current digital zoom factor applied on top of the base zoom.",
|
|
1275
|
+
"complexTypes": [],
|
|
1276
|
+
"type": "number"
|
|
1277
|
+
}
|
|
1278
|
+
]
|
|
1279
|
+
}
|
|
1280
|
+
],
|
|
1281
|
+
"enums": [
|
|
1282
|
+
{
|
|
1283
|
+
"name": "DeviceType",
|
|
1284
|
+
"slug": "devicetype",
|
|
1285
|
+
"members": [
|
|
1286
|
+
{
|
|
1287
|
+
"name": "ULTRA_WIDE",
|
|
1288
|
+
"value": "\"ultraWide\"",
|
|
1289
|
+
"tags": [],
|
|
1290
|
+
"docs": ""
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"name": "WIDE_ANGLE",
|
|
1294
|
+
"value": "\"wideAngle\"",
|
|
1295
|
+
"tags": [],
|
|
1296
|
+
"docs": ""
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"name": "TELEPHOTO",
|
|
1300
|
+
"value": "\"telephoto\"",
|
|
1301
|
+
"tags": [],
|
|
1302
|
+
"docs": ""
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"name": "TRUE_DEPTH",
|
|
1306
|
+
"value": "\"trueDepth\"",
|
|
1307
|
+
"tags": [],
|
|
1308
|
+
"docs": ""
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "DUAL",
|
|
1312
|
+
"value": "\"dual\"",
|
|
1313
|
+
"tags": [],
|
|
1314
|
+
"docs": ""
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "DUAL_WIDE",
|
|
1318
|
+
"value": "\"dualWide\"",
|
|
1319
|
+
"tags": [],
|
|
1320
|
+
"docs": ""
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"name": "TRIPLE",
|
|
1324
|
+
"value": "\"triple\"",
|
|
1325
|
+
"tags": [],
|
|
1326
|
+
"docs": ""
|
|
1327
|
+
}
|
|
1328
|
+
]
|
|
576
1329
|
}
|
|
577
1330
|
],
|
|
578
|
-
"enums": [],
|
|
579
1331
|
"typeAliases": [
|
|
1332
|
+
{
|
|
1333
|
+
"name": "GridMode",
|
|
1334
|
+
"slug": "gridmode",
|
|
1335
|
+
"docs": "",
|
|
1336
|
+
"types": [
|
|
1337
|
+
{
|
|
1338
|
+
"text": "\"none\"",
|
|
1339
|
+
"complexTypes": []
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"text": "\"3x3\"",
|
|
1343
|
+
"complexTypes": []
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"text": "\"4x4\"",
|
|
1347
|
+
"complexTypes": []
|
|
1348
|
+
}
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
580
1351
|
{
|
|
581
1352
|
"name": "CameraPosition",
|
|
582
1353
|
"slug": "cameraposition",
|
|
@@ -610,7 +1381,7 @@
|
|
|
610
1381
|
{
|
|
611
1382
|
"name": "CameraPreviewFlashMode",
|
|
612
1383
|
"slug": "camerapreviewflashmode",
|
|
613
|
-
"docs": "",
|
|
1384
|
+
"docs": "The available flash modes for the camera.\n'torch' is a continuous light mode.",
|
|
614
1385
|
"types": [
|
|
615
1386
|
{
|
|
616
1387
|
"text": "\"off\"",
|
|
@@ -624,15 +1395,24 @@
|
|
|
624
1395
|
"text": "\"auto\"",
|
|
625
1396
|
"complexTypes": []
|
|
626
1397
|
},
|
|
627
|
-
{
|
|
628
|
-
"text": "\"red-eye\"",
|
|
629
|
-
"complexTypes": []
|
|
630
|
-
},
|
|
631
1398
|
{
|
|
632
1399
|
"text": "\"torch\"",
|
|
633
1400
|
"complexTypes": []
|
|
634
1401
|
}
|
|
635
1402
|
]
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"name": "FlashMode",
|
|
1406
|
+
"slug": "flashmode",
|
|
1407
|
+
"docs": "",
|
|
1408
|
+
"types": [
|
|
1409
|
+
{
|
|
1410
|
+
"text": "CameraPreviewFlashMode",
|
|
1411
|
+
"complexTypes": [
|
|
1412
|
+
"CameraPreviewFlashMode"
|
|
1413
|
+
]
|
|
1414
|
+
}
|
|
1415
|
+
]
|
|
636
1416
|
}
|
|
637
1417
|
],
|
|
638
1418
|
"pluginConfigs": []
|