User Tools

Site Tools


built_in:zip

Differences

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

Link to this comparison view

Next revision
Previous revision
built_in:zip [2014/12/11 14:23]
octazid created
built_in:zip [2016/01/22 17:38] (current)
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>
-Or 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 15: Line 18:
 </code> </code>
 ===== 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.Extract( name,file )               
-|Zip.CreateKey( file,pass,name,org ) | | +ZipUtil.List( path )                       
-|Zip.Destroy() | | +ZipUtil.Open( file )                       |
-|Zip.Extract( name,file ) | | +
-|Zip.GetAbsHeight() | | +
-|Zip.GetAbsWidth() | | +
-|Zip.GetHeight() | | +
-|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.1418307834.txt.gz · Last modified: 2014/12/11 22:23 (external edit)