From 5579ec33eb317a19ad80929169b2b329b147d98b Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Fri, 28 Mar 2014 09:42:05 -0400 Subject: DO NOT MERGE Enhance the NotificationListenerService api. Add to NotificationListenerService: - getActiveNotificationKeys() : String[] - getActiveNotifications(String[] keys) : StatusBarNotification[] - cancelNotifications(String[] keys) : void - onListenerConnected(String[] keys) : void Add to StatusBarNotification: - getKey() : String Bug:13562828 Change-Id: I9da222cb4af22864bc0ecdecc3f121bced0723d6 --- api/current.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index f6b0c33..b8e8a05 100644 --- a/api/current.txt +++ b/api/current.txt @@ -22883,8 +22883,11 @@ 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"; @@ -22896,6 +22899,7 @@ package android.service.notification { method public android.service.notification.StatusBarNotification clone(); method public int describeContents(); method public int getId(); + method public java.lang.String getKey(); method public android.app.Notification getNotification(); method public java.lang.String getPackageName(); method public long getPostTime(); -- cgit v1.1