Constructor.
The notification method on the interested object should take
one parameter of type Notification
Optionalnotify: null | ((notification: INotification) => void)The method to be called when a notification is received. Can be null.
Optionalcontext: anyThe context in which to call the notifyMethod. Can be null.
Get the notifyContext
The current context or null if no context is set.
Set the notification context.
The context to set. Can be null.
Get the notification method.
The current method or null if no method is set.
Set the notification method.
The notification method should take one parameter of type Notification.
The method to set for handling notifications. Can be null.
Notify the interested object.
The notification to send to the observer.
A base
Observerimplementation.An
Observeris an object that encapsulates information about an interested object with a method that should be called when a particularNotificationis broadcast.In PureMVC, the
Observerclass assumes these responsibilities:Observer