var exec = require('cordova/exec'); exports.startredscan = function(success, error) { exec(success, error, "ubxredscan", "startredscan", []); }; exports.stopredscan = function(success, error) { exec(success, error, "ubxredscan", "stopredscan", []); }; exports.initredscan = function(success, error) { exec(success, error, "ubxredscan", "initredscan", []); }; exports.closeScanner = function(success, error) { exec(success, error, "ubxredscan", "closeScanner", []); }; exports.lockTrigger = function(success, error) { exec(success, error, "ubxredscan", "lockTrigger", []); }; exports.unlockTrigger = function(success, error) { exec(success, error, "ubxredscan", "unlockTrigger", []); }; exports.resetScannerParameters = function(success, error) { exec(success, error, "ubxredscan", "resetScannerParameters", []); };