cordova-plugin-mfilechooser
Version:
File Chooser for Cordova/Phonegap based on Maginsoft FileChooser. One change, it can go landscape and portait mode.
22 lines (18 loc) • 594 B
JavaScript
/**
* cordova Maginsoft FileChooser plugin
*/
(function(cordova){
var MFileChooser = function() {
};
MFileChooser.prototype.open = function(params, success, fail) {
return cordova.exec(function(args) {
success(args);
}, function(args) {
fail(args);
}, 'MFileChooser', 'open', params);
};
window.mfilechooser = new MFileChooser();
// backwards compatibility
window.plugins = window.plugins || {};
window.plugins.mfilechooser = window.mfilechooser;
})(window.PhoneGap || window.Cordova || window.cordova);