17 lines
343 B
JavaScript
17 lines
343 B
JavaScript
|
var argscheck = require('cordova/argscheck'),
|
||
|
exec = require('cordova/exec');
|
||
|
|
||
|
function ZBar () {};
|
||
|
|
||
|
ZBar.prototype = {
|
||
|
|
||
|
scan: function (params, success, failure)
|
||
|
{
|
||
|
argscheck.checkArgs('*fF', 'CsZBar.scan', arguments);
|
||
|
exec(success, failure, 'CsZBar', 'scan', [params]);
|
||
|
},
|
||
|
|
||
|
};
|
||
|
|
||
|
module.exports = new ZBar;
|