public interface NotificationCenter
| Modifier and Type | Method and Description |
|---|---|
void |
addObserverForName(String name,
NotificationObserver observer)
Add an observer to the @MVVMNotificationCenter which gets notifications
for the given @String.
|
void |
postNotification(String name,
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(String name,
NotificationObserver observer)
Removes an observer from the @MVVMNotificationCenter.
|
void addObserverForName(String name, NotificationObserver observer)
name - key of the notification to listenobserver - which listens for the notificationvoid removeObserverForName(String name, NotificationObserver observer)
name - key of the notification to removeobserver - which listens for the notificationvoid removeObserver(NotificationObserver observer)
observer - for remove all notificationsCopyright © 2014 Saxonia Systems AG. All rights reserved.