Support hints for a subset of the barcode types.

This commit is contained in:
plougsgaard
2016-09-15 21:30:00 +02:00
parent 918c00f003
commit 05b5fc727d
4 changed files with 97 additions and 6 deletions
@@ -18,6 +18,7 @@ public class RCTCamera {
private final HashMap<Integer, Integer> _cameraTypeToIndex;
private final Map<Number, Camera> _cameras;
private boolean _barcodeScannerEnabled = false;
private List<String> _barCodeTypes = null;
private int _orientation = -1;
private int _actualDeviceOrientation = 0;
private int _adjustedDeviceOrientation = 0;
@@ -143,6 +144,14 @@ public class RCTCamera {
_barcodeScannerEnabled = barcodeScannerEnabled;
}
public List<String> getBarCodeTypes() {
return _barCodeTypes;
}
public void setBarCodeTypes(List<String> barCodeTypes) {
_barCodeTypes = barCodeTypes;
}
public int getActualDeviceOrientation() {
return _actualDeviceOrientation;
}