2021-09-24 11:54:23 +08:00

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', []);
}
};