public interface NotificationCenter
| Modifier and Type | Method and Description |
|---|---|
void |
addObserverForName(java.lang.String name,
NotificationObserver observer)
Add an observer to the @MVVMNotificationCenter which gets notifications
for the given @String.
|
void |
postNotification(java.lang.String name,
java.lang.Object... objects)
Post a notification to all @MVVMNotificationObserver which are registered
with the given @String.
|
void |
removeObserver(NotificationObserver observer)
Remove all registrations of an @MVVMNotificationObserver.
|
void |
removeObserverForName(java.lang.String name,
NotificationObserver observer)
Removes an observer from the @MVVMNotificationCenter.
|
void addObserverForName(java.lang.String name,
NotificationObserver observer)
name - key of the notification to listenobserver - which listens for the notificationvoid removeObserverForName(java.lang.String name,
NotificationObserver observer)
name - key of the notification to removeobserver - which listens for the notificationvoid removeObserver(NotificationObserver observer)
observer - for remove all notificationsvoid postNotification(java.lang.String name,
java.lang.Object... objects)
name - of the notification which sould be sendobjects - which should be passedCopyright © 2013 Saxonia Systems AG. All Rights Reserved.