The Screenshot plugin allows your application to take screenshots of the current screen and save them into the phone.
##how to install
install it via cordova cli
cordova plugin add https://github.com/gitawego/cordova-screenshot.git
##usage
navigator.screenshot.save(function(error,res){
if(error){
console.error(error);
}else{
console.log('ok',res.filePath);
}
});
take screenshot with jpg and custom quality
navigator.screenshot.save(function(error,res){
if(error){
console.error(error);
}else{
console.log('ok',res.filePath);
}
},'jpg',50);
screenshot files are stored in /sdcard/Pictures for android.
this repo uses the MIT license