nc-photos/lib/platform/downloader.dart

12 lines
321 B
Dart
Raw Normal View History

2021-04-10 06:28:12 +02:00
import 'package:nc_photos/account.dart';
import 'package:nc_photos/entity/file.dart';
abstract class Downloader {
/// Download file to device
///
/// The return data depends on the platform
/// - web: null
/// - android: Uri to the downloaded file
Future<dynamic> downloadFile(Account account, File file);
2021-04-10 06:28:12 +02:00
}