kotlin / com.liulishuo.okdownload.kotlin / com.liulishuo.okdownload.DownloadTask / enqueue4WithSpeed

enqueue4WithSpeed

fun DownloadTask.enqueue4WithSpeed(onTaskStart: onTaskStart? = null, onConnectStart: onConnectStart? = null, onConnectEnd: onConnectEnd? = null, onInfoReadyWithSpeed: onInfoReadyWithSpeed? = null, onProgressBlockWithSpeed: onProgressBlockWithSpeed? = null, onProgressWithSpeed: onProgressWithSpeed? = null, onBlockEndWithSpeed: onBlockEndWithSpeed? = null, onTaskEndWithSpeed: onTaskEndWithSpeed): Unit

Correspond to DownloadTask.enqueue. This method will create a com.liulishuo.okdownload.core.listener.DownloadListener4WithSpeed instance internally.