Notification class

A base INotification implementation.

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, Notification

Implemented types

Constructors

Notification(String name, [dynamic body, String type])
Constructor. [...]

Properties

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

Methods

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

Operators

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