kotlin / com.liulishuo.okdownload.kotlin.listener / com.liulishuo.okdownload.DownloadListener / switchToExceptProgressListener

switchToExceptProgressListener

fun DownloadListener.switchToExceptProgressListener(): DownloadListener

This method will create a new DownloadListener base on the receiver DownloadListener. The difference is that the DownloadListener will not invoke progress callback.