Update docs
This commit is contained in:
parent
42b439b4cb
commit
6b4972918e
@ -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.
|
||||
|
||||
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
|
||||
cordova.plugins.printer.print();
|
||||
|
Loading…
Reference in New Issue
Block a user