public class NotificationManager extends java.lang.Object implements RemoteNotifier
NotificationListeners.
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 RemoteNotifierRemoteExceptionpublic <T> void removeNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener)
throws RemoteException
removeNotificationListener in interface RemoteNotifierRemoteExceptionpublic void handleNotification(Notification<?> notification)