Git Product home page Git Product logo

cordova-plugin-camerapicturebackground's Introduction

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

cordova-plugin-camerapicturebackground's People

Contributors

an-rahulpandey avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.