Class NotificationsManager
java.lang.Object
com.gluonhq.attach.localnotifications.impl.NotificationsManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
This method is called from the iOS/Android layer, in a different thread, so we need to call the runnable in the JavaFX Application Thread.static boolean
Register a Notification by its id, for later processingstatic Notification
Unregister a Notification by its id
-
Constructor Details
-
NotificationsManager
public NotificationsManager()
-
-
Method Details
-
processNotification
This method is called from the iOS/Android layer, in a different thread, so we need to call the runnable in the JavaFX Application Thread. If this method is called too early, and the map doesn't contain yet the notifications, it will be added to the unprocessed list, for later evaluation- Parameters:
id
- the id of the notification
-
registerNotification
Register a Notification by its id, for later processing- Parameters:
n
- the Notification- Returns:
- Returns true if the notification was scheduled, or false if - the notification was already scheduled in the notifications manager. - the notification didn't have valid text or scheduled date.
-
unregisterNotification
Unregister a Notification by its id- Parameters:
id
- the id of the Notification- Returns:
- the Notification being unregistered
-