Capturar screenshot con IONIC Cordova

ionic cordova plugin add com.darktalker.cordova.screenshot

npm install @ionic-native/screenshot

import { 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