From f857a122b9ea5984dc8723642ecd3acc7ed01f3a Mon Sep 17 00:00:00 2001 From: Luke Miles Date: Sun, 6 Dec 2015 13:36:26 +0100 Subject: [PATCH] Add examples to readme --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eef0904..4390fbf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # cordova-plugin-detect-screenshot -Detects screenshots on Cordova for iOS +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.