cordova-plugin-detect-screenshot

1.0.8 • Public • Published

cordova-plugin-detect-screenshot

Detects screenshots on Cordova for iOS. The plugin will only work on devices with iOS >= 7, however feel free to include this plugin in projects with a lower target than iOS 7. The plugin checks the iOS version before listening for events, so it won't break anything.

Installation

cordova plugin add cordova-plugin-detect-screenshot

Usage

When a screenshot occurs, a 'screenshot' event is triggered. Simply listen for this event in your javascript.

document.addEventListener("screenshot", function() {
    window.alert("Screenshot");
}, false);

License

MIT.

Package Sidebar

Install

npm i cordova-plugin-detect-screenshot

Weekly Downloads

148

Version

1.0.8

License

MIT

Unpacked Size

4.58 kB

Total Files

6

Last publish

Collaborators

  • lukemiles