2021-04-30 18:58:05 +02:00
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
|
|
|
class Notification {
|
2021-07-10 16:18:04 +02:00
|
|
|
static Future<void> notifyItemsDownloadSuccessful(
|
2021-07-23 22:05:57 +02:00
|
|
|
List<String> fileUris, List<String?> mimeTypes) =>
|
2021-07-10 16:18:04 +02:00
|
|
|
_channel.invokeMethod("notifyItemsDownloadSuccessful", <String, dynamic>{
|
|
|
|
"fileUris": fileUris,
|
|
|
|
"mimeTypes": mimeTypes,
|
2021-04-30 18:58:05 +02:00
|
|
|
});
|
|
|
|
|
2021-09-10 13:46:15 +02:00
|
|
|
static Future<void> notifyLogSaveSuccessful(String fileUri) =>
|
|
|
|
_channel.invokeMethod("notifyLogSaveSuccessful", <String, dynamic>{
|
|
|
|
"fileUri": fileUri,
|
|
|
|
});
|
|
|
|
|
2021-09-15 08:58:06 +02:00
|
|
|
static const _channel = MethodChannel("com.nkming.nc_photos/notification");
|
2021-04-30 18:58:05 +02:00
|
|
|
}
|