mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-09-02 06:31:09 +00:00
add captureQuality option
This commit is contained in:
@@ -17,6 +17,7 @@ public class RCTCameraView extends ViewGroup {
|
||||
private RCTCameraViewFinder _viewFinder = null;
|
||||
private int _actualDeviceOrientation = -1;
|
||||
private int _aspect = RCTCameraModule.RCT_CAMERA_ASPECT_FIT;
|
||||
private String _captureQuality = "high";
|
||||
private int _torchMode = -1;
|
||||
private int _flashMode = -1;
|
||||
|
||||
@@ -66,6 +67,13 @@ public class RCTCameraView extends ViewGroup {
|
||||
}
|
||||
}
|
||||
|
||||
public void setCaptureQuality(String captureQuality) {
|
||||
this._captureQuality = captureQuality;
|
||||
if (this._viewFinder != null) {
|
||||
this._viewFinder.setCaptureQuality(captureQuality);
|
||||
}
|
||||
}
|
||||
|
||||
public void setTorchMode(int torchMode) {
|
||||
this._torchMode = torchMode;
|
||||
if (this._viewFinder != null) {
|
||||
|
||||
Reference in New Issue
Block a user