ChatThreadEventHandler
interface ChatThreadEventHandler
Event handler allows for triggering events regarding the ChatThread instance it was created for.
It has no side effects attached to it and can be created again on demand.
Types
Functions
Link copied to clipboard
fun ChatThreadEventHandler.archiveThread(listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
Archive the thread.
Link copied to clipboard
fun ChatThreadEventHandler.loadMetadata(listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
Request additonal thread metadata.
Link copied to clipboard
fun ChatThreadEventHandler.markThreadRead(listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
Mark the thread as read.
Link copied to clipboard
abstract fun trigger(event: ChatThreadEvent, listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
Sends an event to server without further delays. If sending of the event fails, the event is considered consumed anyway.
Link copied to clipboard
fun ChatThreadEventHandler.typingEnd(listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
Notify the server that the user has stopped typing.
Link copied to clipboard
fun ChatThreadEventHandler.typingStart(listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
Notify the agent that the user has started typing.