public interface LocalNotificationCallback
An interface that can be implemented by the application's main class (i.e.
the class with start()
, stop()
etc..) to respond
to local notifications. This interface only works when it is implemented
by the main class. It will never be called otherwise.
IMPORTANT: THIS CALLBACK IS CALLED OFF THE EDT. ANY UPDATES TO THE UI
WILL NEED TO OCCUR INSIDE A callSerially()
block.
LocalNotification
Modifier and Type | Method and Description |
---|---|
void |
localNotificationReceived(String notificationId)
Callback method that is called when a local notification is received AND
the application is active.
|
void localNotificationReceived(String notificationId)
Callback method that is called when a local notification is received AND the application is active. This won't necessarily be called when the notification is received. If the app is in the background, for example, the notification will manifest itself as a message to the user's task bar (or equivalent). If the user then clicks on the notification message, the app will be activated, and this callback method will be called.
IMPORTANT: THIS CALLBACK IS CALLED OFF THE EDT. ANY UPDATES TO THE UI
WILL NEED TO OCCUR INSIDE A callSerially()
block.
notificationId
- The notification ID of the notification that was received.LocalNotification