BarcodeScanner

This commit is contained in:
Rickard Ekman
2016-02-02 15:35:45 +01:00
parent 536a8e5898
commit c94fe23d2a
25 changed files with 318 additions and 7 deletions
+15
View File
@@ -5,6 +5,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var plugin_1 = require('./plugin');
/**
* Take a photo or capture video.
*
* Requires Cordova plugin: `cordova-plugin-camera`. For more info, please see the [Cordova Camera Plugin Docs](https://github.com/apache/cordova-plugin-camera).
*
* @usage
* ```js
* Camera.getPicture(options).then((imageData) => {
* // imageData is either a base64 encoded string or a file URI
* // If it's base64:
* let base64Image = "data:image/jpeg;base64," + imageData;
* }, (err) => {
* });
* ```
*/
var Camera = (function () {
function Camera() {
}