EventChannel

EventChannel

Eventchannel use to Publish event to Channel subscribers.

Event dispatch using event channel with help of Event Broadcaster

It also known as PubSub

Constructor

new EventChannel(_id)

Source:
Example
//create Navigation Event
       let helloNavEvent = new NavigationEvent(EventUtils.NAV_CHANGE_EVENT, "Hello_NavEvent", "Message :: Hello World !!!", "/hello");

       // Dispatch Navigation Event on Navigation Event Channel
       EventBroadCaster.navEventChannel.dispatchEvent(navEvent);
Parameters:
Name Type Description
_id String

EventChannel ID

Classes

EventChannel