mirror of
https://gitee.com/shuto/customCamera.git
synced 2026-05-02 00:07:24 +08:00
On passe les méthodes de callback lors de l'appel de la caméra en js.
This commit is contained in:
+3
-9
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user