public class UINotificationManager
extends java.lang.Object
Constructor and Description |
---|
UINotificationManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addNotification(UINotification notification)
Adds the given notification to the list of unread notifications and
notifies interested listeners.
|
static void |
addNotificationListener(UINotificationListener l)
Adds the given UINotificationListener to the list of listeners
that would be notified on any changes in missed calls count.
|
(package private) static void |
fireClearedEvent(UINotification notification)
Notifies interested UINotificationListener that a
notification has been cleared.
|
static java.util.Collection<UINotificationGroup> |
getNotificationGroups()
Returns a list of all notification groups.
|
static java.util.Iterator<UINotification> |
getUnreadNotifications(UINotificationGroup group)
Returns a list of all unread notifications.
|
static void |
removeAllNotifications()
Removes all unread notifications from all notification groups.
|
static void |
removeAllNotifications(UINotificationGroup group)
Removes all unread notifications.
|
static void |
removeNotificationListener(UINotificationListener l)
Removes the given UINotificationListener from the list of
listeners that are notified on any changes in missed calls count.
|
public static void addNotificationListener(UINotificationListener l)
l
- the UINotificationListener to addpublic static void removeNotificationListener(UINotificationListener l)
l
- the UINotificationListener to removepublic static void addNotification(UINotification notification)
notification
- the UINotification to addpublic static void removeAllNotifications(UINotificationGroup group)
group
- removes all unread notifications for the given notification
grouppublic static void removeAllNotifications()
public static java.util.Iterator<UINotification> getUnreadNotifications(UINotificationGroup group)
group
- the notification group, which notification we're looking
forpublic static java.util.Collection<UINotificationGroup> getNotificationGroups()
static void fireClearedEvent(UINotification notification)
notification
- the cleared notification
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.