Added initial Android implementation (with plugin.xml and JS interface)

This commit is contained in:
TJ Woon
2014-09-11 15:52:59 +08:00
parent e9e669b4c2
commit 1b6217e73d
12 changed files with 483 additions and 0 deletions

16
www/zBar.js Normal file
View File

@@ -0,0 +1,16 @@
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;