NotificationMasterWeb class

A web implementation of the NotificationMasterPlatform of the NotificationMaster plugin.

Inheritance

Constructors

NotificationMasterWeb()
Constructs a NotificationMasterWeb

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.
override
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.
override
getActiveNotificationService() Future<String>
Get the currently active notification service.
override
getPlatformVersion() Future<String?>
Returns a String containing the version of the platform.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestNotificationPermission() Future<bool>
Request notification permission.
override
setFirebaseAsActiveService() Future<bool>
Set Firebase Cloud Messaging as the active notification service.
override
showBigTextNotification({required String title, required String message, required String bigText, String? channelId, NotificationImportance? importance, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
Show a notification with big text style.
override
showImageNotification({required String title, required String message, required String imageUrl, String? channelId, NotificationImportance? importance, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
Show a notification with an image.
override
showNotification({int? id, required String title, required String message, String? channelId, NotificationImportance? importance, bool? autoCancel, String? targetScreen, Map<String, dynamic>? extraData}) Future<int>
Show a simple notification.
override
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>
Show a notification with custom actions.
override
startForegroundService({required String pollingUrl, int? intervalMinutes, String? channelId}) Future<bool>
Start a foreground service for continuous notification polling.
override
startNotificationPolling({required String pollingUrl, int? intervalMinutes}) Future<bool>
Start polling for notifications from a remote server.
override
stopForegroundService() Future<bool>
Stop the foreground service for notification polling.
override
stopNotificationPolling() Future<bool>
Stop polling for notifications.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void