Overview
TheCometChatCallLogDetails is a Component that displays all the information related to a call. This component displays information like user/group information, participants of the call, recordings of the call (if available) & history of all the previous calls. Also, it has buttons to start a new call.

Usage
Integration
CometChatCallLogDetails is a Composite component, that can be seamlessly presented within your application. To display the details of a CallLog, you simply need to pass the corresponding CallLog object to the CometChatCallLogDetails instance using its setCall() property. This enables you to efficiently showcase specific call log details within your application’s interface.
Since CometChatCallLogDetails can be launched by adding the following code snippet into the XML layout file.
- XML
CometChatCallLogDetails within the XML code or in your activity or fragment then you’ll need to extract them and set the Call object using the appropriate method.
- Java
- Kotlin
Activity and Fragment
You can integrateCometChatCallLogDetails into your Activity and Fragment by adding the following code snippets into the respective classes.
- Java (Activity)
- Kotlin (Activity)
- Java (Fragment)
- Kotlin (Fragment)
YourActivity.java
Actions
Actions dictate how a component functions. They are divided into two types: Predefined and User-defined. You can override either type, allowing you to tailor the behavior of the component to fit your specific needs. TheCometChatCallLogDetails component does not have any exposed actions.
Filters
Filters allow you to customize the data displayed in a list within a Component. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders of Chat SDK. TheCometChatCallLogDetails component does not have any exposed filters.
Events
Events are emitted by aComponent. 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 CometChatCallLogDetails component does not have any exposed events.
Customization
To fit your app’s design requirements, you can customize the appearance of the conversation component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.Style
Using Style you can customize the look and feel of the component in your app, These parameters typically control elements such as the color, size, shape, and fonts used within the component.1. CallLogDetails Style
You can customize the appearance of theCometChatCallLogDetails Component by applying the CallLogDetailsStyle to it using the following code snippet.
- Java
- Kotlin
| Property | Description | Code |
|---|---|---|
| Background | used to set background color | .setBackground(@ColorInt int) |
| Background | used to set a gradient background | .setBackground(Drawable) |
| Border Color | used to set border color | .setBorderColor(@ColorInt int) |
| Border Width | used to set border | .setBorderWidth(int) |
| Close Icon Tint | used to set the color of the back icon in the app bar | .setCloseIconTint(@ColorInt int) |
| CornerRadius | used to set corner radius | .setCornerRadius(double) |
| Name Text Appearance | Used to set Name Text Appearance. | .setNameTextAppearance(@StyleRes int) |
| Name Text Color | Used to set Name Text Color. | .setNameTextColor(@ColorInt int) |
| Title Appearance | used to set style of the title in the app bar | .setTitleAppearance(@StyleRes int) |
| Title Color | Used to set title Color | .setTitleColor(@ColorInt int) |
2. Avatar Styles
To apply customized styles to theAvatar component in the CometChatCallLogDetails Component, you can use the following code snippet. For further insights on Avatar Styles refer
- Java
- Kotlin
Functionality
These are a set of small functional customizations that allow you to fine-tune the overall experience of the component. With these, you can change text, set custom icons, and toggle the visibility of UI elements.
- Java
- Kotlin
| Property | Description | Code |
|---|---|---|
| Call | Used to validate and fetch a list of available options for groups | .setCall(CallLog) |
| Hide Profile | Hides view profile option for users | .hideProfile(boolean) |
| Set Close Button Icon | Used to set back button located in the app bar | .setCloseButtonIcon(@DrawableRes int) |
| Set Title | Used to set the title in the app bar | .setTitle(String) |
| Show Close Button | Used to toggle visibility for back button | .showCloseButton(boolean) |
Advanced
For advanced-level customization, you can set custom views to the component. This lets you tailor each aspect of the component to fit your exact needs and application aesthetics. You can create and define your views, layouts, and UI elements and then incorporate those into the component.Menu
You can set the Custom Menu to add more options to the CometChatCallLogDetails component.- Java
- Kotlin

view_menu.xml as a custom view file. Which we will inflate and pass to .setMenu().
view_menu.xml
setMenu. You can get the child view reference and can handle click actions.
- Java
- Kotlin
YourActivity.java
Template and Options
Enhance yourCometChatCallLogDetails component by setting Custom Options and Template to incorporate additional functionalities when swiping.
CometChatCallLogDetailsOptionis the class providing structure for options to be shown for users and group members
- Java
- Kotlin
CometChatCallLogDetailsOption component.
| properties | Type | Description |
|---|---|---|
| id | String | unique ID for the option |
| title | String | used to set title for the option |
| startIcon | @DrawableRes int | used to set start icon for the option |
| endIcon | @DrawableRes int | used to set end icon for the option |
| titleColor | @ColorInt int | used to set title color |
| titleFont | String | used to set title text font |
| titleAppearance | @StyleRes int | used to set style of the title text |
| startIconTint | @ColorInt int | set color of start icon |
| endIconTint | @ColorInt int | set color of end icon |
| onClick | OnDetailOptionClick | the action to perform on click of option |
| view | Function3<Context,CallLog, View> | to set a custom view for particular option |
CometChatCallLogDetailsTemplatedefines the structure for sections of options available in theCometChatCallLogDetails
- Java
- Kotlin
CometChatCallLogDetailsTemplate
| Methods | Type | Description |
|---|---|---|
| setId | String | unique ID for the option |
| setTitle | String | a text to display below the icon |
| setTitleAppearance | @StyleRes int | used to set style of the text below the icon |
| setOptions | Function2<Context, CallLog, List<CometChatCallLogDetailsOption>> | options available under each section |
| setSectionSeparatorColor | @ColorInt int | the color of the divider separating the sections of options |
| hideSectionSeparator | boolean | if true doesn’t show the divider separating the sections of options |
| setItemSeparatorColor | @ColorInt int | the color of the divider separating the each option |
| setHideItemSeparator | @ColorInt int | if true doesn’t show the divider separating the each option |

- Java
- Kotlin