User Tools

Site Tools


built_in:downloader

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
built_in:downloader [2015/03/21 16:38]
octazid layout changes
built_in:downloader [2018/04/19 23:14] (current)
Line 5: Line 5:
  
 ===== Methods ===== ===== Methods =====
-^Method ^Description ^ +^ Method                                   ^ Description                                                                                                                                       
-|Downloader.Download(sourceURI,destPath) |Start download. You can pass a comma seperated list of file urls to download. **destPath** should be a valid and accessible folder on the device| +| Downloader.Download(sourceURI,destPath)  | Start download. You can pass a comma seperated list of file urls to download. **destPath** should be a valid and accessible folder on the device  
-|Downloader.GetProgress() | returns fract value 0..1, but "NaN" if not yet started| +| Downloader.GetProgress()                 | returns fract value 0..1, but "NaN" if not yet started                                                                                            | 
-|Downloader.IsComplete() |returns true/false | +| Downloader.GetSize()                                                                                                                                                                       
-|Downloader.SetOnComplete(callback) |Should be done before starting the download. |+| Downloader.IsComplete()                  | returns true/false                                                                                                                                
 +| Downloader.SetOnComplete(callback)       | Should be done before starting the download.                                                                                                      |
  
 =====Example code snippet ===== =====Example code snippet =====
Line 24: Line 25:
  
 </code> </code>
 +
 +===== Options =====
 +
 +^ Option       ^ Description                                          ^
 +| NoDialog     | Hides the default download dialog                    |
  
 Thanks to Dave (forum: https://groups.google.com/d/msg/androidscript/1_SnH886xT4/OlDVPxZ5bDwJ) Thanks to Dave (forum: https://groups.google.com/d/msg/androidscript/1_SnH886xT4/OlDVPxZ5bDwJ)
built_in/downloader.1426955903.txt.gz · Last modified: 2015/03/22 00:38 (external edit)