Skip to content

gabrielecirulli/cordova-screenshot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-screenshot

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.

License

this repo uses the MIT license

About

screenshot plugin for cordova/phonegap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 44.7%
  • Objective-C 41.7%
  • JavaScript 13.6%