| com.urbanairship.push.NotificationListener |
Notification listener.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
onNotificationBackgroundAction(NotificationInfo notificationInfo, NotificationActionButtonInfo actionButtonInfo)
Called when a background notification action button is tapped.
| ||||||||||
| abstract void |
onNotificationDismissed(NotificationInfo notificationInfo)
Called when a notification is dismissed.
| ||||||||||
| abstract boolean |
onNotificationForegroundAction(NotificationInfo notificationInfo, NotificationActionButtonInfo actionButtonInfo)
Called when a foreground notification action button is tapped.
| ||||||||||
| abstract boolean |
onNotificationOpened(NotificationInfo notificationInfo)
Called when the notification is opened.
| ||||||||||
| abstract void |
onNotificationPosted(NotificationInfo notificationInfo)
Called when a notification is posted.
| ||||||||||
Called when a background notification action button is tapped.
| notificationInfo | The notification info. |
|---|
Called when a notification is dismissed.
| notificationInfo | The notification info. |
|---|
Called when a foreground notification action button is tapped.
| notificationInfo | The notification info. |
|---|
true if the application was launched, otherwise false. If
false is returned, and autoLaunchApplication
is enabled, the launcher activity will automatically be launched. The push message will be available
in the launcher intent's extras. Use {@link PushMessage#fromIntent(Intent) to access the message
Called when the notification is opened.
| notificationInfo | The notification info. |
|---|
true if the application was launched, otherwise false. If
false is returned, and autoLaunchApplication
is enabled, the launcher activity will automatically be launched. The push message will be available
in the launcher intent's extras. Use {@link PushMessage#fromIntent(Intent) to access the message.
Called when a notification is posted.
| notificationInfo | The notification info. |
|---|