nc-photos/lib/mobile/android/media_store.dart
2021-05-01 01:02:41 +08:00

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");
}