NotificationPermissionManager class

Comprehensive permission manager for handling notification permissions across different platforms with automatic request capabilities.

Constructors

NotificationPermissionManager.new({required NotificationRepository repository})
Creates a notification permission manager.
const

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

checkPermissionStatus() Future<(NotificationFailure?, PermissionStatus)>
Checks the current status of all notification permissions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openPermissionSettings() Future<NotificationFailure?>
Opens the notification settings page for the user to manually configure.
requestAllPermissions([PermissionRequestConfig config = const PermissionRequestConfig()]) Future<(NotificationFailure?, PermissionStatus)>
Requests all notification permissions with comprehensive handling.
requestAllPermissionsLegacy({bool requestCriticalAlerts = false, bool requestExactAlarms = true, bool showRationale = true, bool autoRetry = false, int maxRetries = 2, PermissionFailureCallback? onPermissionFailure, bool autoOfferSettings = false, bool settingsNavigationEnabled = true}) Future<(NotificationFailure?, PermissionStatus)>
Backward compatibility method with individual parameters.
shouldRequestPermissionsAutomatically({required bool autoRequestEnabled, PermissionStatus? currentStatus}) bool
Determines if permissions should be requested automatically.
toString() String
A string representation of this object.
inherited

Operators

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