Merge branch 'master' of https://github.com/nkjf5/cordova-plugin-printer into nkjf5-master

This commit is contained in:
Sebastián Katzer
2016-07-25 14:19:06 +02:00
4 changed files with 130 additions and 1 deletions

View File

@@ -59,6 +59,21 @@ exports.isAvailable = function (callback, scope) {
exec(fn, null, 'Printer', 'isAvailable', []);
};
/**
* Displays system interface for selecting a printer (iOS only)
*
* @param {Function} callback
* A callback function
* @param {Object} options
* Options for the printer picker
*/
exports.printerPicker = function (callback, options) {
var fn = this._createCallbackFn(callback);
var params = options || {};
params = this.mergeWithDefaults(params);
exec(fn, null, 'Printer', 'printerPicker', [params]);
};
/**
* Sends the content to the Google Cloud Print service.
*