Content:
- Properties
- Methods

The Downloader component can be used to download a file straight from the internet to your phone or tablet's local storage.

dwn = app.CreateDownloader( options? ) → app object: Downloader

You can download a file with the Download method which accepts a source url and a target directory: dwn.Download( srcFileUrl, targetDir );

Once the Download method has been called, it show a progress bar with the current download progress. But you can disable this behavior with the “NoDialog” option.

If you want to know when the download process has finished (or failed) you can define a callback functioni with the SetOnComplete method: dload.SetOnComplete( callback );

Example - Example click to expand contents 

Properties

The following properties are available on the Downloader object:

dataObject: { key, value }

Methods

The following methods are available on the Downloader object:

GetProgress() → Number: fraction (0..1)
GetSize() → Number: bytes
GetType() → String: “Downloader”
IsComplete() → Boolean
Method( name, types?, p1?, p2?, p3?, p4? ) → all types