@capgo/camera-preview 7.3.9 → 7.4.0-beta.1
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 +298 -68
- package/android/.gradle/8.14.2/checksums/checksums.lock +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 +9 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +239 -545
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraXView.java +848 -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 +65 -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 +702 -151
- package/dist/esm/definitions.d.ts +326 -80
- package/dist/esm/definitions.js +10 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +27 -1
- package/dist/esm/web.js +244 -4
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +254 -4
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +254 -4
- package/dist/plugin.js.map +1 -1
- package/ios/{Plugin → Sources/CapgoCameraPreview}/CameraController.swift +359 -34
- package/ios/{Plugin → Sources/CapgoCameraPreview}/Plugin.swift +307 -16
- 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.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,7 +2,7 @@
|
|
|
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
|
{
|
|
@@ -11,7 +11,7 @@
|
|
|
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
|
],
|
|
@@ -19,22 +19,18 @@
|
|
|
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 when the camera preview is started."
|
|
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,18 +44,14 @@
|
|
|
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
|
},
|
|
@@ -69,7 +61,7 @@
|
|
|
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
|
],
|
|
@@ -77,22 +69,18 @@
|
|
|
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": [
|
|
97
85
|
"CameraPreviewPictureOptions"
|
|
98
86
|
],
|
|
@@ -104,7 +92,7 @@
|
|
|
104
92
|
"parameters": [
|
|
105
93
|
{
|
|
106
94
|
"name": "options",
|
|
107
|
-
"docs": "
|
|
95
|
+
"docs": "- The options for capturing the sample.",
|
|
108
96
|
"type": "CameraSampleOptions"
|
|
109
97
|
}
|
|
110
98
|
],
|
|
@@ -112,22 +100,18 @@
|
|
|
112
100
|
"tags": [
|
|
113
101
|
{
|
|
114
102
|
"name": "param",
|
|
115
|
-
"text": "options
|
|
103
|
+
"text": "options - The options for capturing the sample."
|
|
116
104
|
},
|
|
117
105
|
{
|
|
118
106
|
"name": "returns",
|
|
119
|
-
"text": "
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"name": "throws",
|
|
123
|
-
"text": "An error if the something went wrong"
|
|
107
|
+
"text": "A promise that resolves with the sample image as a base64 encoded string."
|
|
124
108
|
},
|
|
125
109
|
{
|
|
126
110
|
"name": "since",
|
|
127
111
|
"text": "0.0.1"
|
|
128
112
|
}
|
|
129
113
|
],
|
|
130
|
-
"docs": "
|
|
114
|
+
"docs": "Captures a single frame from the camera preview stream.",
|
|
131
115
|
"complexTypes": [
|
|
132
116
|
"CameraSampleOptions"
|
|
133
117
|
],
|
|
@@ -141,18 +125,14 @@
|
|
|
141
125
|
"tags": [
|
|
142
126
|
{
|
|
143
127
|
"name": "returns",
|
|
144
|
-
"text": "
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"name": "throws",
|
|
148
|
-
"text": "An error if the something went wrong"
|
|
128
|
+
"text": "A promise that resolves with an array of supported flash modes."
|
|
149
129
|
},
|
|
150
130
|
{
|
|
151
131
|
"name": "since",
|
|
152
132
|
"text": "0.0.1"
|
|
153
133
|
}
|
|
154
134
|
],
|
|
155
|
-
"docs": "
|
|
135
|
+
"docs": "Gets the flash modes supported by the active camera.",
|
|
156
136
|
"complexTypes": [
|
|
157
137
|
"CameraPreviewFlashMode"
|
|
158
138
|
],
|
|
@@ -160,44 +140,42 @@
|
|
|
160
140
|
},
|
|
161
141
|
{
|
|
162
142
|
"name": "getHorizontalFov",
|
|
163
|
-
"signature": "() => Promise<{ result:
|
|
143
|
+
"signature": "() => Promise<{ result: number; }>",
|
|
164
144
|
"parameters": [],
|
|
165
|
-
"returns": "Promise<{ result:
|
|
145
|
+
"returns": "Promise<{ result: number; }>",
|
|
166
146
|
"tags": [
|
|
167
147
|
{
|
|
168
148
|
"name": "returns",
|
|
169
|
-
"text": "
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"name": "throws",
|
|
173
|
-
"text": "An error if the something went wrong"
|
|
149
|
+
"text": "A promise that resolves with the horizontal field of view in degrees."
|
|
174
150
|
},
|
|
175
151
|
{
|
|
176
152
|
"name": "since",
|
|
177
153
|
"text": "0.0.1"
|
|
178
154
|
}
|
|
179
155
|
],
|
|
180
|
-
"docs": "
|
|
156
|
+
"docs": "Gets the horizontal field of view (FoV) for the active camera.\nNote: This can be an estimate on some devices.",
|
|
181
157
|
"complexTypes": [],
|
|
182
158
|
"slug": "gethorizontalfov"
|
|
183
159
|
},
|
|
184
160
|
{
|
|
185
161
|
"name": "getSupportedPictureSizes",
|
|
186
|
-
"signature": "() => Promise<{ supportedPictureSizes:
|
|
162
|
+
"signature": "() => Promise<{ supportedPictureSizes: SupportedPictureSizes[]; }>",
|
|
187
163
|
"parameters": [],
|
|
188
|
-
"returns": "Promise<{ supportedPictureSizes:
|
|
164
|
+
"returns": "Promise<{ supportedPictureSizes: SupportedPictureSizes[]; }>",
|
|
189
165
|
"tags": [
|
|
190
166
|
{
|
|
191
167
|
"name": "returns",
|
|
192
|
-
"text": "
|
|
168
|
+
"text": "A promise that resolves with the list of supported sizes."
|
|
193
169
|
},
|
|
194
170
|
{
|
|
195
|
-
"name": "
|
|
196
|
-
"text": "
|
|
171
|
+
"name": "since",
|
|
172
|
+
"text": "7.4.0"
|
|
197
173
|
}
|
|
198
174
|
],
|
|
199
|
-
"docs": "Gets the supported picture sizes for
|
|
200
|
-
"complexTypes": [
|
|
175
|
+
"docs": "Gets the supported picture sizes for all cameras.",
|
|
176
|
+
"complexTypes": [
|
|
177
|
+
"SupportedPictureSizes"
|
|
178
|
+
],
|
|
201
179
|
"slug": "getsupportedpicturesizes"
|
|
202
180
|
},
|
|
203
181
|
{
|
|
@@ -206,7 +184,7 @@
|
|
|
206
184
|
"parameters": [
|
|
207
185
|
{
|
|
208
186
|
"name": "options",
|
|
209
|
-
"docs": "
|
|
187
|
+
"docs": "- The desired flash mode.",
|
|
210
188
|
"type": "{ flashMode: string; }"
|
|
211
189
|
}
|
|
212
190
|
],
|
|
@@ -214,22 +192,18 @@
|
|
|
214
192
|
"tags": [
|
|
215
193
|
{
|
|
216
194
|
"name": "param",
|
|
217
|
-
"text": "options
|
|
195
|
+
"text": "options - The desired flash mode."
|
|
218
196
|
},
|
|
219
197
|
{
|
|
220
198
|
"name": "returns",
|
|
221
|
-
"text": "
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"name": "throws",
|
|
225
|
-
"text": "An error if the something went wrong"
|
|
199
|
+
"text": "A promise that resolves when the flash mode is set."
|
|
226
200
|
},
|
|
227
201
|
{
|
|
228
202
|
"name": "since",
|
|
229
203
|
"text": "0.0.1"
|
|
230
204
|
}
|
|
231
205
|
],
|
|
232
|
-
"docs": "
|
|
206
|
+
"docs": "Sets the flash mode for the active camera.",
|
|
233
207
|
"complexTypes": [
|
|
234
208
|
"CameraPreviewFlashMode"
|
|
235
209
|
],
|
|
@@ -243,18 +217,14 @@
|
|
|
243
217
|
"tags": [
|
|
244
218
|
{
|
|
245
219
|
"name": "returns",
|
|
246
|
-
"text": "
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"name": "throws",
|
|
250
|
-
"text": "An error if the something went wrong"
|
|
220
|
+
"text": "A promise that resolves when the camera is flipped."
|
|
251
221
|
},
|
|
252
222
|
{
|
|
253
223
|
"name": "since",
|
|
254
224
|
"text": "0.0.1"
|
|
255
225
|
}
|
|
256
226
|
],
|
|
257
|
-
"docs": "
|
|
227
|
+
"docs": "Toggles between the front and rear cameras.",
|
|
258
228
|
"complexTypes": [],
|
|
259
229
|
"slug": "flip"
|
|
260
230
|
},
|
|
@@ -264,7 +234,7 @@
|
|
|
264
234
|
"parameters": [
|
|
265
235
|
{
|
|
266
236
|
"name": "options",
|
|
267
|
-
"docs": "
|
|
237
|
+
"docs": "- The opacity options.",
|
|
268
238
|
"type": "CameraOpacityOptions"
|
|
269
239
|
}
|
|
270
240
|
],
|
|
@@ -272,22 +242,18 @@
|
|
|
272
242
|
"tags": [
|
|
273
243
|
{
|
|
274
244
|
"name": "param",
|
|
275
|
-
"text": "options
|
|
245
|
+
"text": "options - The opacity options."
|
|
276
246
|
},
|
|
277
247
|
{
|
|
278
248
|
"name": "returns",
|
|
279
|
-
"text": "
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"name": "throws",
|
|
283
|
-
"text": "An error if the something went wrong"
|
|
249
|
+
"text": "A promise that resolves when the opacity is set."
|
|
284
250
|
},
|
|
285
251
|
{
|
|
286
252
|
"name": "since",
|
|
287
253
|
"text": "0.0.1"
|
|
288
254
|
}
|
|
289
255
|
],
|
|
290
|
-
"docs": "
|
|
256
|
+
"docs": "Sets the opacity of the camera preview.",
|
|
291
257
|
"complexTypes": [
|
|
292
258
|
"CameraOpacityOptions"
|
|
293
259
|
],
|
|
@@ -299,24 +265,16 @@
|
|
|
299
265
|
"parameters": [],
|
|
300
266
|
"returns": "Promise<{ videoFilePath: string; }>",
|
|
301
267
|
"tags": [
|
|
302
|
-
{
|
|
303
|
-
"name": "param",
|
|
304
|
-
"text": "options the options to stop recording video with"
|
|
305
|
-
},
|
|
306
268
|
{
|
|
307
269
|
"name": "returns",
|
|
308
|
-
"text": "
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "throws",
|
|
312
|
-
"text": "An error if the something went wrong"
|
|
270
|
+
"text": "A promise that resolves with the path to the recorded video file."
|
|
313
271
|
},
|
|
314
272
|
{
|
|
315
273
|
"name": "since",
|
|
316
274
|
"text": "0.0.1"
|
|
317
275
|
}
|
|
318
276
|
],
|
|
319
|
-
"docs": "
|
|
277
|
+
"docs": "Stops an ongoing video recording.",
|
|
320
278
|
"complexTypes": [],
|
|
321
279
|
"slug": "stoprecordvideo"
|
|
322
280
|
},
|
|
@@ -326,7 +284,7 @@
|
|
|
326
284
|
"parameters": [
|
|
327
285
|
{
|
|
328
286
|
"name": "options",
|
|
329
|
-
"docs": "
|
|
287
|
+
"docs": "- The options for video recording.",
|
|
330
288
|
"type": "CameraPreviewOptions"
|
|
331
289
|
}
|
|
332
290
|
],
|
|
@@ -334,26 +292,196 @@
|
|
|
334
292
|
"tags": [
|
|
335
293
|
{
|
|
336
294
|
"name": "param",
|
|
337
|
-
"text": "options
|
|
295
|
+
"text": "options - The options for video recording."
|
|
338
296
|
},
|
|
339
297
|
{
|
|
340
298
|
"name": "returns",
|
|
341
|
-
"text": "
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"name": "throws",
|
|
345
|
-
"text": "An error if the something went wrong"
|
|
299
|
+
"text": "A promise that resolves when video recording starts."
|
|
346
300
|
},
|
|
347
301
|
{
|
|
348
302
|
"name": "since",
|
|
349
303
|
"text": "0.0.1"
|
|
350
304
|
}
|
|
351
305
|
],
|
|
352
|
-
"docs": "
|
|
306
|
+
"docs": "Starts recording a video.",
|
|
353
307
|
"complexTypes": [
|
|
354
308
|
"CameraPreviewOptions"
|
|
355
309
|
],
|
|
356
310
|
"slug": "startrecordvideo"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "isRunning",
|
|
314
|
+
"signature": "() => Promise<{ isRunning: boolean; }>",
|
|
315
|
+
"parameters": [],
|
|
316
|
+
"returns": "Promise<{ isRunning: boolean; }>",
|
|
317
|
+
"tags": [
|
|
318
|
+
{
|
|
319
|
+
"name": "returns",
|
|
320
|
+
"text": "A promise that resolves with the running state."
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "since",
|
|
324
|
+
"text": "7.4.0"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"docs": "Checks if the camera preview is currently running.",
|
|
328
|
+
"complexTypes": [],
|
|
329
|
+
"slug": "isrunning"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "getAvailableDevices",
|
|
333
|
+
"signature": "() => Promise<{ devices: CameraDevice[]; }>",
|
|
334
|
+
"parameters": [],
|
|
335
|
+
"returns": "Promise<{ devices: CameraDevice[]; }>",
|
|
336
|
+
"tags": [
|
|
337
|
+
{
|
|
338
|
+
"name": "returns",
|
|
339
|
+
"text": "A promise that resolves with the list of available camera devices."
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "since",
|
|
343
|
+
"text": "7.4.0"
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
"docs": "Gets all available camera devices.",
|
|
347
|
+
"complexTypes": [
|
|
348
|
+
"CameraDevice"
|
|
349
|
+
],
|
|
350
|
+
"slug": "getavailabledevices"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "getZoom",
|
|
354
|
+
"signature": "() => Promise<{ min: number; max: number; current: number; lens: LensInfo; }>",
|
|
355
|
+
"parameters": [],
|
|
356
|
+
"returns": "Promise<{ min: number; max: number; current: number; lens: LensInfo; }>",
|
|
357
|
+
"tags": [
|
|
358
|
+
{
|
|
359
|
+
"name": "returns",
|
|
360
|
+
"text": "A promise that resolves with the zoom state."
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "since",
|
|
364
|
+
"text": "7.4.0"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"docs": "Gets the current zoom state, including min/max and current lens info.",
|
|
368
|
+
"complexTypes": [
|
|
369
|
+
"LensInfo"
|
|
370
|
+
],
|
|
371
|
+
"slug": "getzoom"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "setZoom",
|
|
375
|
+
"signature": "(options: { level: number; ramp?: boolean; }) => Promise<void>",
|
|
376
|
+
"parameters": [
|
|
377
|
+
{
|
|
378
|
+
"name": "options",
|
|
379
|
+
"docs": "- The desired zoom level. `ramp` is currently unused.",
|
|
380
|
+
"type": "{ level: number; ramp?: boolean | undefined; }"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"returns": "Promise<void>",
|
|
384
|
+
"tags": [
|
|
385
|
+
{
|
|
386
|
+
"name": "param",
|
|
387
|
+
"text": "options - The desired zoom level. `ramp` is currently unused."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "returns",
|
|
391
|
+
"text": "A promise that resolves when the zoom level is set."
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "since",
|
|
395
|
+
"text": "7.4.0"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"docs": "Sets the camera's zoom level.",
|
|
399
|
+
"complexTypes": [],
|
|
400
|
+
"slug": "setzoom"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "getFlashMode",
|
|
404
|
+
"signature": "() => Promise<{ flashMode: FlashMode; }>",
|
|
405
|
+
"parameters": [],
|
|
406
|
+
"returns": "Promise<{ flashMode: CameraPreviewFlashMode; }>",
|
|
407
|
+
"tags": [
|
|
408
|
+
{
|
|
409
|
+
"name": "returns",
|
|
410
|
+
"text": "A promise that resolves with the current flash mode."
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "since",
|
|
414
|
+
"text": "7.4.0"
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"docs": "Gets the current flash mode.",
|
|
418
|
+
"complexTypes": [
|
|
419
|
+
"FlashMode"
|
|
420
|
+
],
|
|
421
|
+
"slug": "getflashmode"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "removeAllListeners",
|
|
425
|
+
"signature": "() => Promise<void>",
|
|
426
|
+
"parameters": [],
|
|
427
|
+
"returns": "Promise<void>",
|
|
428
|
+
"tags": [
|
|
429
|
+
{
|
|
430
|
+
"name": "since",
|
|
431
|
+
"text": "7.4.0"
|
|
432
|
+
}
|
|
433
|
+
],
|
|
434
|
+
"docs": "Removes all registered listeners.",
|
|
435
|
+
"complexTypes": [],
|
|
436
|
+
"slug": "removealllisteners"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "setDeviceId",
|
|
440
|
+
"signature": "(options: { deviceId: string; }) => Promise<void>",
|
|
441
|
+
"parameters": [
|
|
442
|
+
{
|
|
443
|
+
"name": "options",
|
|
444
|
+
"docs": "- The ID of the device to switch to.",
|
|
445
|
+
"type": "{ deviceId: string; }"
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"returns": "Promise<void>",
|
|
449
|
+
"tags": [
|
|
450
|
+
{
|
|
451
|
+
"name": "param",
|
|
452
|
+
"text": "options - The ID of the device to switch to."
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"name": "returns",
|
|
456
|
+
"text": "A promise that resolves when the camera is switched."
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"name": "since",
|
|
460
|
+
"text": "7.4.0"
|
|
461
|
+
}
|
|
462
|
+
],
|
|
463
|
+
"docs": "Switches the active camera to the one with the specified `deviceId`.",
|
|
464
|
+
"complexTypes": [],
|
|
465
|
+
"slug": "setdeviceid"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "getDeviceId",
|
|
469
|
+
"signature": "() => Promise<{ deviceId: string; }>",
|
|
470
|
+
"parameters": [],
|
|
471
|
+
"returns": "Promise<{ deviceId: string; }>",
|
|
472
|
+
"tags": [
|
|
473
|
+
{
|
|
474
|
+
"name": "returns",
|
|
475
|
+
"text": "A promise that resolves with the current device ID."
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "since",
|
|
479
|
+
"text": "7.4.0"
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
"docs": "Gets the ID of the currently active camera device.",
|
|
483
|
+
"complexTypes": [],
|
|
484
|
+
"slug": "getdeviceid"
|
|
357
485
|
}
|
|
358
486
|
],
|
|
359
487
|
"properties": []
|
|
@@ -362,84 +490,151 @@
|
|
|
362
490
|
{
|
|
363
491
|
"name": "CameraPreviewOptions",
|
|
364
492
|
"slug": "camerapreviewoptions",
|
|
365
|
-
"docs": "",
|
|
493
|
+
"docs": "Defines the configuration options for starting the camera preview.",
|
|
366
494
|
"tags": [],
|
|
367
495
|
"methods": [],
|
|
368
496
|
"properties": [
|
|
369
497
|
{
|
|
370
498
|
"name": "parent",
|
|
371
|
-
"tags": [
|
|
372
|
-
|
|
499
|
+
"tags": [
|
|
500
|
+
{
|
|
501
|
+
"text": "web",
|
|
502
|
+
"name": "platform"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"docs": "The parent element to attach the video preview to.",
|
|
373
506
|
"complexTypes": [],
|
|
374
507
|
"type": "string | undefined"
|
|
375
508
|
},
|
|
376
509
|
{
|
|
377
510
|
"name": "className",
|
|
378
|
-
"tags": [
|
|
379
|
-
|
|
511
|
+
"tags": [
|
|
512
|
+
{
|
|
513
|
+
"text": "web",
|
|
514
|
+
"name": "platform"
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"docs": "A CSS class name to add to the preview element.",
|
|
380
518
|
"complexTypes": [],
|
|
381
519
|
"type": "string | undefined"
|
|
382
520
|
},
|
|
383
521
|
{
|
|
384
522
|
"name": "width",
|
|
385
|
-
"tags": [
|
|
386
|
-
|
|
523
|
+
"tags": [
|
|
524
|
+
{
|
|
525
|
+
"text": "android, ios, web",
|
|
526
|
+
"name": "platform"
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"docs": "The width of the preview in pixels. Defaults to the screen width.",
|
|
387
530
|
"complexTypes": [],
|
|
388
531
|
"type": "number | undefined"
|
|
389
532
|
},
|
|
390
533
|
{
|
|
391
534
|
"name": "height",
|
|
392
|
-
"tags": [
|
|
393
|
-
|
|
535
|
+
"tags": [
|
|
536
|
+
{
|
|
537
|
+
"text": "android, ios, web",
|
|
538
|
+
"name": "platform"
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"docs": "The height of the preview in pixels. Defaults to the screen height.",
|
|
394
542
|
"complexTypes": [],
|
|
395
543
|
"type": "number | undefined"
|
|
396
544
|
},
|
|
397
545
|
{
|
|
398
546
|
"name": "x",
|
|
399
|
-
"tags": [
|
|
400
|
-
|
|
547
|
+
"tags": [
|
|
548
|
+
{
|
|
549
|
+
"text": "android, ios",
|
|
550
|
+
"name": "platform"
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
"docs": "The horizontal origin of the preview, in pixels.",
|
|
401
554
|
"complexTypes": [],
|
|
402
555
|
"type": "number | undefined"
|
|
403
556
|
},
|
|
404
557
|
{
|
|
405
558
|
"name": "y",
|
|
406
|
-
"tags": [
|
|
407
|
-
|
|
559
|
+
"tags": [
|
|
560
|
+
{
|
|
561
|
+
"text": "android, ios",
|
|
562
|
+
"name": "platform"
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
"docs": "The vertical origin of the preview, in pixels.",
|
|
408
566
|
"complexTypes": [],
|
|
409
567
|
"type": "number | undefined"
|
|
410
568
|
},
|
|
411
569
|
{
|
|
412
570
|
"name": "includeSafeAreaInsets",
|
|
413
|
-
"tags": [
|
|
414
|
-
|
|
571
|
+
"tags": [
|
|
572
|
+
{
|
|
573
|
+
"text": "ios",
|
|
574
|
+
"name": "platform"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"text": "false",
|
|
578
|
+
"name": "default"
|
|
579
|
+
}
|
|
580
|
+
],
|
|
581
|
+
"docs": "Adjusts the y-position to account for safe areas (e.g., notches).",
|
|
415
582
|
"complexTypes": [],
|
|
416
583
|
"type": "boolean | undefined"
|
|
417
584
|
},
|
|
418
585
|
{
|
|
419
586
|
"name": "toBack",
|
|
420
|
-
"tags": [
|
|
421
|
-
|
|
587
|
+
"tags": [
|
|
588
|
+
{
|
|
589
|
+
"text": "android",
|
|
590
|
+
"name": "platform"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"text": "true",
|
|
594
|
+
"name": "default"
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
"docs": "If true, places the preview behind the webview.",
|
|
422
598
|
"complexTypes": [],
|
|
423
599
|
"type": "boolean | undefined"
|
|
424
600
|
},
|
|
425
601
|
{
|
|
426
602
|
"name": "paddingBottom",
|
|
427
|
-
"tags": [
|
|
428
|
-
|
|
603
|
+
"tags": [
|
|
604
|
+
{
|
|
605
|
+
"text": "android, ios",
|
|
606
|
+
"name": "platform"
|
|
607
|
+
}
|
|
608
|
+
],
|
|
609
|
+
"docs": "Bottom padding for the preview, in pixels.",
|
|
429
610
|
"complexTypes": [],
|
|
430
611
|
"type": "number | undefined"
|
|
431
612
|
},
|
|
432
613
|
{
|
|
433
614
|
"name": "rotateWhenOrientationChanged",
|
|
434
|
-
"tags": [
|
|
435
|
-
|
|
615
|
+
"tags": [
|
|
616
|
+
{
|
|
617
|
+
"text": "ios",
|
|
618
|
+
"name": "platform"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"text": "true",
|
|
622
|
+
"name": "default"
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"docs": "Whether to rotate the preview when the device orientation changes.",
|
|
436
626
|
"complexTypes": [],
|
|
437
627
|
"type": "boolean | undefined"
|
|
438
628
|
},
|
|
439
629
|
{
|
|
440
630
|
"name": "position",
|
|
441
|
-
"tags": [
|
|
442
|
-
|
|
631
|
+
"tags": [
|
|
632
|
+
{
|
|
633
|
+
"text": "\"rear\"",
|
|
634
|
+
"name": "default"
|
|
635
|
+
}
|
|
636
|
+
],
|
|
637
|
+
"docs": "The camera to use.",
|
|
443
638
|
"complexTypes": [
|
|
444
639
|
"CameraPosition"
|
|
445
640
|
],
|
|
@@ -447,94 +642,180 @@
|
|
|
447
642
|
},
|
|
448
643
|
{
|
|
449
644
|
"name": "storeToFile",
|
|
450
|
-
"tags": [
|
|
451
|
-
|
|
645
|
+
"tags": [
|
|
646
|
+
{
|
|
647
|
+
"text": "false",
|
|
648
|
+
"name": "default"
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"docs": "If true, saves the captured image to a file and returns the file path.\nIf false, returns a base64 encoded string.",
|
|
452
652
|
"complexTypes": [],
|
|
453
653
|
"type": "boolean | undefined"
|
|
454
654
|
},
|
|
455
655
|
{
|
|
456
656
|
"name": "disableExifHeaderStripping",
|
|
457
|
-
"tags": [
|
|
458
|
-
|
|
657
|
+
"tags": [
|
|
658
|
+
{
|
|
659
|
+
"text": "android",
|
|
660
|
+
"name": "platform"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"text": "false",
|
|
664
|
+
"name": "default"
|
|
665
|
+
}
|
|
666
|
+
],
|
|
667
|
+
"docs": "If true, prevents the plugin from rotating the image based on EXIF data.",
|
|
459
668
|
"complexTypes": [],
|
|
460
669
|
"type": "boolean | undefined"
|
|
461
670
|
},
|
|
462
671
|
{
|
|
463
672
|
"name": "enableHighResolution",
|
|
464
|
-
"tags": [
|
|
465
|
-
|
|
673
|
+
"tags": [
|
|
674
|
+
{
|
|
675
|
+
"text": "ios",
|
|
676
|
+
"name": "platform"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"text": "false",
|
|
680
|
+
"name": "default"
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"docs": "If true, enables high-resolution image capture.",
|
|
466
684
|
"complexTypes": [],
|
|
467
685
|
"type": "boolean | undefined"
|
|
468
686
|
},
|
|
469
687
|
{
|
|
470
688
|
"name": "disableAudio",
|
|
471
|
-
"tags": [
|
|
472
|
-
|
|
689
|
+
"tags": [
|
|
690
|
+
{
|
|
691
|
+
"text": "false",
|
|
692
|
+
"name": "default"
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
"docs": "If true, disables the audio stream, preventing audio permission requests.",
|
|
473
696
|
"complexTypes": [],
|
|
474
697
|
"type": "boolean | undefined"
|
|
475
698
|
},
|
|
476
699
|
{
|
|
477
700
|
"name": "lockAndroidOrientation",
|
|
478
|
-
"tags": [
|
|
479
|
-
|
|
701
|
+
"tags": [
|
|
702
|
+
{
|
|
703
|
+
"text": "android",
|
|
704
|
+
"name": "platform"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"text": "false",
|
|
708
|
+
"name": "default"
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"docs": "If true, locks the device orientation while the camera is active.",
|
|
480
712
|
"complexTypes": [],
|
|
481
713
|
"type": "boolean | undefined"
|
|
482
714
|
},
|
|
483
715
|
{
|
|
484
716
|
"name": "enableOpacity",
|
|
485
|
-
"tags": [
|
|
486
|
-
|
|
717
|
+
"tags": [
|
|
718
|
+
{
|
|
719
|
+
"text": "android, web",
|
|
720
|
+
"name": "platform"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"text": "false",
|
|
724
|
+
"name": "default"
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
"docs": "If true, allows the camera preview's opacity to be changed.",
|
|
487
728
|
"complexTypes": [],
|
|
488
729
|
"type": "boolean | undefined"
|
|
489
730
|
},
|
|
490
731
|
{
|
|
491
732
|
"name": "enableZoom",
|
|
492
|
-
"tags": [
|
|
493
|
-
|
|
733
|
+
"tags": [
|
|
734
|
+
{
|
|
735
|
+
"text": "android",
|
|
736
|
+
"name": "platform"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"text": "false",
|
|
740
|
+
"name": "default"
|
|
741
|
+
}
|
|
742
|
+
],
|
|
743
|
+
"docs": "If true, enables pinch-to-zoom functionality on the preview.",
|
|
494
744
|
"complexTypes": [],
|
|
495
745
|
"type": "boolean | undefined"
|
|
496
746
|
},
|
|
497
747
|
{
|
|
498
|
-
"name": "
|
|
499
|
-
"tags": [
|
|
500
|
-
|
|
748
|
+
"name": "enableVideoMode",
|
|
749
|
+
"tags": [
|
|
750
|
+
{
|
|
751
|
+
"text": "ios",
|
|
752
|
+
"name": "platform"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"text": "false",
|
|
756
|
+
"name": "default"
|
|
757
|
+
}
|
|
758
|
+
],
|
|
759
|
+
"docs": "If true, uses the video-optimized preset for the camera session.",
|
|
501
760
|
"complexTypes": [],
|
|
502
761
|
"type": "boolean | undefined"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "deviceId",
|
|
765
|
+
"tags": [
|
|
766
|
+
{
|
|
767
|
+
"text": "ios",
|
|
768
|
+
"name": "platform"
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
"docs": "The `deviceId` of the camera to use. If provided, `position` is ignored.",
|
|
772
|
+
"complexTypes": [],
|
|
773
|
+
"type": "string | undefined"
|
|
503
774
|
}
|
|
504
775
|
]
|
|
505
776
|
},
|
|
506
777
|
{
|
|
507
778
|
"name": "CameraPreviewPictureOptions",
|
|
508
779
|
"slug": "camerapreviewpictureoptions",
|
|
509
|
-
"docs": "",
|
|
780
|
+
"docs": "Defines the options for capturing a picture.",
|
|
510
781
|
"tags": [],
|
|
511
782
|
"methods": [],
|
|
512
783
|
"properties": [
|
|
513
784
|
{
|
|
514
785
|
"name": "height",
|
|
515
786
|
"tags": [],
|
|
516
|
-
"docs": "The
|
|
787
|
+
"docs": "The desired height of the picture in pixels. If not provided, the device default is used.",
|
|
517
788
|
"complexTypes": [],
|
|
518
789
|
"type": "number | undefined"
|
|
519
790
|
},
|
|
520
791
|
{
|
|
521
792
|
"name": "width",
|
|
522
793
|
"tags": [],
|
|
523
|
-
"docs": "The
|
|
794
|
+
"docs": "The desired width of the picture in pixels. If not provided, the device default is used.",
|
|
524
795
|
"complexTypes": [],
|
|
525
796
|
"type": "number | undefined"
|
|
526
797
|
},
|
|
527
798
|
{
|
|
528
799
|
"name": "quality",
|
|
529
|
-
"tags": [
|
|
530
|
-
|
|
800
|
+
"tags": [
|
|
801
|
+
{
|
|
802
|
+
"text": "85",
|
|
803
|
+
"name": "default"
|
|
804
|
+
}
|
|
805
|
+
],
|
|
806
|
+
"docs": "The quality of the captured image, from 0 to 100.\nDoes not apply to `png` format.",
|
|
531
807
|
"complexTypes": [],
|
|
532
808
|
"type": "number | undefined"
|
|
533
809
|
},
|
|
534
810
|
{
|
|
535
811
|
"name": "format",
|
|
536
|
-
"tags": [
|
|
537
|
-
|
|
812
|
+
"tags": [
|
|
813
|
+
{
|
|
814
|
+
"text": "\"jpeg\"",
|
|
815
|
+
"name": "default"
|
|
816
|
+
}
|
|
817
|
+
],
|
|
818
|
+
"docs": "The format of the captured image.",
|
|
538
819
|
"complexTypes": [
|
|
539
820
|
"PictureFormat"
|
|
540
821
|
],
|
|
@@ -545,37 +826,298 @@
|
|
|
545
826
|
{
|
|
546
827
|
"name": "CameraSampleOptions",
|
|
547
828
|
"slug": "camerasampleoptions",
|
|
548
|
-
"docs": "",
|
|
829
|
+
"docs": "Defines the options for capturing a sample frame from the camera preview.",
|
|
549
830
|
"tags": [],
|
|
550
831
|
"methods": [],
|
|
551
832
|
"properties": [
|
|
552
833
|
{
|
|
553
834
|
"name": "quality",
|
|
554
|
-
"tags": [
|
|
555
|
-
|
|
835
|
+
"tags": [
|
|
836
|
+
{
|
|
837
|
+
"text": "85",
|
|
838
|
+
"name": "default"
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"docs": "The quality of the captured sample, from 0 to 100.",
|
|
556
842
|
"complexTypes": [],
|
|
557
843
|
"type": "number | undefined"
|
|
558
844
|
}
|
|
559
845
|
]
|
|
560
846
|
},
|
|
847
|
+
{
|
|
848
|
+
"name": "SupportedPictureSizes",
|
|
849
|
+
"slug": "supportedpicturesizes",
|
|
850
|
+
"docs": "Represents the supported picture sizes for a camera facing a certain direction.",
|
|
851
|
+
"tags": [],
|
|
852
|
+
"methods": [],
|
|
853
|
+
"properties": [
|
|
854
|
+
{
|
|
855
|
+
"name": "facing",
|
|
856
|
+
"tags": [],
|
|
857
|
+
"docs": "The camera direction (\"front\" or \"rear\").",
|
|
858
|
+
"complexTypes": [],
|
|
859
|
+
"type": "string"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"name": "supportedPictureSizes",
|
|
863
|
+
"tags": [],
|
|
864
|
+
"docs": "A list of supported picture sizes for this camera.",
|
|
865
|
+
"complexTypes": [
|
|
866
|
+
"PictureSize"
|
|
867
|
+
],
|
|
868
|
+
"type": "PictureSize[]"
|
|
869
|
+
}
|
|
870
|
+
]
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "PictureSize",
|
|
874
|
+
"slug": "picturesize",
|
|
875
|
+
"docs": "Defines a standard picture size with width and height.",
|
|
876
|
+
"tags": [],
|
|
877
|
+
"methods": [],
|
|
878
|
+
"properties": [
|
|
879
|
+
{
|
|
880
|
+
"name": "width",
|
|
881
|
+
"tags": [],
|
|
882
|
+
"docs": "The width of the picture in pixels.",
|
|
883
|
+
"complexTypes": [],
|
|
884
|
+
"type": "number"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "height",
|
|
888
|
+
"tags": [],
|
|
889
|
+
"docs": "The height of the picture in pixels.",
|
|
890
|
+
"complexTypes": [],
|
|
891
|
+
"type": "number"
|
|
892
|
+
}
|
|
893
|
+
]
|
|
894
|
+
},
|
|
561
895
|
{
|
|
562
896
|
"name": "CameraOpacityOptions",
|
|
563
897
|
"slug": "cameraopacityoptions",
|
|
564
|
-
"docs": "",
|
|
898
|
+
"docs": "Defines the options for setting the camera preview's opacity.",
|
|
565
899
|
"tags": [],
|
|
566
900
|
"methods": [],
|
|
567
901
|
"properties": [
|
|
568
902
|
{
|
|
569
903
|
"name": "opacity",
|
|
570
|
-
"tags": [
|
|
571
|
-
|
|
904
|
+
"tags": [
|
|
905
|
+
{
|
|
906
|
+
"text": "1.0",
|
|
907
|
+
"name": "default"
|
|
908
|
+
}
|
|
909
|
+
],
|
|
910
|
+
"docs": "The opacity percentage, from 0.0 (fully transparent) to 1.0 (fully opaque).",
|
|
572
911
|
"complexTypes": [],
|
|
573
912
|
"type": "number | undefined"
|
|
574
913
|
}
|
|
575
914
|
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"name": "CameraDevice",
|
|
918
|
+
"slug": "cameradevice",
|
|
919
|
+
"docs": "Represents a physical camera on the device (e.g., the front-facing camera).",
|
|
920
|
+
"tags": [],
|
|
921
|
+
"methods": [],
|
|
922
|
+
"properties": [
|
|
923
|
+
{
|
|
924
|
+
"name": "deviceId",
|
|
925
|
+
"tags": [],
|
|
926
|
+
"docs": "A unique identifier for the camera device.",
|
|
927
|
+
"complexTypes": [],
|
|
928
|
+
"type": "string"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"name": "label",
|
|
932
|
+
"tags": [],
|
|
933
|
+
"docs": "A human-readable name for the camera device.",
|
|
934
|
+
"complexTypes": [],
|
|
935
|
+
"type": "string"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"name": "position",
|
|
939
|
+
"tags": [],
|
|
940
|
+
"docs": "The physical position of the camera on the device.",
|
|
941
|
+
"complexTypes": [
|
|
942
|
+
"CameraPosition"
|
|
943
|
+
],
|
|
944
|
+
"type": "CameraPosition"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "lenses",
|
|
948
|
+
"tags": [],
|
|
949
|
+
"docs": "A list of all available lenses for this camera device.",
|
|
950
|
+
"complexTypes": [
|
|
951
|
+
"CameraLens"
|
|
952
|
+
],
|
|
953
|
+
"type": "CameraLens[]"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "minZoom",
|
|
957
|
+
"tags": [],
|
|
958
|
+
"docs": "The overall minimum zoom factor available across all lenses on this device.",
|
|
959
|
+
"complexTypes": [],
|
|
960
|
+
"type": "number"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"name": "maxZoom",
|
|
964
|
+
"tags": [],
|
|
965
|
+
"docs": "The overall maximum zoom factor available across all lenses on this device.",
|
|
966
|
+
"complexTypes": [],
|
|
967
|
+
"type": "number"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"name": "isLogical",
|
|
971
|
+
"tags": [],
|
|
972
|
+
"docs": "Identifies whether the device is a logical camera (composed of multiple physical lenses).",
|
|
973
|
+
"complexTypes": [],
|
|
974
|
+
"type": "boolean"
|
|
975
|
+
}
|
|
976
|
+
]
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"name": "CameraLens",
|
|
980
|
+
"slug": "cameralens",
|
|
981
|
+
"docs": "Represents a single camera lens on a device. A {@link CameraDevice} can have multiple lenses.",
|
|
982
|
+
"tags": [],
|
|
983
|
+
"methods": [],
|
|
984
|
+
"properties": [
|
|
985
|
+
{
|
|
986
|
+
"name": "label",
|
|
987
|
+
"tags": [],
|
|
988
|
+
"docs": "A human-readable name for the lens, e.g., \"Ultra-Wide\".",
|
|
989
|
+
"complexTypes": [],
|
|
990
|
+
"type": "string"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "deviceType",
|
|
994
|
+
"tags": [],
|
|
995
|
+
"docs": "The type of the camera lens.",
|
|
996
|
+
"complexTypes": [
|
|
997
|
+
"DeviceType"
|
|
998
|
+
],
|
|
999
|
+
"type": "DeviceType"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "focalLength",
|
|
1003
|
+
"tags": [],
|
|
1004
|
+
"docs": "The focal length of the lens in millimeters.",
|
|
1005
|
+
"complexTypes": [],
|
|
1006
|
+
"type": "number"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"name": "baseZoomRatio",
|
|
1010
|
+
"tags": [],
|
|
1011
|
+
"docs": "The base zoom factor for this lens (e.g., 0.5 for ultra-wide, 1.0 for wide).",
|
|
1012
|
+
"complexTypes": [],
|
|
1013
|
+
"type": "number"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "minZoom",
|
|
1017
|
+
"tags": [],
|
|
1018
|
+
"docs": "The minimum zoom factor supported by this specific lens.",
|
|
1019
|
+
"complexTypes": [],
|
|
1020
|
+
"type": "number"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "maxZoom",
|
|
1024
|
+
"tags": [],
|
|
1025
|
+
"docs": "The maximum zoom factor supported by this specific lens.",
|
|
1026
|
+
"complexTypes": [],
|
|
1027
|
+
"type": "number"
|
|
1028
|
+
}
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "LensInfo",
|
|
1033
|
+
"slug": "lensinfo",
|
|
1034
|
+
"docs": "Represents the detailed information of the currently active lens.",
|
|
1035
|
+
"tags": [],
|
|
1036
|
+
"methods": [],
|
|
1037
|
+
"properties": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "focalLength",
|
|
1040
|
+
"tags": [],
|
|
1041
|
+
"docs": "The focal length of the active lens in millimeters.",
|
|
1042
|
+
"complexTypes": [],
|
|
1043
|
+
"type": "number"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"name": "deviceType",
|
|
1047
|
+
"tags": [],
|
|
1048
|
+
"docs": "The device type of the active lens.",
|
|
1049
|
+
"complexTypes": [
|
|
1050
|
+
"DeviceType"
|
|
1051
|
+
],
|
|
1052
|
+
"type": "DeviceType"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "baseZoomRatio",
|
|
1056
|
+
"tags": [],
|
|
1057
|
+
"docs": "The base zoom ratio of the active lens (e.g., 0.5x, 1.0x).",
|
|
1058
|
+
"complexTypes": [],
|
|
1059
|
+
"type": "number"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"name": "digitalZoom",
|
|
1063
|
+
"tags": [],
|
|
1064
|
+
"docs": "The current digital zoom factor applied on top of the base zoom.",
|
|
1065
|
+
"complexTypes": [],
|
|
1066
|
+
"type": "number"
|
|
1067
|
+
}
|
|
1068
|
+
]
|
|
1069
|
+
}
|
|
1070
|
+
],
|
|
1071
|
+
"enums": [
|
|
1072
|
+
{
|
|
1073
|
+
"name": "DeviceType",
|
|
1074
|
+
"slug": "devicetype",
|
|
1075
|
+
"members": [
|
|
1076
|
+
{
|
|
1077
|
+
"name": "ULTRA_WIDE",
|
|
1078
|
+
"value": "\"ultraWide\"",
|
|
1079
|
+
"tags": [],
|
|
1080
|
+
"docs": ""
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "WIDE_ANGLE",
|
|
1084
|
+
"value": "\"wideAngle\"",
|
|
1085
|
+
"tags": [],
|
|
1086
|
+
"docs": ""
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "TELEPHOTO",
|
|
1090
|
+
"value": "\"telephoto\"",
|
|
1091
|
+
"tags": [],
|
|
1092
|
+
"docs": ""
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"name": "TRUE_DEPTH",
|
|
1096
|
+
"value": "\"trueDepth\"",
|
|
1097
|
+
"tags": [],
|
|
1098
|
+
"docs": ""
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"name": "DUAL",
|
|
1102
|
+
"value": "\"dual\"",
|
|
1103
|
+
"tags": [],
|
|
1104
|
+
"docs": ""
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "DUAL_WIDE",
|
|
1108
|
+
"value": "\"dualWide\"",
|
|
1109
|
+
"tags": [],
|
|
1110
|
+
"docs": ""
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"name": "TRIPLE",
|
|
1114
|
+
"value": "\"triple\"",
|
|
1115
|
+
"tags": [],
|
|
1116
|
+
"docs": ""
|
|
1117
|
+
}
|
|
1118
|
+
]
|
|
576
1119
|
}
|
|
577
1120
|
],
|
|
578
|
-
"enums": [],
|
|
579
1121
|
"typeAliases": [
|
|
580
1122
|
{
|
|
581
1123
|
"name": "CameraPosition",
|
|
@@ -610,7 +1152,7 @@
|
|
|
610
1152
|
{
|
|
611
1153
|
"name": "CameraPreviewFlashMode",
|
|
612
1154
|
"slug": "camerapreviewflashmode",
|
|
613
|
-
"docs": "",
|
|
1155
|
+
"docs": "The available flash modes for the camera.\n'torch' is a continuous light mode.",
|
|
614
1156
|
"types": [
|
|
615
1157
|
{
|
|
616
1158
|
"text": "\"off\"",
|
|
@@ -624,15 +1166,24 @@
|
|
|
624
1166
|
"text": "\"auto\"",
|
|
625
1167
|
"complexTypes": []
|
|
626
1168
|
},
|
|
627
|
-
{
|
|
628
|
-
"text": "\"red-eye\"",
|
|
629
|
-
"complexTypes": []
|
|
630
|
-
},
|
|
631
1169
|
{
|
|
632
1170
|
"text": "\"torch\"",
|
|
633
1171
|
"complexTypes": []
|
|
634
1172
|
}
|
|
635
1173
|
]
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"name": "FlashMode",
|
|
1177
|
+
"slug": "flashmode",
|
|
1178
|
+
"docs": "",
|
|
1179
|
+
"types": [
|
|
1180
|
+
{
|
|
1181
|
+
"text": "CameraPreviewFlashMode",
|
|
1182
|
+
"complexTypes": [
|
|
1183
|
+
"CameraPreviewFlashMode"
|
|
1184
|
+
]
|
|
1185
|
+
}
|
|
1186
|
+
]
|
|
636
1187
|
}
|
|
637
1188
|
],
|
|
638
1189
|
"pluginConfigs": []
|