User Tools

Site Tools


built_in:zip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
built_in:zip [2014/12/17 17:07]
octazid [Create]
built_in:zip [2015/03/21 17:36]
octazid [Methods] sorted
Line 1: Line 1:
-====== Zip control ======+====== ZipUtil control ======
 ===== Create ===== ===== Create =====
-Create a Zip control using the CreateZipUtil function of the app object:+Create a ZipUtil control using the CreateZipUtil function of the [[built_in:app|app]] object:
 <code>var zip = app.CreateZipUtil();</code> <code>var zip = app.CreateZipUtil();</code>
 Also you can use it in a function like this: Also you can use it in a function like this:
-<code>function unzip(zipfile, extractpath) {+<code javascript> 
 +function unzip(zipfile, extractpath) 
 +{
     var zip = app.CreateZipUtil();     var zip = app.CreateZipUtil();
     zip.Open(zipfile);     zip.Open(zipfile);
     var files = zip.List().split(",");     var files = zip.List().split(",");
-    files.forEach(function (item) {+    files.forEach(function (item) 
 +    {
         zip.Extract(item, extractpath+"/"+item);         zip.Extract(item, extractpath+"/"+item);
     });     });
Line 16: Line 19:
 ===== Methods ===== ===== Methods =====
 ^Method ^Description ^ ^Method ^Description ^
-|Zip.AddFile( name,file ) | | +|ZipUtil.AddFile( name,file ) | | 
-|Zip.AddText( name,text ) | | +|ZipUtil.AddText( name,text ) | | 
-|Zip.Close() | | +|ZipUtil.Close() | | 
-|Zip.Create( file ) | | +|ZipUtil.Create( file ) | | 
-|Zip.CreateDebugKey( file ) | | +|ZipUtil.CreateDebugKey( file ) | | 
-|Zip.CreateKey( file,pass,name,org ) | | +|ZipUtil.CreateKey( file,pass,name,org ) | | 
-|Zip.Destroy() | | +|ZipUtil.Extract( name,file ) | | 
-|Zip.Extract( name,file ) | | +|ZipUtil.List( path ) | | 
-|Zip.GetAbsHeight() | | +|ZipUtil.Open( file ) | | 
-|Zip.GetAbsWidth() | | +|ZipUtil.Sign( fileIn,fileOut,keyStore,pass ) | | 
-|Zip.GetHeight() | | +|ZipUtil.UpdateManifest( fileIn, fileOut, packageName, appName, permissions, options ) | |
-|Zip.GetPosition() | | +
-|Zip.GetType() | | +
-|Zip.GetVisibility() | | +
-|Zip.GetWidth() | | +
-|Zip.List( path ) | | +
-|Zip.Open( file ) | | +
-|Zip.Release() | | +
-|Zip.SetBackColor( colorcode ) | | +
-|Zip.SetBackGradient( p1,p2,p3,p4,p5,p6,p7 ) | | +
-|Zip.SetBackGradientRadial( p1,p2,p3,p4,p5,p6,p7 ) | | +
-|Zip.SetBackground( p1,p2 ) | | +
-|Zip.SetMargins( left,top,right,bottom ) | | +
-|Zip.SetPadding( p1,p2,p3,p4 ) | | +
-|Zip.SetPosition( p1,p2,p3,p4 ) | | +
-|Zip.SetScale( x,y ) | | +
-|Zip.SetSize( p1,p2 ) | | +
-|Zip.SetVisibility( p1 ) | | +
-|Zip.Sign( fileIn,fileOut,keyStore,pass ) | | +
-|Zip.UpdateManifest( fileIn, fileOut, packageName, appName, permissions, options ) | |+
built_in/zip.txt · Last modified: 2016/01/22 17:38 (external edit)