app/lib/common/rust/api/downloader_api.dart
2024-02-15 21:24:39 +08:00

25 lines
859 B
Dart

// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import '../downloader.dart';
import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Stream<DownloadCallbackData> startDownload(
{required String url,
required String savePath,
required String fileName,
required int connectionCount,
dynamic hint}) =>
RustLib.instance.api.startDownload(
url: url,
savePath: savePath,
fileName: fileName,
connectionCount: connectionCount,
hint: hint);
Future<void> cancelDownload({required String id, dynamic hint}) =>
RustLib.instance.api.cancelDownload(id: id, hint: hint);