Several iOS specific options (closes #59)
This commit is contained in:
parent
031f4b385a
commit
ea404a0acd
@ -7,6 +7,7 @@
|
|||||||
- [enhancement:] `print` returns bool value to indicate the result
|
- [enhancement:] `print` returns bool value to indicate the result
|
||||||
- [enhancement:] Added missing `duplex` support (Android)
|
- [enhancement:] Added missing `duplex` support (Android)
|
||||||
- [__change__:] `duplex` requires a string (`none`, `long` or `short`)
|
- [__change__:] `duplex` requires a string (`none`, `long` or `short`)
|
||||||
|
- [enhancement:] Support for `hidePageRange`, `hideNumberOfCopies` and `hidePaperFormat` (iOS specific)
|
||||||
|
|
||||||
|
|
||||||
#### Version 0.7.1 (23.04.2015)
|
#### Version 0.7.1 (23.04.2015)
|
||||||
|
@ -140,7 +140,10 @@
|
|||||||
printInfo.jobName = [settings objectForKey:@"name"];
|
printInfo.jobName = [settings objectForKey:@"name"];
|
||||||
|
|
||||||
controller.printInfo = printInfo;
|
controller.printInfo = printInfo;
|
||||||
controller.showsPageRange = NO;
|
|
||||||
|
controller.showsPageRange = ![[settings objectForKey:@"hidePageRange"] boolValue];
|
||||||
|
controller.showsNumberOfCopies = ![[settings objectForKey:@"hideNumberOfCopies"] boolValue];
|
||||||
|
controller.showsPaperSelectionForLoadedPapers = ![[settings objectForKey:@"hidePaperFormat"] boolValue];
|
||||||
|
|
||||||
return controller;
|
return controller;
|
||||||
}
|
}
|
||||||
|
@ -28,10 +28,16 @@ var exec = require('cordova/exec');
|
|||||||
*/
|
*/
|
||||||
exports.getDefaults = function () {
|
exports.getDefaults = function () {
|
||||||
return {
|
return {
|
||||||
|
// Platform independent
|
||||||
name: 'unknown',
|
name: 'unknown',
|
||||||
duplex: 'none',
|
duplex: 'none',
|
||||||
landscape: false,
|
landscape: false,
|
||||||
graystyle: false,
|
graystyle: false,
|
||||||
|
// iOS specific
|
||||||
|
hidePageRange: false,
|
||||||
|
hideNumberOfCopies: false,
|
||||||
|
hidePaperFormat: false,
|
||||||
|
// iPad specific
|
||||||
bounds: [40, 30, 0, 0]
|
bounds: [40, 30, 0, 0]
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user