Skip to content

Commit 688acd8

Browse files
committed
fix: Remove enablePrecapture
1 parent 86c0f86 commit 688acd8

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

package/android/src/main/java/com/mrousavy/camera/CameraView+TakePhoto.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ suspend fun CameraView.takePhoto(optionsMap: ReadableMap): WritableMap {
1919

2020
val flash = options["flash"] as? String ?: "off"
2121
val enableShutterSound = options["enableShutterSound"] as? Boolean ?: true
22-
val enablePrecapture = options["enablePrecapture"] as? Boolean ?: false
2322

2423
val photo = cameraSession.takePhoto(
2524
Flash.fromUnionValue(flash),

package/src/PhotoFile.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ export interface TakePhotoOptions {
2929
* @default true
3030
*/
3131
enableShutterSound?: boolean
32-
/**
33-
* Whether to run the pre-capture sequence to properly lock AF, AE and AWB values.
34-
* Enabling this results in greater photos, but might not work on some devices.
35-
*
36-
* @platform Android
37-
* @default false
38-
*/
39-
enablePrecapture?: boolean
4032
}
4133

4234
/**

0 commit comments

Comments
 (0)