GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Aria/DownloadApi.md at master · MachineCodeStudio/Aria

Expand file tree

/

DownloadApi.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
40 lines (33 loc) · 1.01 KB
/

DownloadApi.md

Copy path

File metadata and controls

40 lines (33 loc) · 1.01 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

关于Aria,你还需要知道的一些东西

  • 设置下载任务数,Aria默认下载任务为2

    Aria.get(getContext()).setMaxDownloadNum(num);
  • 停止所有下载

    Aria.get(this).stopAllTask();
  • 设置失败重试次数,从事次数不能少于 1

    Aria.get(this).setReTryNum(10);
  • 设置失败重试间隔,重试间隔不能小于 5000ms

    Aria.get(this).setReTryInterval(5000);
  • 设置是否打开广播,如果你需要在Service后台获取下载完成情况,那么你需要打开Aria广播,Aria广播配置

    Aria.get(this).openBroadcast(true);

https证书配置

  • 将你的证书导入assets目录
  • 调用以下代码配置ca证书相关信息
/**
 * 设置CA证书信息
 *
 * @param caAlias ca证书别名
 * @param caPath assets 文件夹下的ca证书完整路径
 */
Aria.get(this).setCAInfo("caAlias","caPath");
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.