BaseChannelHandler

Channel handler. This handler provides callbacks for events related OpenChannel or GroupChannel. All callbacks are called only when the currently logged-in User is a participant or member of OpenChannel or GroupChannel respectively. To add or remove this handler, refer to SendbirdChat.addChannelHandler and SendbirdChat.removeChannelHandler.

Inheritors

Functions

Link copied to clipboard
open fun onChannelChanged(channel: BaseChannel)

A callback for when channel property is changed.

Link copied to clipboard
open fun onChannelDeleted(channelUrl: String, channelType: ChannelType)

A callback for when channel is deleted.

Link copied to clipboard
open fun onChannelFrozen(channel: BaseChannel)

A callback for when channel is frozen (Users can't send messages).

Link copied to clipboard
open fun onChannelUnfrozen(channel: BaseChannel)

A callback for when channel is unfrozen (Users can send messages).

Link copied to clipboard
open fun onMentionReceived(channel: BaseChannel, message: BaseMessage)

A callback for when a mention is received.

Link copied to clipboard
open fun onMessageDeleted(channel: BaseChannel, msgId: Long)

A callback for when a message is deleted.

Link copied to clipboard
abstract fun onMessageReceived(channel: BaseChannel, message: BaseMessage)

A callback for when a message is received.

Link copied to clipboard
open fun onMessageUpdated(channel: BaseChannel, message: BaseMessage)

A callback for when a message is updated.

Link copied to clipboard
open fun onMetaCountersCreated(channel: BaseChannel, metaCounterMap: Map<String, Int>)

A callback for when channel meta counters is created.

Link copied to clipboard
open fun onMetaCountersDeleted(channel: BaseChannel, keys: List<String>)

A callback for when channel meta counters are deleted.

Link copied to clipboard
open fun onMetaCountersUpdated(channel: BaseChannel, metaCounterMap: Map<String, Int>)

A callback for when channel meta counters is updated.

Link copied to clipboard
open fun onMetaDataCreated(channel: BaseChannel, metaDataMap: Map<String, String>)

A callback for when channel meta data is created.

Link copied to clipboard
open fun onMetaDataDeleted(channel: BaseChannel, keys: List<String>)

A callback for when channel meta data is deleted.

Link copied to clipboard
open fun onMetaDataUpdated(channel: BaseChannel, metaDataMap: Map<String, String>)

A callback for when channel meta data is updated.

Link copied to clipboard
open fun onOperatorUpdated(channel: BaseChannel)

A callback for when operators change in channel

Link copied to clipboard
open fun onReactionUpdated(channel: BaseChannel, reactionEvent: ReactionEvent)

A callback for when a reactionEvent is updated.

Link copied to clipboard
open fun onThreadInfoUpdated(channel: BaseChannel, threadInfoUpdateEvent: ThreadInfoUpdateEvent)

A callback for when the thread information is updated.

Link copied to clipboard
open fun onUserBanned(channel: BaseChannel, restrictedUser: RestrictedUser)

A callback for when user is banned from channel.

Link copied to clipboard
open fun onUserMuted(channel: BaseChannel, restrictedUser: RestrictedUser)

A callback for when a User is muted from channel.

Link copied to clipboard
open fun onUserUnbanned(channel: BaseChannel, user: User)

A callback for when user is unbanned from channel.

Link copied to clipboard
open fun onUserUnmuted(channel: BaseChannel, user: User)

A callback for when User is unmuted from channel.