kotlin / com.liulishuo.okdownload.kotlin.listener / createListener1

createListener1

fun createListener1(taskStart: onTaskStartWithModel? = null, retry: onRetry? = null, connected: onConnected? = null, progress: onProgress? = null, taskEnd: onTaskEndWithModel): DownloadListener1

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