DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:get_free_space

Differences

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

Link to this comparison view

built_in:get_free_space [2015/03/16 10:29] (current)
madlyr created
Line 1: Line 1:
 +=====GetFreeSpace=====
 +
 +====Description====
 +
 +The **GetFreeSpace** method returns free space in gigabytes - option can be: "​internal"​ or "​external"​.
 +
 +<​code>​freeInternalSpace = app.GetFreeSpace("​internal"​);​
 +freeExternalSpace = app.GetFreeSpace("​external"​);</​code>​
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  freeInternalSpace = app.GetFreeSpace("​internal"​);​
 +  freeExternalSpace = app.GetFreeSpace("​external"​);​
 +  app.Alert( "Free internal space:​\n"​ + freeInternalSpace + " GB\n" + "Free external space:​\n"​ + freeExternalSpace + " GB" );
 +}
 +
 +</​code>​
  
built_in/get_free_space.txt ยท Last modified: 2015/03/16 10:29 by madlyr