MessageListOptions
data class MessageListOptions(val messageLimit: Int = MessageListController.DEFAULT_MESSAGES_LIMIT, val showSystemMessages: Boolean = true, val messageFooterVisibility: MessageFooterVisibility = MessageFooterVisibility.LastInGroup, val enforceUniqueReactions: Boolean = false, val dateSeparatorHandler: DateSeparatorHandler = DateSeparatorHandler.getDefaultDateSeparatorHandler(), val threadDateSeparatorHandler: DateSeparatorHandler = DateSeparatorHandler.getDefaultThreadDateSeparatorHandler(), val messagePositionHandler: MessagePositionHandler = MessagePositionHandler.defaultHandler(), val showDateSeparatorInEmptyThread: Boolean = false, val showThreadSeparatorInEmptyThread: Boolean = false, val threadLoadOlderToNewer: Boolean = false)
Configuration for the message list behavior.
Parameters
messageLimit
The number of messages to load in a single page.
showSystemMessages
If we should show system message items in the list.
messageFooterVisibility
The behavior of message footers in the list and their visibility.
enforceUniqueReactions
Flag to enforce unique reactions or enable multiple from the same user.
dateSeparatorHandler
Handler that determines when the date separators should be visible.
threadDateSeparatorHandler
Handler that determines when the thread date separators should be visible.
messagePositionHandler
Determines the position of the message inside a group.
showDateSeparatorInEmptyThread
Configures if we show a date separator when threads are empty.
showThreadSeparatorInEmptyThread
Configures if we show a thread separator when threads are empty.
threadLoadOlderToNewer
Configures if the thread should load older messages to newer messages.
Constructors
Link copied to clipboard
constructor(messageLimit: Int = MessageListController.DEFAULT_MESSAGES_LIMIT, showSystemMessages: Boolean = true, messageFooterVisibility: MessageFooterVisibility = MessageFooterVisibility.LastInGroup, enforceUniqueReactions: Boolean = false, dateSeparatorHandler: DateSeparatorHandler = DateSeparatorHandler.getDefaultDateSeparatorHandler(), threadDateSeparatorHandler: DateSeparatorHandler = DateSeparatorHandler.getDefaultThreadDateSeparatorHandler(), messagePositionHandler: MessagePositionHandler = MessagePositionHandler.defaultHandler(), showDateSeparatorInEmptyThread: Boolean = false, showThreadSeparatorInEmptyThread: Boolean = false, threadLoadOlderToNewer: Boolean = false)