OpenChannelHandler

Constructors

Link copied to clipboard
constructor()

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

Called when one or more open channel's member counts are changed.

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

A callback for when pinned message is changed.

Link copied to clipboard
open fun onPollDeleted(channel: OpenChannel, pollId: Long)

Called when a poll is deleted.

Link copied to clipboard
open fun onPollUpdated(channel: OpenChannel, pollUpdateEvent: PollUpdateEvent)

Called when a poll is updated. The user should search for cached messages that contain this event's poll (PollUpdateEvent.pollId, PollUpdateEvent.messageId) and call Poll.applyPollUpdateEvent on those messages.

Link copied to clipboard
open fun onPollVoted(channel: OpenChannel, pollVoteEvent: PollVoteEvent)

Called when one or more vote is cast/canceled on a poll. The user should search for cached messages that contain this event's poll (PollVoteEvent.pollId, PollVoteEvent.messageId) and call Poll.applyPollVoteEvent on those messages.

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 onUserEntered(channel: OpenChannel, user: User)

A callback for when a User has entered OpenChannel. To use the updated participant count, refer to OpenChannel.participantCount.

Link copied to clipboard
open fun onUserExited(channel: OpenChannel, user: User)

A callback for when a User has exited OpenChannel. To use the updated participant count, refer to OpenChannel.participantCount.

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.