Merge branch 'master' of https://github.com/nkjf5/cordova-plugin-printer into nkjf5-master
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user