EventListener

interface EventListener

Any chat room related event will received from this callback. For example, Chat room status, and chat room management state update..et. If it not set event listener to BlendVisionMessageManager in your project, it can not receive any event from BlendVisionMessageManager.

Please refer to BVMessageManager 's setEventListener()

Functions

Link copied to clipboard
open fun onBlockChatRoomUserSuccess(userId: String)

Called when block chat room user success.

Link copied to clipboard
abstract fun onChatRoomConnectionChanged(connectionState: ConnectionState)

Called when chat room status updated.

Link copied to clipboard
open fun onCustomCountersInit(customCounters: List<CustomCounter>)

Called when init custom counters.

Link copied to clipboard
open fun onCustomCountersUpdated(customCounters: List<CustomCounter>)

Called when update custom counters.

Link copied to clipboard
open fun onCustomMessageCountUpdated(increment: Int, customCounters: CustomCounter)

Called when custom message count updated.

Link copied to clipboard
open fun onDeleteMessageSuccess(messageId: String)

Called when delete a message success.

Link copied to clipboard
abstract fun onError(exception: MessageException)

Called when error exception occurred

Link copied to clipboard
open fun onGetChatHistorySuccess(messages: List<MessageInfo>)

Called when get messages success.

Link copied to clipboard
open fun onGetMessagesSuccess(messages: List<MessageInfo>)

Called when get message success.

Link copied to clipboard
abstract fun onGetSelfInfoSuccess(self: Self)

Called when get self info success.

Link copied to clipboard

Called when mute chat room success.

Link copied to clipboard

Called when pin a message success.

Link copied to clipboard

Called when refresh token success.

Link copied to clipboard
open fun onUnblockChatRoomUserSuccess(userId: String)

Called when unblock chat room user success.

Link copied to clipboard

Called when unmute chat room success.

Link copied to clipboard

Called when unpin a message success.

Link copied to clipboard

Called when update user info success.

Link copied to clipboard

Called when update viewer info success.