Aria2Connection class

Implemented types
Implementers

Constructors

Aria2Connection(String rpcUrl, String protocol, String secret)

Properties

hashCode int
The hash code for this object.
no setterinherited
protocol String
getter/setter pair
rpcUrl String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret String
getter/setter pair

Methods

添加metalink
override
addTorrent(String base64Torrent) Future<String>
添加种子,或种子内容
override
addUri(List<String> url) Future<String>
添加下载链接
override
changeGlobalOption(Aria2Option options) Future<String>
修改全局配置
override
changeOption(String gid, Aria2Option options) Future<String>
修改任务配置,部分参数修改完任务重启
override
changePosition(String gid, int pos, String how) Future<int>
修改下载任务在队列中的位置
override
changeUri(String gid, int fileIndex, List<String> delUris, List<String> addUris) Future<List<int>>
修改任务的url*
override
forcePause(String gid) Future<String>
强制暂停,不通知trackers自己下线
override
forcePauseAll() Future<String>
强制暂停所有
override
forceRemove(String gid) Future<String>
强制删除,不通知trackers自己下线
override
forceShutdown() Future<String>
强制关闭aria2
override
getFiles(String gid) Future<List<Aria2File>>
获取任务下载文件列表
override
getGlobalOption() Future<Aria2Option>
获取全局配置
override
getGlobalStat() Future<Aria2GlobalStat>
获取全局状态
override
getOption(String gid) Future<Aria2Option>
获取任务配置
override
getPeers(String gid) Future<List<Aria2Peer>>
获取下载任务中活动的节点
override
getServers(String gid) Future<List<Aria2Server>>
下载任务连接的服务器地址,及下载速度
override
getSessionInfo() Future<Aria2SessionInfo>
获取当前连接的sessionID
override
getUris(String gid) Future<List<Aria2Url>>
获取任务的下载链接
override
getVersion() Future<Aria2Version>
获取版本信息
override
listMethods() Future
罗列方法
override
listNotifications() Future
罗列通知触发函数
override
multicall(List<Method> methods) Future
多任务执行
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause(String gid) Future<String>
暂停下载
override
pauseAll() Future<String>
暂停所有
override
purgeDownloadResult() Future<String>
清除所有完成/报错/删除的任务信息
override
remove(String gid) Future<String>
删除下载任务
override
removeDownloadResult(String gid) Future<String>
清除指定完成/报错/删除的任务信息
override
saveSession() Future<String>
保存session内容到文件,并写入服务器
override
shutdown() Future<String>
关闭aria2
override
tellActive() Future<List<Aria2Task>>
获取所有正在运行的任务的状态
override
tellStatus(String gid) Future<Aria2Task>
获取任务状态
override
tellStopped(int offset, int num) Future<List<Aria2Task>>
获取所有已停止的任务
override
tellWaiting(int offset, int num) Future<List<Aria2Task>>
获取等待中任务状态
override
toString() String
A string representation of this object.
inherited
unpause(String gid) Future<String>
恢复下载
override
unpauseAll() Future<String>
恢复所有下载
override

Operators

operator ==(Object other) bool
The equality operator.
inherited