有没有一个API来控制在Firefox附加SDK的下载? [英] Is there an API to control downloads in Firefox add-on SDK?
本文介绍了有没有一个API来控制在Firefox附加SDK的下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用诸如暂停,恢复和取消等功能来控制下载。此外,我希望能够删除下载的文件。
如果在Firefox附加SDK中没有API,是否可以做同样的事情另一种方式是什么?
解决方案
API是(MDN文档的链接):
- Downloads.jsm
- 下载
- DownloadTarget PlacesUtils 。有很好的信息在 paa 对这个问题的回答: API修改Firefox下载列表 >
In Firefox, is there an API equivalent to Google Chrome's chrome.downloads API?
I need to control downloads with functions such as pause, resume, and cancel. In addition, I want to be able to remove the downloaded file.
If there is no API in Firefox add-on SDK, is it possible to do the same things in another way?
解决方案
The API's are (links to documentation on MDN):
- Downloads.jsm
- Download
- DownloadTarget
- PlacesUtils.There is good info at paa's answer to the question: API to modify Firefox downloads list
这篇关于有没有一个API来控制在Firefox附加SDK的下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文