|
JavaXT
|
|||||||
NotificationService ClassProvides static methods used to post and consume events.
ConstructorsThere are no public constructors.Static Methodsnotify( String event, String model, Value data ) returns void Used to post an event and share it with any registered event listeners
addListener( Listener listener ) returns void Used to add an event listener that will consume events. Example:
NotificationService.addListener((
String event, String model, javaxt.utils.Value data, long timestamp)->{
console.log(event, model, data);
});
|
|||||||