-
Notifications
You must be signed in to change notification settings - Fork 10
Custom Managers
If the defaults aren't cutting it, you can make your own NotificationManager. Look at the SimpleManager/QueueManager/SlideManager for an example.
By extending NotificationManager, you get two methods, notificationAdded(Notification, Time) and notificationRemoved(Notification). If you need to get a List of all the Notifications in the NotificationManager, you can call getNotifications(). Everything else is really up to you. All of the Notifications have setLocation(x, y), setSize(w, h), setOpacity(double), show(), hide(), and isShown(). This is what you can manager with your NotificationManager. Try to obey the Notification theme (e.g., if you're going to modify the opacity, make sure you eventually obey the opacity setting in the theme).