This object can be used to control / monitor the download of resources. You can create them using Server.downloadFile() . The callback function you specify there will be executed with a reference of this type as
object and you can use the following methods.
During development, you can use the ServerController
floating tile to inspect the downloads.
Aborts the download and deletes the file that was downloaded.
Returns the target file if the download has succeeded.
Returns the download size in bytes.
Returns the current download speed in bytes / second.
Returns the full URL of the download.
Returns the number of bytes downloaded.
Returns the progress ratio from 0 to 1.
Returns a descriptive text of the current download state (eg. "Downloading" or "Paused").
Checks if the download is currently active.
Resumes the download.
Stops the download. The target file will not be deleted and you can resume the download later.