public interface DownloadListener
void onStart(long contentLength)
contentLength - 文件总字节数void onProgress(long currentLength,
long contentLength)
currentLength - 当前已下载的字节数contentLength - 文件总字节数void onFinish()
void onFailure(Exception e)
e - 异常default boolean isLog()
Copyright © 2024. All rights reserved.