Class LocalNotificationsServiceBase
- java.lang.Object
-
- com.gluonhq.attach.localnotifications.impl.LocalNotificationsServiceBase
-
- All Implemented Interfaces:
LocalNotificationsService
- Direct Known Subclasses:
AndroidLocalNotificationsService
,IOSLocalNotificationsService
public abstract class LocalNotificationsServiceBase extends java.lang.Object implements LocalNotificationsService
RAS is added after changes in the notifications list to prevent an empty list if the listener is added too soon, before the notifications are provided.
-
-
Constructor Summary
Constructors Constructor Description LocalNotificationsServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javafx.collections.ObservableList<Notification>
getNotifications()
An Observable List of Notifications, that can be used to add or remove notifications If the notification is marked as scheduled, it won't be added to the deviceprotected abstract void
scheduleNotification(Notification notification)
Used by the platform-dependent implementation to scheduleNotification the notificationprotected abstract void
unscheduleNotification(Notification notification)
Used by the platform-dependent implementation to unscheduleNotification the notification
-
-
-
Method Detail
-
getNotifications
public final javafx.collections.ObservableList<Notification> getNotifications()
An Observable List of Notifications, that can be used to add or remove notifications If the notification is marked as scheduled, it won't be added to the device- Specified by:
getNotifications
in interfaceLocalNotificationsService
- Returns:
- ObservableList of Notification
-
scheduleNotification
protected abstract void scheduleNotification(Notification notification)
Used by the platform-dependent implementation to scheduleNotification the notification- Parameters:
notification
- to be scheduled
-
unscheduleNotification
protected abstract void unscheduleNotification(Notification notification)
Used by the platform-dependent implementation to unscheduleNotification the notification- Parameters:
notification
- to be unscheduled
-
-