proactiveActionClick
fun ChatEventHandler.proactiveActionClick(data: ActionMetadata, date: Date = Date(), listener: ChatEventHandler.OnEventSentListener? = null, errorListener: ChatEventHandler.OnEventErrorListener? = null)
Send a proactive action click event to the analytics.
proactiveActionClick should be invoked when the user clicks or taps on a proactive action offered via ChatActionHandler.onPopup listener.
Parameters
data
ActionMetadata provided in ChatActionHandler.onPopup listener.
date
date of the event.
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.