ICustomEventRequest
This object must be passed as the request object for custom event's publish API.
Functions
setEventPayload
Use this function to set customEventName to which user is interested in invoking
publish
API:
setCustomEventName(eventName: string): void;| Parameter Name | Required? | Description |
|---|---|---|
| eventName | Yes | Any name as customEventName . |
setEventPayload
Use this function to set data in the custom event publish request object. This data
is sent to the receiver of this publish
request:
setEventPayload(payload: any): void;| Parameter Name | Required? | Description |
|---|---|---|
| payload | Yes | Any data you want to send along with the custom event request |