MethodChannelNotificationMaster class
An implementation of NotificationMasterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- NotificationMasterPlatform
- MethodChannelNotificationMaster
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- 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?> -
Get the platform version.
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, int? priority, 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, int? priority, bool? autoCancel, String? targetScreen, Map< String, dynamic> ? extraData}) → Future<int> -
Show a notification with an image.
override
-
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.
override
-
showNotificationWithActions(
{required String title, required String message, required List< Map< actions, String? channelId, int? priority, bool? autoCancel, String? targetScreen, Map<String, String> >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