Update docs

This commit is contained in:
Sebastián Katzer 2019-02-12 12:26:53 +01:00
parent 42b439b4cb
commit 6b4972918e

View File

@ -34,7 +34,13 @@ Plugin for [Cordova][cordova] to print documents or photos from iOS, Android and
The plugin creates the object `cordova.plugins.printer` and is accessible after the *deviceready* event has been fired. The plugin creates the object `cordova.plugins.printer` and is accessible after the *deviceready* event has been fired.
To print a screenshot of the app: ```js
document.addEventListener('deviceready', function () {
// cordova.plugins.printer is now available
}, false);
```
Print a screenshot of the web view:
```javascript ```javascript
cordova.plugins.printer.print(); cordova.plugins.printer.print();