kotlin / com.liulishuo.okdownload.kotlin.listener / createListener2

createListener2

fun createListener2(onTaskStart: onTaskStart = {}, onTaskEnd: onTaskEnd): DownloadListener2

A concise way to create a DownloadListener2, only the DownloadListener2.taskEnd is necessary.