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 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
-
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.collections.ObservableList<Notification>
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
-
Constructor Details
-
LocalNotificationsServiceBase
public LocalNotificationsServiceBase()
-
-
Method Details
-
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
Used by the platform-dependent implementation to scheduleNotification the notification- Parameters:
notification
- to be scheduled
-
unscheduleNotification
Used by the platform-dependent implementation to unscheduleNotification the notification- Parameters:
notification
- to be unscheduled
-