/cordova-plugin-honeywell-printer

a plugin for cordova , used to print image in iOS/Android .this printer device just support Honeywell pc42t/pc43t.

Primary LanguageObjective-C

cordova plugin honeywell printer

A Cordova plugin to print images in Android and iOS , our plugin just supports Honeywell printer models now .

本插件可用于手机端打印,打印机型号: 霍尼韦尔 PC42t.

Installation

With cordova-cli

If you are using cordova-cli, install with:

cordova plugin add https://github.com/lulouis/cordova-plugin-honeywell-printer.git

With plugman

With a plain plugman, you should be able to install with something like:

plugman --platform <ios|android> --project <directory> --plugin https://github.com/lulouis/cordova-plugin-honeywell-printer.git

Manually in iOS

TODO: Write these instructions

Manually in Android

TODO: Write these instructions

Use from Javascript

If you are using jQuery, AngularJS, WinJS or any Promise/A library (Bluebird), promise style is supported. Use something like:

cordova.getAppVersion.getVersionNumber().then(function (version) {
    $('.version').text(version);
});

If not, pass a callback function:

cordova.getAppVersion.getVersionNumber(function (version) {
    alert(version);
});

In addition to the version number you can also retrieve other details about your application:

## Credits

Original code based on the following Stack Overflow posts: