9
0
mirror of https://gitee.com/shuto/customCamera.git synced 2026-05-02 00:07:24 +08:00
Files
customCamera/www/customCamera.js
T

34 lines
689 B
JavaScript
Raw Normal View History

/**
* 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 !");
};
2014-11-10 10:09:52 +01:00
customCameraExport.prototype.startCamera = function() {
2014-11-10 10:42:47 +01:00
exec(
2014-11-10 10:09:52 +01:00
function(result) {
console.log("success");
console.log(result);
},
function(result) {
console.log("fail");
console.log(result);
},
2014-11-10 10:36:02 +01:00
"CustomCamera",
"testAction",
2014-11-10 10:09:52 +01:00
[]
);
};
module.exports = new customCameraExport();