CometChatGroupsWithMessages
is a Composite Component encapsulating functionalities from the Groups and Messages components. Serving as a versatile wrapper, it seamlessly integrates with CometChatMessages, enabling users to open the module by clicking on any group within the list. This component inherits the behavior of Groups, fostering consistency and familiarity in user interactions.
Components | Description |
---|---|
Groups | The Groups component is designed to display a list of Groups . This essentially represents the recent conversation history. |
Messages | The Messages component is designed to manage the messaging interaction for Group's conversations. |
CometChatGroupsWithMessages
is a Composite Component, it can be effortlessly added directly in response to a button click or any event. Leveraging all the customizable properties and methods inherited from Groups, this component offers seamless integration and extensive customization capabilities. This makes it a versatile solution for enhancing user interaction within your application.
CometChatGroupsWithMessages
can be launched by adding the following code snippet into XML layout file.
CometChatGroupsWithMessages
into your Activity and Fragment by adding the following code snippets into the respective classes.
CometChatGroupsWithMessages
is the custom view class that you want to set as the content of your activity or the view for your fragment. This will display the CometChat groups with messages in your activity or fragment.
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 CometChatGroupsWithMessages
does not produce any events but its component does.
CometChatGroupsWithMessages
component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.
Groups
subcomponent to navigate the Groups to Messages.setItemClickListener()
, the default behavior of CometChatGroupsWithMessages will also be overridden.Messages
subcomponent to navigatefrom Create Group to Details..setMenu()
, the default behavior of CometChatGroupsWithMessages will also be overridden.Groups
and Messages
component. Hence, each of these components will have its individual Configuration
. Configurations
expose properties that are available in its individual components.
GroupsConfiguration
can be found under Groups. Properties marked with the 🛑 symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Groups subcomponent
You can modify the style using the GroupsStyle
method.
messagesConfiguration
. You can accomplish this by employing the messagesConfiguration
as demonstrated below:
MessagesConfiguration
can be found under Messages. Properties marked with the 🛑 symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Messages subcomponent and, in addition, you want to hide message composer.
You can modify the style using the messagesStyle
method and hide using hide(messageComposer: bool)
method.
JoinProtectedGroupConfiguration
class as demonstrated below:
JoinProtectedGroupConfiguration
can be found under Join Group. Properties marked with the report symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Join Group subcomponent.
You can modify the style using the JoinProtectedGroupStyle
property.
createGroupConfiguration
props as demonstrated below:
CreateGroupConfiguration
can be found under Create Group. Properties marked with the 🛑 symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Create Group subcomponent.
You can modify the style using the createGroupStyle
property.