ChatClientListener

interface ChatClientListener : ClientListener

Interface used to allow host app listen to key general panel events and chat-specific events.

Functions

Link copied to clipboard
open fun onError(e: Exception)

Callback invoked when an error has occurred.

Link copied to clipboard
open fun onLocalUserJoined(channelId: String)

Callback invoked when the local user has successfully joined the given channelId.

Link copied to clipboard
open fun onLocalUserLeft(channelId: String)

Callback invoked when the local user has successfully left the given channelId.

Link copied to clipboard
open fun onMessageCopied(    channelId: String,     userId: String?,     messageId: String?,     content: String)
Link copied to clipboard
open fun onMessageFailed(    channelId: String,     userId: String?,     messageId: String?,     content: String)
Link copied to clipboard
open fun onMessageReceived(    channelId: String,     userId: String?,     messageId: String?,     content: String)
Link copied to clipboard
open fun onMessageSent(    channelId: String,     userId: String?,     messageId: String?,     content: String)
Link copied to clipboard
open fun onSessionAuthTokenInvalid()

Callback invoked when the client's SAT is found to be invalid.

Link copied to clipboard
open fun onSessionAuthTokenMismatch()

Callback invoked when the client's SAT doesn't match the user id of this client.

Link copied to clipboard
open fun onSessionAuthTokenNearingExpiry()

Callback invoked when the client's SAT is about to expire