2018-04-27 06:54:16 -04:00
|
|
|
var exec = require('cordova/exec');
|
|
|
|
|
|
|
|
exports.discover = function (success, error) {
|
2018-05-05 22:33:38 -04:00
|
|
|
exec(success, error, 'ZebraPrinter', 'discover', []);
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.connect = function (address, success, error) {
|
|
|
|
exec(success, error, 'ZebraPrinter', 'connect', [address]);
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.disconnect = function (success, error) {
|
|
|
|
exec(success, error, 'ZebraPrinter', 'disconnect', []);
|
|
|
|
};
|
|
|
|
|
2019-04-04 11:52:01 -04:00
|
|
|
exports.printerStatus = function(success, error){
|
|
|
|
exec(success, error, 'ZebraPrinter', 'printerStatus', []);
|
|
|
|
}
|
|
|
|
|
2018-05-05 22:33:38 -04:00
|
|
|
exports.isConnected = function (success, error) {
|
|
|
|
exec(success, error, 'ZebraPrinter', 'isConnected', []);
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.print = function (cpcl, success, error) {
|
|
|
|
exec(success, error, 'ZebraPrinter', 'print', [cpcl]);
|
2018-04-27 06:54:16 -04:00
|
|
|
};
|