INotification class

The interface definition for a PureMVC MultiCore Notification.

The Observer Pattern as implemented within PureMVC exists to support publish/subscribe communication between actors.

INotifications are not meant to be a replacement for Events, but rather an internal communication mechanism that ensures PureMVC is portable regardless of what type of Event mechanism is supported (or not) on a given platform.

Generally, IMediator implementors place Event listeners on their view components, and IProxy implementors place Event listeners on service components. Those Events are then handled in the usual way, and may lead to the broadcast of INotifications that trigger ICommands or notify IMediators.

See IView, IObserver

Implementers

Constructors

INotification()

Properties

body ↔ dynamic
This INotifications's body
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
This INotifications's name
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
This INotifications's type
read / write

Methods

getBody() → dynamic
Get the body of the INotification. [...]
getName() String
Get the name of the INotification. [...]
getType() String
Get the type of the INotification. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setBody(Object body) → void
Set the body of the INotification. [...]
setType(String type) → void
Set the type of the INotification. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited