FileDownloadTask
Only the snapshot type is declared here: the Task members, and the platform hooks that the shared non-JVM StorageTask leaves abstract (StorageTask.reference, StorageTask.snapshotWith and the control functions), are implemented by FileDownloadTaskImpl. The metadata compilation of this source set rejects an actual class that implements a member its expect class inherits as abstract from another source set's actual ("the modalities are different").
A download to a file, as the Android SDK's FileDownloadTask; TaskSnapshot reports its progress.
A download to a file on JS, which the SDK cannot do: the task fails at once with UnsupportedOperationException.
A download to a file on JS, which the SDK cannot do: the task fails at once with UnsupportedOperationException.
Properties
Whether the task is running (not complete, cancelled or paused).
The current state of the task, whether or not it is complete.
The progress and pauses of this task as a Flow, which completes with the task.
Functions
Adds a listener called with a snapshot when the task is paused.
Adds a listener called with a snapshot whenever progress is made.