public class NotificationManager extends java.lang.Object implements RemoteNotifier
NotificationListener
s.
Threading guarantees aren't perfect. This needs fixing.Modifier and Type | Class and Description |
---|---|
static interface |
NotificationManager.Action |
Constructor and Description |
---|
NotificationManager(NotificationManager.Action subscribeAction,
NotificationManager.Action unSubscribeAction) |
Modifier and Type | Method and Description |
---|---|
<T> void |
addNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener) |
<T> NotificationListener<T> |
getNotificationListener() |
void |
handleNotification(Notification<?> notification) |
<T> void |
removeNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener) |
public NotificationManager(NotificationManager.Action subscribeAction, NotificationManager.Action unSubscribeAction)
public <T> NotificationListener<T> getNotificationListener()
public <T> void addNotificationListener(long remoteId, NotificationType<T> notificationType, NotificationListener<T> notificationListener) throws RemoteException
addNotificationListener
in interface RemoteNotifier
RemoteException
public <T> void removeNotificationListener(long remoteId, NotificationType<T> notificationType, NotificationListener<T> notificationListener) throws RemoteException
removeNotificationListener
in interface RemoteNotifier
RemoteException
public void handleNotification(Notification<?> notification)