customVisitor
fun ChatEventHandler.customVisitor(data: Any, listener: ChatEventHandler.OnEventSentListener? = null, errorListener: ChatEventHandler.OnEventErrorListener? = null)
Send an arbitrary custom analytics event to the analytics server.
The implementer is free to determine both the contents and usage of the custom visitor event.
Parameters
data
data to be sent in the custom event. Must be json encodable.
listener
an optional listener to be notified after the event has been sent.
errorListener
an optional error listener to be notified about errors encountered when event is handled.