Open nicolastilly opened 7 years ago
Hi,
I want to use cordova-screenshot but i need help to start :) I install it via cordova cli. After, that i want to test in the Hello World cordova app for ios.
So, where do i put this code? In the index.html like this? :
<script> function screeen () { navigator.screenshot.save(function(error, res) { if (error) { console.error(error); } else { console.log('ok', res.filePath); } }, 'jpg', 50); } </script>
After that, i want to add a button in my page to take a screenshot of the screen. Is this the good way? :
<button class="btn" onclick="screenshot()">SHARE</button>
Thank you very much for your help.
Hi,
I want to use cordova-screenshot but i need help to start :) I install it via cordova cli. After, that i want to test in the Hello World cordova app for ios.
So, where do i put this code? In the index.html like this? :
After that, i want to add a button in my page to take a screenshot of the screen. Is this the good way? :
<button class="btn" onclick="screenshot()">SHARE</button>
Thank you very much for your help.