Screenshot plugin

bobbijvoet0.1.03
platforms: ios
$ cordova plugin add nl.bobbijvoet.screenshot-plugin

Screenshot plugin for Phonegap 3

Screenshot plugin based on this plugin for Phonegap 1.6. Currently only for iOs.

Installation

  • Make sure that you have Node and PhoneGap CLI installed on your machine.

  • Create your PhoneGap example app

phonegap create my-plugin-example-app && cd $_
  • Add the plugin to it
phonegap local plugin add https://github.com/bobbijvoet/phonegap3-screenshot-plugin
  • Open `index.html and add a button
<button onclick="Screenshot.saveScreenshot();">Take screenshot</button>
  • Register plugin within config.xml of your app
<feature name="Screenshot">
    <param name="ios-package" value="Screenshot" />
</feature>
  • Build and run app
phonegap run ios

Author

Bob Bijvoet