Namespace: PureMVC.Interfaces.INotifier
Interface INotifier
All Known Subinterfaces: - IFacade
All Known Implementing Classes: - TCommand , TSimpleCommand , TMacroCommand , TNotifier , TProxy , TMediator
public interface INotifier
Persistent- False
see
remarks- MacroCommand, Command, Mediator and Proxy all have a need to send NotificationsThe INotifier interface provides a common method called sendNotification that relieves implementation code of the necessity to actually construct NotificationsThe Notifier class, which all of the above mentioned classes extend, also provides an initialized reference to the Facade Singleton, which is required for the convienience method for sending Notifications, but also eases implementation as these classes have frequent Facade interactions and usually require access to the facade anyway
summary- The interface definition for a PureMVC Notifier
public Sub |
SendNotification(NotificationName: string; Sender: TObject) Send a INotification |
public Sub |
SendNotification(NotificationName: string; Sender: TObject; Body: TValue) Send a INotification |
public Sub |
SendNotification(NotificationName: string; Sender: TObject; Body: TValue; Kind: TValue) Send a INotification |
SendNotification
public procedure SendNotification(NotificationName: string; Sender: TObject)
Reintroduce- False
summary- Send a INotification
remarks- Convenience method to prevent having to construct new notification instances in our implementation code
param- The name of the notification to send
SendNotification
public procedure SendNotification(NotificationName: string; Sender: TObject; Body: TValue)
Reintroduce- False
summary- Send a INotification
remarks- Convenience method to prevent having to construct new notification instances in our implementation code
param- The name of the notification to send
The body of the notification
SendNotification
public procedure SendNotification(NotificationName: string; Sender: TObject; Body: TValue; Kind: TValue)
Reintroduce- False
summary- Send a INotification
remarks- Convenience method to prevent having to construct new notification instances in our implementation code
param- The name of the notification to send
The body of the notification
The 'kind' of the notification