forked from AlejandroOrozco/cordova-plugin-detect-screenshot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5ec971
commit f857a12
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |