nc-photos/lib/mobile/android/notification.dart
2021-09-16 03:53:10 +08:00

17 lines
587 B
Dart

import 'package:flutter/services.dart';
class Notification {
static Future<void> notifyItemsDownloadSuccessful(
List<String> fileUris, List<String?> mimeTypes) =>
_channel.invokeMethod("notifyItemsDownloadSuccessful", <String, dynamic>{
"fileUris": fileUris,
"mimeTypes": mimeTypes,
});
static Future<void> notifyLogSaveSuccessful(String fileUri) =>
_channel.invokeMethod("notifyLogSaveSuccessful", <String, dynamic>{
"fileUri": fileUri,
});
static const _channel = MethodChannel("com.nkming.nc_photos/notification");
}