Basic stuff

This commit is contained in:
2023-07-27 20:45:09 +02:00
parent 17642f9fab
commit 1771c0e1b6
26 changed files with 1100 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
import 'package:moxplatform_platform_interface/moxplatform_platform_interface.dart';
class AndroidNotificationsImplementation extends NotificationsImplementation {
final NotificationsImplementationApi _api = NotificationsImplementationApi();
@override
Future<void> createNotificationChannel(String title, String id, bool urgent) async {
return _api.createNotificationChannel(title, id, urgent);
}
@override
Future<void> showMessagingNotification(MessagingNotification notification) async {
return _api.showMessagingNotification(notification);
}
}

View File

@@ -2,6 +2,7 @@ import 'package:moxplatform_android/src/contacts_android.dart';
import 'package:moxplatform_android/src/crypto_android.dart';
import 'package:moxplatform_android/src/isolate_android.dart';
import 'package:moxplatform_android/src/media_android.dart';
import 'package:moxplatform_android/src/notifications_android.dart';
import 'package:moxplatform_platform_interface/moxplatform_platform_interface.dart';
class MoxplatformAndroidPlugin extends MoxplatformInterface {
@@ -12,6 +13,7 @@ class MoxplatformAndroidPlugin extends MoxplatformInterface {
MoxplatformInterface.crypto = AndroidCryptographyImplementation();
MoxplatformInterface.handler = AndroidIsolateHandler();
MoxplatformInterface.media = AndroidMediaScannerImplementation();
MoxplatformInterface.notifications = AndroidNotificationsImplementation();
}
@override