mirror of
https://github.com/shuto-cn/UHF_HARDWARE_KEY.git
synced 2026-04-15 00:00:04 +08:00
14 lines
343 B
JavaScript
14 lines
343 B
JavaScript
var exec = require('cordova/exec');
|
|
|
|
var coolMethod = function () {};
|
|
|
|
coolMethod.startListen = function (success, error) {
|
|
exec(success, error, 'hardwearKey', 'startListen', []);
|
|
}
|
|
|
|
coolMethod.stopListen = function (success, error) {
|
|
exec(success, error, 'hardwearKey', 'stopListen', []);
|
|
}
|
|
|
|
module.exports = coolMethod;
|