Added an option for camera flash to be on/off/auto during QR code scanning
This commit is contained in:
@@ -13,6 +13,7 @@ ZBar.prototype = {
|
||||
if(params.text_title === undefined) params.text_title = "Scan QR Code";
|
||||
if(params.text_instructions === undefined) params.text_instructions = "Please point your camera at the QR code.";
|
||||
if(params.camera != "front") params.camera = "back";
|
||||
if(params.flash != "on" && params.flash != "off") params.flash = "auto";
|
||||
|
||||
exec(success, failure, 'CsZBar', 'scan', [params]);
|
||||
},
|
||||
|
Reference in New Issue
Block a user