Loading api/current.txt +0 −3 Original line number Diff line number Diff line Loading @@ -22768,11 +22768,8 @@ package android.service.notification { ctor public NotificationListenerService(); method public final void cancelAllNotifications(); method public final void cancelNotification(java.lang.String, java.lang.String, int); method public final void cancelNotifications(java.lang.String[]); method public android.service.notification.StatusBarNotification[] getActiveNotifications(); method public android.service.notification.StatusBarNotification[] getActiveNotifications(java.lang.String[]); method public android.os.IBinder onBind(android.content.Intent); method public void onListenerConnected(java.lang.String[]); method public abstract void onNotificationPosted(android.service.notification.StatusBarNotification); method public abstract void onNotificationRemoved(android.service.notification.StatusBarNotification); field public static final java.lang.String SERVICE_INTERFACE = "android.service.notification.NotificationListenerService"; core/java/android/service/notification/NotificationListenerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,7 @@ public abstract class NotificationListenerService extends Service { * at this time. * * @param notificationKeys The notification keys for all currently posted notifications. * @hide */ public void onListenerConnected(String[] notificationKeys) { // optional Loading Loading @@ -155,6 +156,7 @@ public abstract class NotificationListenerService extends Service { * @param keys Notifications to dismiss, or {@code null} to dismiss all. * * {@see #cancelNotification(String, String, int)} * @hide */ public final void cancelNotifications(String[] keys) { if (!isBound()) return; Loading @@ -181,6 +183,7 @@ public abstract class NotificationListenerService extends Service { * * @param keys A specific list of notification keys, or {@code null} for all. * @return An array of active notifications. * @hide */ public StatusBarNotification[] getActiveNotifications(String[] keys) { if (!isBound()) return null; Loading Loading
api/current.txt +0 −3 Original line number Diff line number Diff line Loading @@ -22768,11 +22768,8 @@ package android.service.notification { ctor public NotificationListenerService(); method public final void cancelAllNotifications(); method public final void cancelNotification(java.lang.String, java.lang.String, int); method public final void cancelNotifications(java.lang.String[]); method public android.service.notification.StatusBarNotification[] getActiveNotifications(); method public android.service.notification.StatusBarNotification[] getActiveNotifications(java.lang.String[]); method public android.os.IBinder onBind(android.content.Intent); method public void onListenerConnected(java.lang.String[]); method public abstract void onNotificationPosted(android.service.notification.StatusBarNotification); method public abstract void onNotificationRemoved(android.service.notification.StatusBarNotification); field public static final java.lang.String SERVICE_INTERFACE = "android.service.notification.NotificationListenerService";
core/java/android/service/notification/NotificationListenerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,7 @@ public abstract class NotificationListenerService extends Service { * at this time. * * @param notificationKeys The notification keys for all currently posted notifications. * @hide */ public void onListenerConnected(String[] notificationKeys) { // optional Loading Loading @@ -155,6 +156,7 @@ public abstract class NotificationListenerService extends Service { * @param keys Notifications to dismiss, or {@code null} to dismiss all. * * {@see #cancelNotification(String, String, int)} * @hide */ public final void cancelNotifications(String[] keys) { if (!isBound()) return; Loading @@ -181,6 +183,7 @@ public abstract class NotificationListenerService extends Service { * * @param keys A specific list of notification keys, or {@code null} for all. * @return An array of active notifications. * @hide */ public StatusBarNotification[] getActiveNotifications(String[] keys) { if (!isBound()) return null; Loading