Giter Club home page Giter Club logo

cordova-plugin-ezar-snapshot's Introduction

Deprecated - no longer supported.

ezAR Snapshot Cordova Plugin

Capture images of the application user interface in JPG or PNG format.
Optionally, save the image to the default photo gallery.

Works with or without the VideoOverlay plugin. When the VideoOverlay plugin is not installed
or does not have an active camera then the snapshot image will only include
the WebView content.

Supported Platforms

  • iOS 7 and greater
  • Android 4.2 and greater

Getting Started

Add the snapshot plugin to your Corodva project the Cordova CLI

    cordova plugin add pathToEzar/com.ezartech.ezar.snapshot

Next in your Cordova JavaScript deviceready handler include the following
JavaScript snippet to initialize ezAR and activate the camera on the back of the device.

    ezar.snapshot(
        function(base64Image) {
            //do something with the image
            },
        function(err) {
            alert('snapshot error: ' + err);
            },       
        {"saveToPhotoAlbum":true,
         "encoding": ezAR.ImageEncoding.PNG}
        )

Additional Documentation

See ezartech.com for documentation and support.

License

The ezAR Snapshot is licensed under a modified MIT license.

Copyright (c) 2015-2016, ezAR Technologies

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.