NotificationManagerImplWeb class

Notification Manager implementation for Web Obfuscates dependency on JsNotificationsPlatform, specifically JSNotification and JSNotificationAction in favour of CKNotification and CKNotificationAction.

Inheritance

Properties

actionStream Stream<CKCallResult>
Obtain stream for notification click/actions i.e. CKNotificationAction button clicks. On tapping a notification, this is considered an action. These notifications are reposted immediately to ensure transparency of the call state. A notification can be reposted automatically with the repostOnClick property. TODO: Implement repostOnClick
no setteroverride
dismissStream Stream<CKCallResult>
Obtain stream for notification dismiss events. Dismiss events include clicking the close button on the notification.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
notificationChangeStream Stream<CKNotification>
Obtain stream describing changes to notifications
no setteroverride
notificationStream Stream<Iterable<CKNotification>>
Obtain stream of all notifications currently visible
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tapStream Stream<CKCallResult>
Notification tap interaction stream. Taps include clicking anywhere on the notification except the close, or CKNotificationAction buttons (except empty actions). Action buttons with an empty action will be treated as a tap.
no setteroverride

Methods

add(CKNotification notification, {Map<String, bool>? flags}) Future<void>
Add a notification to the notification manager, overwriting existing an notification with the same CKNotification.uuid
override
dismiss({required String uuid}) Future<void>
Dismiss a notification by uuid
override
dispose() Future<void>
Dispose of the notification manager, releasing resources & streams
override
getAllNotifications() Iterable<CKNotification>
Get all notifications currently visible.
override
getNotification(String uuid) CKNotification?
Get a notification by uuid
override
hasPermissions() Future<bool>
Check if the notification permissions are granted
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermissions() Future<bool>
Requests notification permissions from web browser
override
toString() String
A string representation of this object.
inherited

Operators

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