Files
customCamera/www/customCamera.js
T

34 lines
689 B
JavaScript

/**
* Permet de faire l'interface entre phonegap et l'application customcamera en java.
*/
'use strict';
var exec = require('cordova/exec');
// constructor.
var customCameraExport = function() {
};
// add method.
customCameraExport.prototype.getPicture = function() {
alert("Oh yeah !");
};
customCameraExport.prototype.startCamera = function() {
exec(
function(result) {
console.log("success");
console.log(result);
},
function(result) {
console.log("fail");
console.log(result);
},
"CustomCamera",
"testAction",
[]
);
};
module.exports = new customCameraExport();