DownloadAction

class DownloadAction(var url: URL, var destination: Path, var percentage: (percentage: Long, speed: Float) -> Unit, var after: Runnable, download: (action: DownloadAction) -> Unit)

Constructors

Link copied to clipboard
constructor(url: URL, destination: Path, percentage: (percentage: Long, speed: Float) -> Unit, after: Runnable, download: (action: DownloadAction) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var percentage: (percentage: Long, speed: Float) -> Unit
Link copied to clipboard
var url: URL

Functions

Link copied to clipboard
Link copied to clipboard
fun percentage(percentage: (percentage: Long, speed: Float) -> Unit): DownloadAction
Link copied to clipboard
fun start()
Link copied to clipboard
open override fun toString(): String