Optional logger: Loggercallback to be invoked when an event is raised
Optional eventTypes: EventType[]list of events that this callback will be invoked for, if not provided callback will be invoked for all events
Optional callbackId: stringIdentifier for the callback, used to locate and remove the callback when no longer required
Emits events by calling callback with event message
Optional interactionType: InteractionTypeOptional payload: EventPayloadOptional error: EventErrorGenerated using TypeDoc
Adds event callbacks to array