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)
Link copied to clipboard
fun ChatThreadEventHandler.loadMetadata(listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
Send a LoadThreadMetadataEvent requesting additional thread information.
Link copied to clipboard
fun ChatThreadEventHandler.markThreadRead(listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
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)
Link copied to clipboard
fun ChatThreadEventHandler.typingStart(listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)