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