MessageListViewStyle

data class MessageListViewStyle(val scrollButtonViewStyle: ScrollButtonViewStyle, val scrollButtonBehaviour: MessageListView.NewMessagesBehaviour, val itemStyle: MessageListItemStyle, val giphyViewHolderStyle: GiphyViewHolderStyle, val audioRecordPlayerViewStyle: MessageViewStyle<AudioRecordPlayerViewStyle>, val replyMessageStyle: MessageReplyStyle, val reactionsEnabled: Boolean, @ColorInt val backgroundColor: Int, val replyIcon: Int, val replyEnabled: Boolean, val threadReplyIcon: Int, val threadsEnabled: Boolean, val retryIcon: Int, val copyIcon: Int, val markAsUnreadIcon: Int, val editMessageEnabled: Boolean, val editIcon: Int, val flagIcon: Int, val flagEnabled: Boolean, val pinIcon: Int, val unpinIcon: Int, val pinMessageEnabled: Boolean, val deleteIcon: Int, val deleteMessageEnabled: Boolean, val copyTextEnabled: Boolean, val markAsUnreadEnabled: Boolean, val retryMessageEnabled: Boolean, val deleteConfirmationEnabled: Boolean, val flagMessageConfirmationEnabled: Boolean, val messageOptionsText: TextStyle, val warningMessageOptionsText: TextStyle, @ColorInt val messageOptionsBackgroundColor: Int, @ColorInt val userReactionsBackgroundColor: Int, val userReactionsTitleText: TextStyle, @ColorInt val optionsOverlayDimColor: Int, val emptyViewTextStyle: TextStyle, @LayoutRes val loadingView: Int, val messagesStart: Int, val threadMessagesStart: Int, val messageOptionsUserReactionAlignment: Int, val scrollButtonBottomMargin: Int, val scrollButtonEndMargin: Int, val disableScrollWhenShowingDialog: Boolean, val optionsOverlayEditReactionsMarginTop: Int, val optionsOverlayEditReactionsMarginBottom: Int, val optionsOverlayEditReactionsMarginStart: Int, val optionsOverlayEditReactionsMarginEnd: Int, val optionsOverlayUserReactionsMarginTop: Int, val optionsOverlayUserReactionsMarginBottom: Int, val optionsOverlayUserReactionsMarginStart: Int, val optionsOverlayUserReactionsMarginEnd: Int, val optionsOverlayMessageOptionsMarginTop: Int, val optionsOverlayMessageOptionsMarginBottom: Int, val optionsOverlayMessageOptionsMarginStart: Int, val optionsOverlayMessageOptionsMarginEnd: Int, val showReactionsForUnsentMessages: Boolean, val readCountEnabled: Boolean) : ViewStyle

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

Constructors

Link copied to clipboard
constructor(scrollButtonViewStyle: ScrollButtonViewStyle, scrollButtonBehaviour: MessageListView.NewMessagesBehaviour, itemStyle: MessageListItemStyle, giphyViewHolderStyle: GiphyViewHolderStyle, audioRecordPlayerViewStyle: MessageViewStyle<AudioRecordPlayerViewStyle>, replyMessageStyle: MessageReplyStyle, reactionsEnabled: Boolean, @ColorInt backgroundColor: Int, replyIcon: Int, replyEnabled: Boolean, threadReplyIcon: Int, threadsEnabled: Boolean, retryIcon: Int, copyIcon: Int, markAsUnreadIcon: Int, editMessageEnabled: Boolean, editIcon: Int, flagIcon: Int, flagEnabled: Boolean, pinIcon: Int, unpinIcon: Int, pinMessageEnabled: Boolean, deleteIcon: Int, deleteMessageEnabled: Boolean, copyTextEnabled: Boolean, markAsUnreadEnabled: 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, messageOptionsUserReactionAlignment: Int, scrollButtonBottomMargin: Int, scrollButtonEndMargin: Int, disableScrollWhenShowingDialog: Boolean, optionsOverlayEditReactionsMarginTop: Int, optionsOverlayEditReactionsMarginBottom: Int, optionsOverlayEditReactionsMarginStart: Int, optionsOverlayEditReactionsMarginEnd: Int, optionsOverlayUserReactionsMarginTop: Int, optionsOverlayUserReactionsMarginBottom: Int, optionsOverlayUserReactionsMarginStart: Int, optionsOverlayUserReactionsMarginEnd: Int, optionsOverlayMessageOptionsMarginTop: Int, optionsOverlayMessageOptionsMarginBottom: Int, optionsOverlayMessageOptionsMarginStart: Int, optionsOverlayMessageOptionsMarginEnd: Int, showReactionsForUnsentMessages: Boolean, readCountEnabled: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

MessageListView background color. Default value is R.color.stream_ui_white_snow.

Link copied to clipboard

Icon for copy option. Default value is R.drawable.stream_ui_ic_copy.

Link copied to clipboard

Enables/disables copy text feature. Enabled by default.

Link copied to clipboard

Enables/disables showing confirmation dialog before deleting message. Enabled by default.

Link copied to clipboard

Icon for delete message option. Default value is R.drawable.stream_ui_ic_delete.

Link copied to clipboard

Enables/disables delete message feature. Enabled by default.

Link copied to clipboard

Enables/disables scroll while a dialog is shown over the message list.

Link copied to clipboard

Icon for edit message option. Default value is R.drawable.stream_ui_ic_edit.

Link copied to clipboard

Enables/disables edit message feature. Enabled by default.

Link copied to clipboard

Style for the text displayed in the empty view when no data is present.

Link copied to clipboard

Enables/disables "flag message" option.

Link copied to clipboard

Icon for flag message option. Default value is R.drawable.stream_ui_ic_flag.

Link copied to clipboard

Enables/disables showing confirmation dialog before flagging message. Disabled by default.

Link copied to clipboard

Style for message list view holders.

Link copied to clipboard

Layout for the loading view. Default value is R.layout.stream_ui_default_loading_view.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Background color of message options. Default value is R.color.stream_ui_white.

Link copied to clipboard

Text appearance of message option items.

Link copied to clipboard

Alignment of the message options user reaction bubble. Default value is MessageOptionsUserReactionAlignment.BY_USER.

Link copied to clipboard

Messages start at the bottom or top of the screen. Default: bottom.

Link copied to clipboard

Overlay dim color. Default value is R.color.stream_ui_literal_transparent.

Link copied to clipboard

Defines the margin between the selected message and the edit reactions bubble on the options overlay.

Link copied to clipboard

Defines the end margin between the edit reactions bubble on the options overlay and the parent.

Link copied to clipboard

Defines the start margin between the edit reactions bubble on the options overlay and the parent.

Link copied to clipboard

Defines the top margin between the edit reactions bubble on the options overlay and the parent.

Link copied to clipboard

Defines the bottom margin between the message option list on the options overlay and the user reactions view.

Link copied to clipboard

Defines the end margin between the message option list on the options overlay and the parent.

Link copied to clipboard

Defines the start margin between the message option list on the options overlay and the parent.

Link copied to clipboard

Defines the margin between the selected message and the message option list on the options overlay.

Link copied to clipboard

Defines the bottom margin between the user reaction list on the options overlay and the parent.

Link copied to clipboard

Defines the end margin between the user reaction list on the options overlay and the parent.

Link copied to clipboard

Defines the start margin between the user reaction list on the options overlay and the parent.

Link copied to clipboard

Defines the margin between the selected message and the user reaction list on the options overlay.

Link copied to clipboard

Icon for pin message option. Default value is R.drawable.stream_ui_ic_pin.

Link copied to clipboard

Enables/disables pin message feature. Disabled by default.

Link copied to clipboard

Enables/disables reactions feature. Enabled by default.

Link copied to clipboard

Enables/disables read count. Enabled by default.

Link copied to clipboard

Enables/disables reply feature. Enabled by default.

Link copied to clipboard

Icon for reply option. Default value is R.drawable.stream_ui_ic_arrow_curve_left_grey.

Link copied to clipboard

Styles messages that are replies.

Link copied to clipboard

Icon for retry option. Default value is R.drawable.stream_ui_ic_send.

Link copied to clipboard

Enables/disables retry failed message feature. Enabled by default.

Link copied to clipboard

Defines the bottom margin of the scroll button.

Link copied to clipboard

Defines the end margin of the scroll button.

Link copied to clipboard

Style for ScrollButtonView.

Link copied to clipboard

If we need to show the edit reactions bubble for unsent messages on the options overlay.

Link copied to clipboard

Thread messages start at the bottom or top of the screen. Default: bottom.

Link copied to clipboard

Icon for thread option. Default value is R.drawable.stream_ui_ic_thread_reply.

Link copied to clipboard

Enables/disables threads feature. Enabled by default.

Link copied to clipboard

Icon for unpin message option. Default value is R.drawable.stream_ui_ic_unpin.

Link copied to clipboard

Background color of user reactions card. Default value is R.color.stream_ui_white.

Link copied to clipboard

Text appearance of of user reactions card title.

Link copied to clipboard

Text appearance of warning message option items.