Skip to main content

Module report

Module report 

Source
Expand description

What a download tells the app, and what each report writes into the state it bound.

Structsยง

Progress
The bytes received so far, of total when the server said, at speed bytes a second.

Enumsยง

Report
How far a download has got, sent to the UI thread.
Written
A value a report writes: a whole number or text, as its field holds.

Constantsยง

CANCELLED ๐Ÿ”’
What status shows once code cancels the download.
DONE_PERCENT ๐Ÿ”’
DOWNLOADING ๐Ÿ”’
What status shows from the click until the download finishes.
PAUSED ๐Ÿ”’
What status shows while the download is paused.
RETRYING ๐Ÿ”’
What status shows while the download waits to try a failed connection again.

Functionsยง

percent ๐Ÿ”’
The whole percentage received is of total.
saturating_int ๐Ÿ”’
A byte count as an int; no file comes near the largest one.