Added support for Apple's UIPrinterPickerController

This commit is contained in:
Justin Fisher
2015-06-23 12:58:41 -05:00
parent 517dc364e8
commit 6d864a32a7
4 changed files with 123 additions and 0 deletions

View File

@@ -57,6 +57,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.
*