9
0
mirror of https://gitee.com/shuto/customCamera.git synced 2026-02-16 00:00:09 +08:00
Files
customCamera/www/customCamera.js
2014-11-10 11:19:27 +01:00

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();