ionic cordova plugin add com.darktalker.cordova.screenshot
npm install @ionic-native/screenshotimport { Screenshot } from '@ionic-native/screenshot';
Screenshot.save('jpg', 80, 'myscreenshot.jpg').then(res => {
this.url = res.filepath;
});
**No poner Screenshot en el constructor ni en app.module!!!
No hay comentarios:
Publicar un comentario