public class NotificationManager extends Object implements NotificationListener
| Constructor and Description |
|---|
NotificationManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotification(Notification notification)
Adds the given notification.
|
Notification |
getNotification(String notificationId)
Returns the notification with the given ID.
|
Set<Notification> |
getNotifications()
Returns all current notifications.
|
void |
notificationDismissed(Notification notification)
Notifies a listener that the given notification was dismissed.
|
void |
removeNotification(Notification notification)
Removes the given notification.
|
public Set<Notification> getNotifications()
public Notification getNotification(String notificationId)
notificationId - The ID of the notificationnull if there is no notification
with the given IDpublic void addNotification(Notification notification)
notification - The notification to addpublic void removeNotification(Notification notification)
notification - The notification to removepublic void notificationDismissed(Notification notification)
notificationDismissed in interface NotificationListenernotification - The dismissed notificationCopyright © 2026. All rights reserved.