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
public final static Unit
Archive the thread.
Link copied to clipboard
public final static Unit loadMetadata(ChatThreadEventHandler.OnEventSentListener listener, ChatThreadEventHandler.OnEventErrorListener errorListener)
Request additonal thread metadata.
Link copied to clipboard
public final static Unit markThreadRead(ChatThreadEventHandler.OnEventSentListener listener, ChatThreadEventHandler.OnEventErrorListener errorListener)
Mark the thread as read.
Link copied to clipboard
public abstract Unit trigger(ChatThreadEvent event, ChatThreadEventHandler.OnEventSentListener listener, ChatThreadEventHandler.OnEventErrorListener errorListener)
Sends an event to server without further delays. If sending of the event fails, the event is considered consumed anyway.
Link copied to clipboard
public final static Unit typingEnd(ChatThreadEventHandler.OnEventSentListener listener, ChatThreadEventHandler.OnEventErrorListener errorListener)
Notify the server that the user has stopped typing.
Link copied to clipboard
public final static Unit typingStart(ChatThreadEventHandler.OnEventSentListener listener, ChatThreadEventHandler.OnEventErrorListener errorListener)
Notify the agent that the user has started typing.