/cordova-plugin-printer

Cordova plugin to print out HTML documents

Primary LanguageObjective-CApache License 2.0Apache-2.0

Cordova Print Plugin

Fork of katzer's plugin. Bugfix on isAvailable method that now is called isServiceAvailable

/**
 * Checks if the printer service is avaible (iOS)
 * or if connected to the Internet (Android).
 *
 * @param {Function} callback
 *      A callback function
 * @param {Object?} scope
 *      The scope of the callback (default: window)
 *
 * @return {Boolean}
 */
cordova.plugins.printer.isServiceAvailable(
    function (isAvailable) {
        alert(isAvailable ? 'Service is available' : 'Service NOT available');
    }
);

Installation

# ~~ from master ~~
cordova plugin add https://github.com/engbmsdev/cordova-plugin-printer.git

Credits

All rights reserved to appPlant UG, Inc.

Thanks to: katzer