17 lines
464 B
JavaScript
17 lines
464 B
JavaScript
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', []);
|
|
}
|
|
};
|