mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-14 00:47:54 -05:00
21 lines
566 B
JavaScript
21 lines
566 B
JavaScript
/**
|
|
* ZipPlugin.js
|
|
*
|
|
* Phonegap Extract Zip File plugin
|
|
*
|
|
* Created by Shaun Rowe on 10/05/2012.
|
|
* Copyright (c) Pobl Creative Cyf. 2012
|
|
*
|
|
*/
|
|
var ExtractZipFilePlugin = function(){
|
|
}
|
|
|
|
cordova.addConstructor(function(){
|
|
if(!window.plugins) window.plugins = {};
|
|
window.plugins.extractZipFile = new ExtractZipFilePlugin();
|
|
});
|
|
|
|
ExtractZipFilePlugin.prototype.extractFile = function(file, destination, successCallback, errorCallback)
|
|
{
|
|
return cordova.exec(successCallback, errorCallback, "ExtractZipFilePlugin", "extract", [file, destination]);
|
|
}; |