plugins.svyphonegapBarcode.scan(scanSuccess,scanFail)
function scanSuccess(result){
application.output(
"We got a barcode\n" +
"Result: " + result.text + "\n" +
"Format: " + result.format + "\n" +
"Cancelled: " + result.cancelled)
}
function scanFail(err){
application.output('error : ' + err)
}