proactiveActionSuccess
fun ChatEventHandler.proactiveActionSuccess(data: ActionMetadata, date: Date = Date(), listener: ChatEventHandler.OnEventSentListener? = null, errorListener: ChatEventHandler.OnEventErrorListener? = null)
Send a proactive action success event to the analytics.
proactiveActionClick should be invoked when the user accepts a proactive action offered via ChatActionHandler.onPopup listener either by clicking or tapping it.
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.