Screenshot

Contents

Captures a screen shot

https://github.com/gitawego/cordova-screenshot

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add com.darktalker.cordova.screenshot npm install @ionic-native/screenshot
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/screenshot

Supported Platforms

  • Android
  • iOS
  • macOS

Usage

import { Screenshot } from '@ionic-native/screenshot/ngx';

constructor(private screenshot: Screenshot) { }

...

// Take a screenshot and save to file
this.screenshot.save('jpg', 80, 'myscreenshot.jpg').then(onSuccess, onError);

// Take a screenshot and get temporary file URI
this.screenshot.URI(80).then(onSuccess, onError);