diff options
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/INotificationListener.aidl | 26 | ||||
| -rw-r--r-- | core/java/android/app/INotificationManager.aidl | 4 |
2 files changed, 30 insertions, 0 deletions
diff --git a/core/java/android/app/INotificationListener.aidl b/core/java/android/app/INotificationListener.aidl new file mode 100644 index 000000000000..f010a2a50830 --- /dev/null +++ b/core/java/android/app/INotificationListener.aidl @@ -0,0 +1,26 @@ +/** + * Copyright (c) 2013, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.app; + +import com.android.internal.statusbar.StatusBarNotification; + +/** @hide */ +oneway interface INotificationListener +{ + void onNotificationPosted(in StatusBarNotification notification); + void onNotificationRemoved(in StatusBarNotification notification); +}
\ No newline at end of file diff --git a/core/java/android/app/INotificationManager.aidl b/core/java/android/app/INotificationManager.aidl index 1f4c81df370b..14bcc0d7fba4 100644 --- a/core/java/android/app/INotificationManager.aidl +++ b/core/java/android/app/INotificationManager.aidl @@ -17,6 +17,7 @@ package android.app; +import android.app.INotificationListener; import android.app.ITransientNotification; import android.app.Notification; import android.content.Intent; @@ -39,5 +40,8 @@ interface INotificationManager StatusBarNotification[] getActiveNotifications(String callingPkg); StatusBarNotification[] getHistoricalNotifications(String callingPkg, int count); + + void registerListener(in INotificationListener listener, int userid); + void unregisterListener(in INotificationListener listener, int userid); } |
