Notification callback
A callback to handle events from Synerise notifications.
Declared in
com.synerise.sdk.injector.callback.OnNotificationListener
Notification received
This method is called when a Synerise notification is received.
- public void onNotificationReceived(NotificationInfo notificationInfo)
Parameter | Type | Description |
---|---|---|
reason |
NotificationInfo |
Object providing info about the notification. |
Notification dismissed
This method is called when a Synerise notification is dismissed.
- public void onNotificationDismissed(NotificationInfo notificationInfo)
Parameter | Type | Description |
---|---|---|
reason |
NotificationInfo |
Object providing info about the notification. |
Notification clicked
This method is called when a Synerise notification is clicked.
- public void onNotificationClicked(NotificationInfo notificationInfo)
Parameter | Type | Description |
---|---|---|
reason |
NotificationInfo |
Object providing info about the notification. |
Notification action button clicked
This method is called when an action button is clicked in a Synerise notification.
- public void onActionButtonClicked(NotificationInfo notificationInfo, String actionButton)
Parameter | Type | Description |
---|---|---|
reason |
NotificationInfo |
Object providing info about the notification. |
actionButton |
String |
Text of the clicked action button. |