Skip to main content
CometChatListBase is a custom UI Component which displays common components used across Conversations, Groups & Users. It serves as the base component from which these components are inherited.

Usage in Java

<Component> extends CometChatListBase Example: CometChatUsers extends CometChatListBase

Methods

Background

The background is a View which is present in the backdrop for CometChatListBase. You will be able to modify the background using the below methods:

Title

The title is a TextView that specifies a title for CometChatListBase. You will be able to modify the title using the below methods:
The search is a TextInputLayout which is responsible for displaying and handling events for the search bar in CometChatListBase. You will be able to modify the search bar using the below methods:

Back

The back button is the ImageButton the user can show if they wish to. This button can be modified using the following method:

View Methods

Below methods are used to merge view with CometChatListBase.

setListBaseEventListener

CometChatListBase uses an event listener named as OnEventListenerit will provide the events for search-bar and on the click of back button present in the CometChatListBase.

Uses