MessageListView
MessageListView renders a list of messages and extends the RecyclerView The most common customizations are
Disabling Reactions
Disabling Threads
Customizing the click and longCLick (via the adapter)
The list_item_message template to use (perhaps, multiple ones...?)
Types
Predicate object with a filter condition for MessageListItem. Used to filter a list of MessageListItem before applying it to MessageListView.
Interface definition for a callback to be invoked when a user reaction is clicked on the message options overlay.
Predicate object with a filter condition for MessageListItem. Used to filter a list of MessageListItem before applying it to MessageListView.
Interface definition for a callback to be invoked when a user reaction is clicked on the message options overlay.
Inherited properties
Functions
Shows the message list items.
Returns the inner RecyclerView that is used to display a list of message list items.
Hides the empty view.
Hides the loading view.
Hide the unread label button.
Returns an instance of MessageListViewStyle associated with this instance of MessageListView. Be sure invoke this method after this view laid out on layout and already initialized, otherwise you'll get an exception.
Scrolls the message list to the bottom.sl
Scrolls the list to the target message and highlights it. Only works if the target message is already present in the list.
Sets the attachment click listener to be used by MessageListView.
Sets the handler used when deleting an attachment from the gallery screen.
Sets the attachment download click listener to be used by MessageListView.
Sets the handler used when the attachment is going to be downloaded.
Allows clients to set an instance of AttachmentFactoryManager that holds a list of custom attachment factories. Use this method to create a custom content view for the message attachments.
Sets the handler used when replying to an attachment from the gallery screen.
Sets the handler used when navigating to a message from the gallery screen.
Sets the handler used when the bottom end region is reached. This runs whe list of messages in this view becomes non linear and it will be called until it becomes linear again.
Sets the handler used to confirm that the message is going to be deleted.
Sets the handler used to confirm that the message is going to be flagged.
Enables or disables the message copy feature.
Set the handler used when the custom action is going to be executed.
Set a custom item animator for MessageListView. That will handle animations involving changes to the items in this MessageListView.
Set a custom layout manager for MessageListView. This can be used to change orientation of messages.
Sets the value used to filter deleted messages.
Enables or disables the message delete confirmation showing.
Enables or disables the message deleting feature.
Sets the handler used when downloading an attachment from the gallery screen.
Enables or disables the message editing feature.
Sets the view to be displayed when the message list is empty.
Sets the handler used when the end region is reached.
Sets the thread click listener to be used by MessageListView.
Sets the handler used when handling the errors defined in MessageListController.ErrorEvent.
Sets the handler used to handle flag message result.
Sets the handler used when giphy action is going to be performed.
Sets the handler used when the last message is read.
Sets the link click listener to be used by MessageListView.
Used to indicate that the message list is loading more messages.
Sets the view to be displayed when the message list is loading.
Allows clients to set a custom implementation of MessageBackgroundFactory. Use this method if you want to change the background of messages
Sets the message click listener to be used by MessageListView.
Allows clients to set a custom implementation of DateFormatter to format the message date.
Sets the handler used when the the message is going to be deleted.
Sets the handler used to let the message input know when we are editing a message.
Enables or disables the message flagging feature.
Sets the handler used when the message is going to be flagged.
Allows to transform the message list data before it is rendered on the screen.
Allows applying a filter condition to the message list before it is rendered.
Sets the message long click listener to be used by MessageListView.
Sets the handler used to handle when the message is going to be marked as read.
Allows clients to set a custom implementation of MessageOptionItemsFactory. Use this method if you want to change the message options on the message options overlay.
Sets the handler used to handle when the message is going to be pinned.
Sets the handler used when a reaction for the message is going to be send.
Sets the handler used when the message is going to be replied in the channel.
Sets the handler used when the failed message is going to be retried.
Sets the message retry listener to be used by MessageListView.
Sets the handler used to handle when the message is going to be unpinned.
Set a handler used to handle when a user is blocked.
Allows clients to set a custom implementation of MessageListItemViewHolderFactory. Use this method if you want completely custom views for the message list items.
Sets the handler used when the user interacts with ModeratedMessageDialogFragment.
Sets the moderated message long click listener to be used by MessageListView.
Used to control whether the message list is scrolled to the bottom when new messages arrive or the unread count badge is incremented instead.
Sets the attachment click listener to be used by MessageListView.
Sets the attachment download click listener to be used by MessageListView.
Sets the thread click listener to be used by MessageListView.
Sets the link click listener to be used by MessageListView.
Sets the mention click listener to be used by MessageListView.
Sets the message click listener to be used by MessageListView.
Sets the message long click listener to be used by MessageListView.
Sets the message retry listener to be used by MessageListView.
Sets the moderated message long click listener to be used by MessageListView.
Set the Poll Close click listener to be used by MessageListView.
Set the Poll Option click listener to be used by MessageListView.
Sets the reaction view click listener to be used by MessageListView.
Sets the click listener to be used when a message that is a reply is clicked.
Sets the handler used when the user interacts with ScrollButtonView.
Sets the thread click listener to be used by MessageListView.
Sets the handler used when the user interacts with the unread label.
Sets the handler used when the unread label is reached.
Sets the user click listener to be used by MessageListView.
Sets the click listener to be used when a reaction left by a user is clicked on the message options overlay.
Set the View Poll Result click listener to be used by MessageListView.
Sets the handler used when opening a thread.
Setter method for own capabilities which dictate which parts of the UI are enabled or disabled for the current user in the given channel.
Enables or disables the message reactions feature.
Sets the reaction view click listener to be used by MessageListView.
Enables or disables the message threading feature.
Sets the click listener to be used when a message that is a reply is clicked.
Enables or disables the scroll to bottom button.
Used to control the visibility of the user avatar for a particular message list item.
Sets the thread click listener to be used by MessageListView.
Enables or disables the message threading feature.
Sets the handler used when a new thread for the message is started.
Sets the user click listener to be used by MessageListView.
Sets the click listener to be used when a reaction left by a user is clicked on the message options overlay.
Enables fetch for messages at the bottom.
Shows the empty view.
Shows a error for one of the reasons defined in MessageListController.ErrorEvent.
Shows the loading view.
Show message options dialog for the given set of message options.
Used to display the moderated message dialog when you long click on a message that has failed the moderation check.
Show the unread label button.
Updates the channel object used by the message list and initializes adapter if it's not initialized yet.