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

23 lines
477 B
JavaScript

'use strict';
/**
* Permet de faire l'interface entre phonegap et l'application customcamera en java.
*/
var exec = require('cordova/exec');
// constructor.
var customCameraExport = function() {
};
customCameraExport.prototype.startCamera = function(imgBackgroundBase64, successFct, failFct) {
exec(
successFct,
failFct,
"CustomCamera",
"startCamera",
[imgBackgroundBase64]
);
};
module.exports = new customCameraExport();