MessageListViewStyle

data class MessageListViewStyle(scrollButtonViewStyle: ScrollButtonViewStyle, scrollButtonBehaviour: MessageListView.NewMessagesBehaviour, itemStyle: MessageListItemStyle, giphyViewHolderStyle: GiphyViewHolderStyle, replyMessageStyle: MessageReplyStyle, reactionsEnabled: Boolean, @ColorInt() backgroundColor: Int, replyIcon: Int, replyEnabled: Boolean, threadReplyIcon: Int, threadsEnabled: Boolean, retryIcon: Int, copyIcon: Int, editMessageEnabled: Boolean, editIcon: Int, flagIcon: Int, flagEnabled: Boolean, pinIcon: Int, unpinIcon: Int, pinMessageEnabled: Boolean, muteIcon: Int, unmuteIcon: Int, muteEnabled: Boolean, blockIcon: Int, blockEnabled: Boolean, deleteIcon: Int, deleteMessageEnabled: Boolean, copyTextEnabled: Boolean, retryMessageEnabled: Boolean, deleteConfirmationEnabled: Boolean, flagMessageConfirmationEnabled: Boolean, messageOptionsText: TextStyle, warningMessageOptionsText: TextStyle, @ColorInt() messageOptionsBackgroundColor: Int, @ColorInt() userReactionsBackgroundColor: Int, userReactionsTitleText: TextStyle, @ColorInt() optionsOverlayDimColor: Int, emptyViewTextStyle: TextStyle, @LayoutRes() loadingView: Int, messagesStart: Int, threadMessagesStart: Int)

Style for MessageListView. Use this class together with TransformStyle.messageListStyleTransformer to change MessageListView styles programmatically.

Constructors

MessageListViewStyle
Link copied to clipboard
fun MessageListViewStyle(scrollButtonViewStyle: ScrollButtonViewStyle, scrollButtonBehaviour: MessageListView.NewMessagesBehaviour, itemStyle: MessageListItemStyle, giphyViewHolderStyle: GiphyViewHolderStyle, replyMessageStyle: MessageReplyStyle, reactionsEnabled: Boolean, @ColorInt() backgroundColor: Int, replyIcon: Int, replyEnabled: Boolean, threadReplyIcon: Int, threadsEnabled: Boolean, retryIcon: Int, copyIcon: Int, editMessageEnabled: Boolean, editIcon: Int, flagIcon: Int, flagEnabled: Boolean, pinIcon: Int, unpinIcon: Int, pinMessageEnabled: Boolean, muteIcon: Int, unmuteIcon: Int, muteEnabled: Boolean, blockIcon: Int, blockEnabled: Boolean, deleteIcon: Int, deleteMessageEnabled: Boolean, copyTextEnabled: Boolean, retryMessageEnabled: Boolean, deleteConfirmationEnabled: Boolean, flagMessageConfirmationEnabled: Boolean, messageOptionsText: TextStyle, warningMessageOptionsText: TextStyle, @ColorInt() messageOptionsBackgroundColor: Int, @ColorInt() userReactionsBackgroundColor: Int, userReactionsTitleText: TextStyle, @ColorInt() optionsOverlayDimColor: Int, emptyViewTextStyle: TextStyle, @LayoutRes() loadingView: Int, messagesStart: Int, threadMessagesStart: Int)

Properties

backgroundColor
Link copied to clipboard
val backgroundColor: Int
MessageListView background color.
blockEnabled
Link copied to clipboard
val blockEnabled: Boolean
Enables/disables "block user" option.
blockIcon
Link copied to clipboard
val blockIcon: Int
Icon for block option.
copyIcon
Link copied to clipboard
val copyIcon: Int
Icon for copy option.
copyTextEnabled
Link copied to clipboard
val copyTextEnabled: Boolean
Enables/disables copy text feature.
deleteConfirmationEnabled
Link copied to clipboard
val deleteConfirmationEnabled: Boolean
Enables/disables showing confirmation dialog before deleting message.
deleteIcon
Link copied to clipboard
val deleteIcon: Int
Icon for delete message option.
deleteMessageEnabled
Link copied to clipboard
val deleteMessageEnabled: Boolean
Enables/disables delete message feature.
editIcon
Link copied to clipboard
val editIcon: Int
Icon for edit message option.
editMessageEnabled
Link copied to clipboard
val editMessageEnabled: Boolean
Enables/disables edit message feature.
emptyViewTextStyle
Link copied to clipboard
val emptyViewTextStyle: TextStyle
Style for the text displayed in the empty view when no data is present.
flagEnabled
Link copied to clipboard
val flagEnabled: Boolean
Enables/disables "flag message" option.
flagIcon
Link copied to clipboard
val flagIcon: Int
Icon for flag message option.
flagMessageConfirmationEnabled
Link copied to clipboard
val flagMessageConfirmationEnabled: Boolean
Enables/disables showing confirmation dialog before flagging message.
giphyViewHolderStyle
Link copied to clipboard
val giphyViewHolderStyle: GiphyViewHolderStyle
Style for GiphyViewHolder.
itemStyle
Link copied to clipboard
val itemStyle: MessageListItemStyle
Style for message list view holders.
loadingView
Link copied to clipboard
val loadingView: Int
Layout for the loading view.
messageOptionsBackgroundColor
Link copied to clipboard
val messageOptionsBackgroundColor: Int
Background color of message options.
messageOptionsText
Link copied to clipboard
val messageOptionsText: TextStyle
Text appearance of message option items.
messagesStart
Link copied to clipboard
val messagesStart: Int
Messages start at the bottom or top of the screen.
muteEnabled
Link copied to clipboard
val muteEnabled: Boolean
Enables/disables "mute user" option.
muteIcon
Link copied to clipboard
val muteIcon: Int
Icon for mute option.
optionsOverlayDimColor
Link copied to clipboard
val optionsOverlayDimColor: Int
Overlay dim color.
pinIcon
Link copied to clipboard
val pinIcon: Int
Icon for pin message option.
pinMessageEnabled
Link copied to clipboard
val pinMessageEnabled: Boolean
Enables/disables pin message feature.
reactionsEnabled
Link copied to clipboard
val reactionsEnabled: Boolean
Enables/disables reactions feature.
replyEnabled
Link copied to clipboard
val replyEnabled: Boolean
Enables/disables reply feature.
replyIcon
Link copied to clipboard
val replyIcon: Int
Icon for reply option.
replyMessageStyle
Link copied to clipboard
val replyMessageStyle: MessageReplyStyle
Styles messages that are replies.
retryIcon
Link copied to clipboard
val retryIcon: Int
Icon for retry option.
retryMessageEnabled
Link copied to clipboard
val retryMessageEnabled: Boolean
Enables/disables retry failed message feature.
scrollButtonBehaviour
Link copied to clipboard
  • On new messages always scroll to bottom or count new messages. Default - Count messages.

scrollButtonViewStyle
Link copied to clipboard
val scrollButtonViewStyle: ScrollButtonViewStyle
Style for ScrollButtonView.
threadMessagesStart
Link copied to clipboard
val threadMessagesStart: Int
Thread messages start at the bottom or top of the screen.
threadReplyIcon
Link copied to clipboard
val threadReplyIcon: Int
Icon for thread option.
threadsEnabled
Link copied to clipboard
val threadsEnabled: Boolean
Enables/disables threads feature.
unmuteIcon
Link copied to clipboard
val unmuteIcon: Int
Icon for the unmute option.
unpinIcon
Link copied to clipboard
val unpinIcon: Int
Icon for unpin message option.
userReactionsBackgroundColor
Link copied to clipboard
val userReactionsBackgroundColor: Int
Background color of user reactions card.
userReactionsTitleText
Link copied to clipboard
val userReactionsTitleText: TextStyle
Text appearance of of user reactions card title.
warningMessageOptionsText
Link copied to clipboard
val warningMessageOptionsText: TextStyle
Text appearance of warning message option items.