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 Details

    • LocalNotificationsServiceBase

      public LocalNotificationsServiceBase()
  • Method Details

    • 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 interface LocalNotificationsService
      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