cordova-plugin-screenprivacy-cxm
v2.0.0
Published
Cordova plugin to handle screenshot
Downloads
8
Maintainers
Readme
cordova-plugin-screenprivacy-cxm
Plugin can stop screenshot, screen capture and preview from app switcher on iOS and Android
Installation [Stable]
cordova plugin add [email protected]
For local setup / plugin development and enhancement
- clone the repository to cordova directory
- cordova plugin add ./cordova-plugin-screenprivacy-cxm
Usage
// {"message": "success or failure", "reason": "reason in case of error"}
function successCallback(result) {
console.log(result);
}
// {"message": "success or failure", "reason": "reason in case of error"}
function errorCallback(error) {
console.log(error);
}
// To block screen recording and screenshots in android and screen recording in ios
// Alternative: unblockAppScreen()
window.plugins.screenprivacy.blockAppScreen(
successCallback, errorCallback
);
// Alternative: unblockAppSwitcher()
// To block only screens in app switcher on android and ios
window.plugins.screenprivacy.blockAppSwitcher({}, {});
Can activate both feature at the same time to enable full screen privacy that possibly provided by the playform