imb_pluginxbix0l0ff
v1.0.6
Published
IMB plugin per bixoloff
Downloads
2
Readme
BixolonPrint Corodva Plugin
Cross-platform BixolonPrint Plugin for Cordova / PhoneGap.
Supported Platforms
- Android
- iOS
Using the plugin
The plugin creates the object cordova/plugin/BixolonPrint
with following methods:
Add line to print
cordova.plugins.bixolonPrint.addLine({
text : String, // text to print
textAlign : String, // text align, default left
textWidth : int, // text width, default 0
textHeight : int, // text height, default 0
fontType : String, // font type, A or B
fontStyle : String // font style, bold or underlined or reversed
});
Add line separator
cordova.plugins.bixolonPrint.addHr(simbol String);
Print text lines
cordova.plugins.bixolonPrint.printText(successCallback, errorCallback, cutPaper int);
Cut paper
cordova.plugins.bixolonPrint.cutPaper(successCallback, errorCallback, lineNumber int);
Get printer status
cordova.plugins.bixolonPrint.getStatus(successCallback, errorCallback, printStatus Boolean);
Examples
cordova.plugins.bixolonPrint.addLine("hello cordova!");
cordova.plugins.bixolonPrint.printText(null, null);