Skip to content

dloeda/cordova-plugin-detect-screenshot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Detects screenshots on Cordova for iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%