mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
19 lines
422 B
JavaScript
19 lines
422 B
JavaScript
/*
|
|
Author: Vishal Rajpal
|
|
Filename: ZipPlugin.js
|
|
Date: 21-02-2012
|
|
*/
|
|
|
|
var ExtractZipFilePlugin=function(){
|
|
};
|
|
|
|
PhoneGap.addConstructor(function()
|
|
{
|
|
PhoneGap.addPlugin('ExtractZipFilePlugin', new ZipPlugin());
|
|
});
|
|
|
|
ExtractZipFilePlugin.prototype.extractFile = function(file, successCallback, errorCallback)
|
|
{
|
|
alert(file);
|
|
return PhoneGap.exec(successCallback, errorCallback, "ZipPlugin", "extract", [file]);
|
|
}; |