public class NotificationHandlerListener
extends NotificationListenerService
| Constructor and Description |
|---|
NotificationHandlerListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCreate()
Called when the service is started (usually after boot).
|
void |
onDestroy() |
void |
onNotificationPosted(StatusBarNotification sbn)
Called when a notification is posted - here, we check the particular component packages that fired the event, filtering out the ones we support
|
void |
onNotificationRemoved(StatusBarNotification sbn)
Called when a notification is removed but we don't care about this
|
public void onNotificationPosted(StatusBarNotification sbn)
sbn - Reference to the posted notificationpublic void onNotificationRemoved(StatusBarNotification sbn)
sbn - Reference to the posted notificationpublic void onCreate()
AccessibilityServicepublic void onDestroy()