No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
trykov
trykov small fix
Latest commit b7a769b Sep 4, 2016
Permalink
Failed to load latest commit information.
src/ios small fix Sep 4, 2016
www Initial commit Jun 5, 2016
LICENSE Initial commit Jun 5, 2016
README.md ios platform version >=4.x.x Jun 22, 2016
blurredScreenShot.png Initial commit Jun 5, 2016
package.json small fix Sep 4, 2016
plugin.xml small fix Sep 4, 2016

README.md

iOS Blurred Snapshot Plugin for Apache Cordova

Use this plugin to keep sensitive information from views before moving to the background. As apple recommends

Made with WWDC 2013 UIImage+ImageEffects

iOS 8 UIBlurEffect is less configurable(No API for Radius)

Install

cordova-ios platform >= 4.0.0

cordova plugin add cordova-plugin-blurred-snapshot

Locally

cordova plugin add https://github.com/trykovyura/cordova-plugin-blurred-snapshot.git

Usage

Depends on application events: "pause" and "resume". Apply plugin method "addBlurredSnapshot" on "pause" to add blurred snapshot for app. Apply plugin method "removeBlurredSnapshot" on "resume" to remove blurred snapshot.

Example

 document.addEventListener('pause', onPause, false);
 document.addEventListener('resume', onResume, false);

 function onPause() {
    blurredsnapshot.addBlurredSnapshot();
 }

 function onResume() {
    blurredsnapshot.removeBlurredSnapshot();
 }

Platform Support

iOS only. Tested in iOS7+, might work on older iOS versions

License

MIT License