Using setZoom with android IntentIntegrator

120 views
Skip to first unread message

Matthew Ng

unread,
May 17, 2018, 3:29:30 AM5/17/18
to zxing
I'm currently trying to zoom the camera in my barcode scanner app while using this code for the scan.

private void scanOne() {
// get the login details for checking

IntentIntegrator integrator = new IntentIntegrator(this);
integrator.setCaptureActivity(CaptureActivityEins.class);
integrator.setDesiredBarcodeFormats(IntentIntegrator.ALL_CODE_TYPES);
integrator.setPrompt(" ");
integrator.setCameraId(0); // Use a specific camera of the device
integrator.setBeepEnabled(true);
integrator.initiateScan();

}

However, it does not seem to have anyway to setZoom(), i tried opening a camera in the activity and setting zoom in the configuration but it doesn't seem to work.

Is there any way to call the setZoom() of the scan which is initiated by the integrator?

Reply all
Reply to author
Forward
0 new messages