{"size": 825, "ext": "js", "max_stars_repo_path": "plugins/com.pgneri.plugin.custom.camera/js/customcamera.js", "max_stars_repo_name": "pgneri/cordova.app.exampleUsePlugins", "max_stars_repo_stars_event_min_datetime": "2016-10-26T02:33:40.000Z", "max_stars_repo_stars_event_max_datetime": "2016-10-26T02:33:40.000Z", "max_issues_repo_path": "plugins/com.pgneri.plugin.custom.camera/js/customcamera.js", "max_issues_repo_name": "pgneri/cordova.app.exampleUsePlugins", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "plugins/com.pgneri.plugin.custom.camera/js/customcamera.js", "max_forks_repo_name": "pgneri/cordova.app.exampleUsePlugins", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 43.4210526316, "max_line_length": 180, "alphanum_fraction": 0.6472727273}
var customCamera = {
    getPicture: function(success, failure, options) {
        options = options || {};
        var filename = "customMask";
        var quality = options.quality || 100;
        var targetWidth = options.targetWidth || -1;
        var targetHeight = options.targetHeight || -1;
        var title = options.title || "";
        var buttonDone = options.buttonDone || "OK";
        var buttonRestart = options.buttonRestart || "Take another picture";
        var buttonCancel = options.buttonCancel || "Cancel";
        var toggleCamera = options.toggleCamera === true ? "YES" : "";

        cordova.exec(success, failure, "CustomCamera", "takePicture", [filename, quality, targetWidth, targetHeight, title, buttonDone, buttonRestart, buttonCancel, toggleCamera]);
    }
};

module.exports = customCamera;
