api/aria library

Enums

MyEvent

Functions

addAriaTask({required List<String> urls, required Client client, TaskOptions? options, int? position, required FutureOr<void> onComplete(), required FutureOr<void> onError(), dynamic hint}) Future<String>
添加任务
callAriaFunction({required Client client, required String method, required MyValue params, dynamic hint}) Future<String>
通用函数调用
connectAria2Client({required String url, dynamic hint}) Future<Client>
connect aria2 server
createAriaTaskOption({List<String>? header, String? allProxy, int? split, String? dir, String? out, String? gid, bool? rContinue, bool? autoFileRenaming, bool? checkIntegrity, String? lowestSpeedLimit, String? maxDownloadLimit, int? maxTries, int? maxConnectionPerServer, int? timeout, required Map<String, String> extraOptions, dynamic hint}) Future<TaskOptions>
创建配置
getAriaStatus({required Client client, required String gid, dynamic hint}) Future<String>
获取任务的状态
listenAriaMsg({required Client client, dynamic hint}) Stream<MyNotification>
监听aria消息
myValueToValue({required MyValue myValue, dynamic hint}) Future<Value>