Component | Description |
---|---|
MessageList | CometChatMessageList is a component that displays a list of Messages |
MessageComposer | CometChatMessageComposer is a component that helps in writing and editing of messages and also sending attachments |
layout.xml
file.
onThreadReplyClick
of the MessageList Component using MessageListConfiguration
and applying it to ThreadedMessages.
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
The MessageList Component does not emit any events of its own.
setStyle
method.
ThreadedMessagesStyle
:
Methods | Type | Description |
---|---|---|
setBackground | @ColorInt int | used to set the background color |
setBorderWidth | int | used to set border |
borderRadius | double | used to set border radius |
setBackground | Drawable | used to set background gradient |
setTitleAppearance | @StyleRes int | used to customise the appearance of the title in the app bar |
setCloseIconTint | @ColorInt int | used to set the color of the close icon in the app bar |
Property | Description | Code |
---|---|---|
Set ParentMessage | Used to to set the message for which the replies need to be fetched | .setParentMessage(BaseMessage) |
Set Title | Used to set title in the app bar | .setTitle(String) |
Set CloseIcon | Used to set the icon to exit the widget | .setTitle(@DrawableRes int) |
setHideMessageComposer | Used to toggle visibility for CometChatMessageComposer | .setHideMessageComposer(boolen) |
setMessageBubbleView()
, You can set parent message buggle view inside ThreadedMessage Component.
setOnThreadRepliesClick
Action of MessageList Component and apply custom styles on it.
setMessageActionView()
method, you can assign custom actions to the parent message bubble view inside the ThreadedMessage Component.
setMessageListView()
method. But keep in mind, by using this you will override the default message ListView functionality.
custom_messages_list_layout.xml
and inflate it inside the setMessageListView()
method.
setMessageComposerView()
method. But keep in mind, by using this you will override the default message composer functionality.
custom_composer_view_layout.xml
and inflate it inside the setMessageComposerView()
method.
MessageListConfiguration
object.
MessageListConfiguration
provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the MessageList component.
Please note that the properties marked with the 🛑 symbol are not accessible within the Configuration Object.Example
MessageListConfiguration
.
MessageComposerConfiguration
object.
MessageComposerConfiguration
provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the MessageComposer component.
Please note that the properties marked with the 🛑 symbol are not accessible within the Configuration Object.Example
MessageComposerConfiguration
.