NotificationMasterPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • NotificationMasterPlatform
Implementers

Constructors

NotificationMasterPlatform()
Constructs a NotificationMasterPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelAllScheduledNotifications() Future<bool>
Cancel every notification that was scheduled through scheduleNotification.
cancelScheduledNotification(int id) Future<bool>
Cancel a previously scheduled notification by its id.
canScheduleExactAlarms() Future<bool>
Android 12+: whether the app may schedule exact alarms. Other platforms return true.
checkNotificationPermission() Future<bool>
createCustomChannel({required String channelId, required String channelName, String? channelDescription, int? importance, bool? enableLights, int? lightColor, bool? enableVibration, bool? enableSound}) Future<bool>
getActiveNotificationService() Future<String>
getDeviceToken() Future<String?>
getPendingScheduledNotifications() Future<List<int>>
Returns the ids of notifications that are scheduled but not yet delivered.
getPlatformVersion() Future<String?>
getSubscribedTopics() Future<List<String>>
Returns the list of topics the device is currently subscribed to. On Android/iOS with Firebase this reflects both FCM and local subscriptions. Without Firebase, it reflects locally stored subscriptions only.
isBackgroundPollingRunning() Future<bool>
Whether the background poller process is currently running.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppNotificationSettings() Future<bool>
Opens app notification settings (Android). User must grant manually.
openExactAlarmSettings() Future<bool>
Opens system Settings for "Alarms & reminders" (Android). User must grant manually. No-op / false on other platforms.
requestNotificationPermission() Future<bool>
scheduleNotification({required int id, required String title, required String message, required int scheduledEpochMillis, String? channelId, NotificationImportance? importance, bool alarmSound = false, String? targetScreen, Map<String, dynamic>? extraData}) Future<bool>
Schedule a notification to be delivered by the operating system at a specific point in time, even when the app is fully closed.
setFirebaseAsActiveService() Future<bool>
showBigTextNotification({required String title, required String message, required String bigText, String? channelId, NotificationImportance? importance, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
showFullScreenNotification({required String title, required String message, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
showHeadsUpNotification({required String title, required String message, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
showImageNotification({required String title, required String message, required String imageUrl, String? channelId, NotificationImportance? importance, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
showNotification({int? id, required String title, required String message, String? channelId, NotificationImportance? importance, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
showNotificationWithActions({required String title, required String message, required List<Map<String, String>> actions, String? channelId, NotificationImportance? importance, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
showStyledNotification({required String title, required String message, String? channelId, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
startBackgroundPollingService({required String pollingUrl, int? intervalMinutes}) Future<bool>
Start a standalone background poller process that keeps polling pollingUrl and showing toasts even after the app is fully closed (Windows only).
startForegroundService({required String pollingUrl, int? intervalMinutes, String? channelId}) Future<bool>
startNotificationPolling({required String pollingUrl, int? intervalMinutes}) Future<bool>
stopBackgroundPollingService() Future<bool>
Stop the background poller process started via startBackgroundPollingService.
stopForegroundService() Future<bool>
stopNotificationPolling() Future<bool>
subscribeToTopic(String topic) Future<bool>
toString() String
A string representation of this object.
inherited
unsubscribeFromTopic(String topic) Future<bool>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance NotificationMasterPlatform
The default instance of NotificationMasterPlatform to use.
getter/setter pair