NotificationRepository class abstract
Abstract repository interface for notification management.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onNotificationAction
→ Stream<
Map< String, String?> > -
Stream of notification action events.
no setter
-
onNotificationDismissed
→ Stream<
String> -
Stream of dismissed notification IDs.
no setter
-
onNotificationOpened
→ Stream<
NotificationPayload> -
Stream of opened notifications.
no setter
-
onNotificationReceived
→ Stream<
NotificationPayload> -
Stream of received notifications.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
areNotificationsEnabled(
) → Future< (NotificationFailure?, bool?)> - Checks if notifications are currently enabled.
-
cancelAllNotifications(
) → Future< NotificationFailure?> - Cancels all pending notifications.
-
cancelNotification(
String id) → Future< NotificationFailure?> - Cancels a specific notification by ID.
-
clearDeliveryHistory(
) → Future< NotificationFailure?> - Clears the delivery history.
-
createNotificationChannel(
{required String channelId, required String channelName, String? channelDescription, NotificationImportance? importance, bool? enableVibration, bool? enableLights, String? sound}) → Future< NotificationFailure?> - Creates a new notification channel.
-
deleteNotificationChannel(
String channelId) → Future< NotificationFailure?> - Deletes a notification channel.
-
dispose(
) → Future< NotificationFailure?> - Disposes the notification manager and cleans up resources.
-
getDeliveredNotifications(
) → Future< (NotificationFailure?, List< NotificationEntity> ?)> - Gets all delivered notifications.
-
getDeliveryHistory(
) → Future< (NotificationFailure?, List< DeliveryStatusEntity> ?)> - Gets the complete delivery history.
-
getDeliveryStatus(
String id) → Future< (NotificationFailure?, DeliveryStatusEntity?)> - Gets the delivery status for a specific notification.
-
getNotificationChannels(
) → Future< (NotificationFailure?, List< String> ?)> - Gets all available notification channels.
-
getNotificationSettings(
) → Future< (NotificationFailure?, NotificationSettingsEntity?)> - Gets the current notification settings.
-
getPendingNotifications(
) → Future< (NotificationFailure?, List< NotificationEntity> ?)> - Gets all pending notifications.
-
initialize(
) → Future< NotificationFailure?> - Initializes the notification manager.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openNotificationSettings(
) → Future< NotificationFailure?> - Opens the system notification settings.
-
requestPermissions(
) → Future< (NotificationFailure?, bool?)> - Requests notification permissions from the user.
-
scheduleNotification(
NotificationPayload payload, DateTime scheduledTime) → Future< NotificationFailure?> - Schedules a notification for future delivery.
-
showNotification(
NotificationPayload payload) → Future< NotificationFailure?> - Shows a notification immediately.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateNotificationSettings(
NotificationSettingsEntity settings) → Future< NotificationFailure?> - Updates the notification settings.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited