From 13d6f216e494bd136ec2383bd7c4c5ce615bffce Mon Sep 17 00:00:00 2001 From: Christophe BOUCAUT Date: Wed, 19 Nov 2014 12:33:30 +0100 Subject: [PATCH] =?UTF-8?q?On=20passe=20les=20m=C3=A9thodes=20de=20callbac?= =?UTF-8?q?k=20lors=20de=20l'appel=20de=20la=20cam=C3=A9ra=20en=20js.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/customCamera.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/www/customCamera.js b/www/customCamera.js index 9aed4ad..4e9311f 100644 --- a/www/customCamera.js +++ b/www/customCamera.js @@ -10,16 +10,10 @@ var exec = require('cordova/exec'); var customCameraExport = function() { }; -customCameraExport.prototype.startCamera = function(imgBackgroundBase64) { +customCameraExport.prototype.startCamera = function(imgBackgroundBase64, successFct, failFct) { exec( - function(result) { - console.log("success"); - console.log(result); - }, - function(result) { - console.log("fail"); - console.log(result); - }, + successFct, + failFct, "CustomCamera", "startCamera", [imgBackgroundBase64]