XUI Notification Center
Powerful | Easy to Use | Versatile
XUINotificationCenter provides a mechanism for sending messages within your app.
XUINotificationCenter is an application-wide module that handles sending and receiving messages between objects within your app.
- Any class can receive a XUINotification if it implements the XUINotificationListener interface. We call these classes Listeners.
- Listeners can subscribe to only certain types of notifications or all notifications
- Notifications can contain any arbitrary data you want
- Used extensively throughout the XUI framework. For example they are used to handle light / dark mode theme switching