Screenshot

Contents

Captures a screen shot

Installation

ionic cordova plugin add com.darktalker.cordova.screenshotnpm install @ionic-native/screenshot
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/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);