api/aria library

Enums

MyEvent
frb_marker: #frb(dart_metadata=("freezed", "immutable" import "package:meta/meta.dart" as meta))

Functions

addAriaTask({required List<String> urls, required Client client, TaskOptions? options, int? position, required FutureOr<void> onComplete(), required FutureOr<void> onError()}) Future<String>
添加任务
callAriaFunction({required Client client, required String method, required MyValue params}) Future<String>
通用函数调用
connectAria2Client({required String url}) 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}) Future<TaskOptions>
创建配置
getAriaStatus({required Client client, required String gid}) Future<String>
获取任务的状态
listenAriaMsg({required Client client}) Stream<MyNotification>
监听aria消息
myValueToValue({required MyValue myValue}) Future<Value>