|
在android下,IOS还没开始测试。
下面的代码添加一个下载,设置了iconPath后,在自带的下载管理器里面可以看到图片。
downloadManager.enqueue({
url: msc.url,
savePath: savePath,
cache: true,
allowResume: true,
title: msc.name,
iconPath:app.section.img,
networkTypes: 'all'
}, function(ret, err) {
使用query查询所有的下载的时候,没有iconPath字段。
//加载所有不为下载成功的数据。
downloadManager.query({
ids: []
}, function(ret, err) {
将上面这样执行出来的结果ret.data输出,没有找到iconPath字段。使用都是undefind。 |
|