mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
18 lines
484 B
Dart
18 lines
484 B
Dart
import 'dart:typed_data';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
class MediaStore {
|
|
static const exceptionCodePermissionError = "permissionError";
|
|
|
|
static Future<void> saveFileToDownload(
|
|
String fileName, Uint8List fileContent) async {
|
|
await _channel.invokeMethod("saveFileToDownload", <String, dynamic>{
|
|
"fileName": fileName,
|
|
"content": fileContent,
|
|
});
|
|
}
|
|
|
|
static const _channel =
|
|
const MethodChannel("com.nkming.nc_photos/media_store");
|
|
}
|