Skip to content

americademy/cordova-screen-capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Screen Capture

Enables full-screen capture of the current app view

Install

Cordova CLI:

cordova plugin add https://github.com/americademy/cordova-screen-capture.git

Usage

// quality: default 1 (0.0 low - 1.0 high)
// scale: default 1, (0.5 is 50% the original size)
// screenCapture.save(callback, quality, scale);

// jpg data:uri
navigator.screenCapture.save(function(error, response) {
  // if error
  if (error) { console.error(error); }

  // otherwise
  console.log('success', response.filePath);
}, 0.1, 1);

NOTE: Only JPG is supported

About

📱 Cordova Screen Capture Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published