Dart DocumentationpuremvcINotification

INotification Interface

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

Implemented by

Notification

Methods

Code get body() #

Dynamic get body();

Code void set body(bodyObject) #

This INotifications's body

void set body( Dynamic bodyObject );

Code getBody() #

Get the body of the INotification.

Dynamic getBody();

Code String getName() #

Get the name of the INotification.

String getName();

Code String getType() #

Get the type of the INotification.

String getType();

Code String get name() #

String get name();

Code void set name(String noteName) #

This INotifications's name

void set name( String noteName );

Code void setBody(Object body) #

Set the body of the INotification.

void setBody( Object body );

Code void setType(String type) #

Set the type of the INotification.

void setType( String type );

Code String get type() #

String get type();

Code void set type(String noteType) #

This INotifications's type

void set type( String noteType );