Constructor.
The notification method on the interested object should take
one parameter of type Notification
Optional
notify: null | ((notification: INotification) => void)The method to be called when a notification is received. Can be null
.
Optional
context: 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
Observer
implementation.An
Observer
is an object that encapsulates information about an interested object with a method that should be called when a particularNotification
is broadcast.In PureMVC, the
Observer
class assumes these responsibilities:Observer