Skip to content

dendrochronology/cordova-plugin-camerapicturebackground

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-camerapicturebackground

Automatically take Picture from Android Smartphones without any User Interactions.

###Supported Platform

  • Android

###Installation

Plugin can be installed using the Command Line Interface:

cordova plugin add https://github.com/an-rahulpandey/cordova-plugin-camerapicturebackground.git

###Plugin Usage

var options = {
    name: "Image", //image suffix
    dirName: "CameraPictureBackground", //foldername
    orientation: "landscape", //or portrait
    type: "back" //or front
};

window.plugins.CameraPictureBackground.takePicture(success, error, options);

function success(imgurl) {
    console.log("Imgurl = " + imgurl);
}

#####Here options are

name = Suffix to be added while saving the image for.e.g Image-yyyymmddhhmmss

dirName = Folder will be created with this name in Pictures directory of external storage.

orientation = while taking the picture, camera should be in landscape or portrait mode.

type = Either to use front or bank camera.

###Credits

Stackoverflow user Sam - http://stackoverflow.com/a/27083867/1584921

About

Automatically take Picture from Android Smartphones without any User Interactions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 65.9%
  • JavaScript 19.9%
  • HTML 14.2%