var exec = require('cordova/exec'); module.exports = { startScan(success, error) { exec(success, error, 'RedLightScan', 'startScan', []); }, stopScan(success, error) { exec(success, error, 'RedLightScan', 'stopScan', []); }, registerReceiver(success, error) { exec(success, error, 'RedLightScan', 'registerReceiver', []); }, unregisterReceiver(success, error) { exec(success, error, 'RedLightScan', 'unregisterReceiver', []); } };