notifications: add XNotifications + macOS UNUserNotificationCenter plugin

Generic OS-notification + window-focus surface. Hand-rolled MethodChannel
+ EventChannel, registered through XPlugin alongside the existing camera
/ video / clipboard plugins. macOS native handler uses
UNUserNotificationCenter with thread-grouping support, NSApp activation
on tap, and NSApplicationDidBecomeActive/DidResignActive for the focus
signal (more reliable than Flutter's AppLifecycleState on macOS).
This commit is contained in:
agra
2026-05-27 13:02:51 +03:00
parent ff520be971
commit f5d32a828f
4 changed files with 400 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ export 'src/video/x_video_player_backend.dart' show XVideoPlayerBackend, XVideoP
export 'src/video/x_video_player_channel.dart' show MethodChannelXVideoPlayerBackend;
export 'src/video/x_video_player_view.dart' show XVideoPlayerView;
export 'src/clipboard.dart';
export 'src/notifications/x_notifications.dart';
export 'src/file.dart';
export 'src/gallery.dart';
export 'src/keyboard.dart';