DLTaskConfig

Constructors

Link copied to clipboard
internal constructor()

Properties

Link copied to clipboard
private val dlBean: DLBean
Link copied to clipboard
private var downloadUrl: String
Link copied to clipboard
Link copied to clipboard
private var md5: String?
Link copied to clipboard
private var saveDir: String
Link copied to clipboard
private var saveName: String?

Functions

Link copied to clipboard
fun build(): DLTask

Build the download task.

Link copied to clipboard
private fun getNameFromUrl(url: String): String

Get file save name for url.

Link copied to clipboard

Set download url.

Link copied to clipboard

Set the event listener for the download.

Link copied to clipboard

Set the md5 value of the file for verification

Link copied to clipboard

Set the save directory for the download file.

Link copied to clipboard

Set the save name for the download file.