Skip to content

DownloadFileRequestModel能否增加一个下载进度? #1

@szoliver

Description

@szoliver

loadingText满足不了业务场景的需求,反而是多余的。
如果有onRequestProgress事件就更好了!
例如:

DownloadFileRequestModel
                    .newModel()
                    .url(Url)
                    .filePat(fpath)
   .load(new ModelListener<String>() {
    @Override
     public void onSuccess(NetworkResp networkResp, String response){}

     @Override
     public void onError(int errorCode, String message) {}

     @Override
     public void onRequestProgress(long bytesWritten, long contentLength) {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions