Message Collection Handler
interface MessageCollectionHandler : BaseMessageCollectionHandler<GroupChannel, GroupChannelContext, MessageContext>
An interface used in MessageCollection.
Since
3.1.0
See also
Functions
Link copied to clipboard
Called when the channel this collection holds is deleted.
Link copied to clipboard
Called when there's a change in the channel this collection holds.
Link copied to clipboard
Called when the collection has detected a huge gap between current message list. This can happen SDK checks for missing messages, which occurs in two cases.
Link copied to clipboard
abstract fun onMessagesAdded(context: MessageContext, channel: GroupChannel, messages: List<BaseMessage>)
Called when one or more BaseMessage is added to this collection.
Link copied to clipboard
abstract fun onMessagesDeleted(context: MessageContext, channel: GroupChannel, messages: List<BaseMessage>)
Called when one or more BaseMessage is deleted from this collection.
Link copied to clipboard
abstract fun onMessagesUpdated(context: MessageContext, channel: GroupChannel, messages: List<BaseMessage>)
Called when one or more BaseMessage is update in this collection.