Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我觉得有些可以优化的地方 #16

Open
FateRui opened this issue Jun 9, 2017 · 0 comments
Open

我觉得有些可以优化的地方 #16

FateRui opened this issue Jun 9, 2017 · 0 comments

Comments

@FateRui
Copy link

FateRui commented Jun 9, 2017

我提个建议, 我在写一个下载列表时,如果我在下载文件时进入下载列表时要使用如下代码判断
未命名.pdf
那个fileName 我不知道怎么填 ,你可以把它改为输入文件的url么? 我觉得这样逻辑更合理,并且我还发现了一些问题,主要是文件存储路径问题 : 我不知道savePath 还是有fileName 有啥用啊 , 填了之后文件存储路径总感觉有问题哎 ,第三个问题,在注册网络监听时,我觉得有优化的地方,辟如 在registerNetworkStatusMoniterEvent后面带一个回调块,网络出现更改就回调 这样会更好

最后我觉得如果添加离线下载功能,可以直接读取已经下载的文件和 还未下载完成的文件信息,正在下载的文件个数,已经下载的文件个数,那么这个下载器就完美了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant