Search docs/
Getting StartedPlugins

Screenshot

Captures a screen shot

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

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Contact Us Today!

Installation

ionic cordova plugin add com.darktalker.cordova.screenshotnpm install @ionic-native/screenshotnpm install com.darktalker.cordova.screenshotnpm install @ionic-native/screenshotionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS
  • macOS

Usage

React

See here.

Angular

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);