ChatThreadEventHandler

public 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

Link copied to clipboard
public interface OnEventErrorListener

Listener which will be notified when the triggered event has failed with an error.

Link copied to clipboard
public interface OnEventSentListener

A listener to be notified when the triggered event is sent.

Functions

Link copied to clipboard
@Deprecated(message = "Use ChatThread.archive() instead.")
public final static Unit archiveThread(ChatThreadEventHandler.OnEventSentListener listener, ChatThreadEventHandler.OnEventErrorListener errorListener)

Archive the thread.

Link copied to clipboard

Request additonal thread metadata.

Link copied to clipboard

Mark the thread as read.

Link copied to clipboard

Sends an event to server without further delays. If sending of the event fails, the event is considered consumed anyway.

Link copied to clipboard

Notify the server that the user has stopped typing.

Link copied to clipboard

Notify the agent that the user has started typing.