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

checkNotificationPermission() Future<bool>
Check if notification permission is granted.
createCustomChannel({required String channelId, required String channelName, String? channelDescription, int? importance, bool? enableLights, int? lightColor, bool? enableVibration, bool? enableSound}) Future<bool>
Create a custom notification channel.
getActiveNotificationService() Future<String>
Get the currently active notification service.
getPlatformVersion() Future<String?>
Get the platform version.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestNotificationPermission() Future<bool>
Request notification permission.
setFirebaseAsActiveService() Future<bool>
Set Firebase Cloud Messaging as the active notification service.
showBigTextNotification({required String title, required String message, required String bigText, String? channelId, int? priority, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
Show a notification with big text style.
showImageNotification({required String title, required String message, required String imageUrl, String? channelId, int? priority, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
Show a notification with an image.
showNotification({required String title, required String message, String? channelId, int? priority, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
Show a simple notification.
showNotificationWithActions({required String title, required String message, required List<Map<String, String>> actions, String? channelId, int? priority, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
Show a notification with custom actions.
startForegroundService({required String pollingUrl, int? intervalMinutes, String? channelId}) Future<bool>
Start a foreground service for continuous notification polling.
startNotificationPolling({required String pollingUrl, int? intervalMinutes}) Future<bool>
Start polling for notifications from a remote server.
stopForegroundService() Future<bool>
Stop the foreground service for notification polling.
stopNotificationPolling() Future<bool>
Stop polling for notifications.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

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