Overview
TheCometChatCallLogsWithDetails
is a Composite Component encompassing components such as Call Logs and CometChatCallLogsWithDetails. Both of these component contributes to the functionality and structure of the overall CometChatCallLogsWithDetails
component.

Usage
Integration
CometChatCallLogsWithDetails
is a composite component that seamlessly integrates into your application. You can push it onto the navigation stack using a navigation controller. This allows for easy navigation and efficient display of call log details within your application’s interface.
CometChatCallLogsWithDetails
can be launched by adding the following code snippet into the XML layout file.
CometChatCallLogsWithDetails
within the XML code or in your activity or fragment then you’ll need to extract them.
Activity and Fragment
You can integrateCometChatCallLogsWithDetails
into your Activity and Fragment by adding the following code snippets into the respective classes.
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.1. SetOnItemClickListener
This method proves valuable when users seek to overridesetOnItemClickListener()
functionality within CometChatCallLogsWithDetails, empowering them with greater control and customization options.
The setOnItemClickListener()
action doesn’t have a predefined behavior. You can override this action using the following code snippet.
2. setOnError
You can customize this behavior by using the provided code snippet to override thesetOnError()
and improve error handling.
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. While theCometChatCallLogsWithDetails
component does not have filters, its components do, For more detail on individual filters of its component refer to Call Logs and CometChatCallLogsWithDetails.
By utilizing the Configurations object of its components, you can apply filters.
1. CallLogRequestBuilder
The CallLogRequestBuilder enables you to filter and customize the call list based on available parameters in CallLogRequestBuilder. This feature allows you to create more specific and targeted queries during the call. The following are the parameters available in CallLogRequestBuilderProperty | Description | Code |
---|---|---|
Call Status Icon Tint | Sets the tint color for the call status icon | .set(callStatusIconTint: UIColor) |
Call Status Text Font | Sets the font for the call status text | .set(callStatusTextFont: UIFont) |
Call Status Text Color | Sets the color for the call status text | .set(callStatusTextColor: UIColor) |
Call Time Text Font | Sets the font for the call time text | .set(callTimeTextFont: UIFont) |
Call Time Text Color | Sets the color for the call time text | .set(callTimeTextColor: UIColor) |
Date Separator Text Font | Sets the font for the date separator text | .set(dateSeparatorTextFont: UIFont) |
Date Separator Text Color | Sets the color for the date separator text | .set(dateSeparatorTextColor: UIColor) |
Empty State Text Font | Sets the font for the empty state text | .set(emptyStateTextFont: UIFont) |
Empty State Text Color | Sets the color for the empty state text | .set(emptyStateTextColor: UIColor) |
Error State Text Font | Sets the font for the error state text | .set(errorStateTextFont: UIFont) |
Error State Text Color | Sets the color for the error state text | .set(errorStateTextColor: UIColor) |
Info Icon Tint | Sets the tint color for the info icon | .set(infoIconTint: UIColor) |
Incoming Call Icon Tint | Sets the tint color for the incoming call icon | .set(incomingCallIconTint: UIColor) |
Missed Call Icon Tint | Sets the tint color for the missed call icon | .set(missedCallIconTint: UIColor) |
Missed Call Title Tint | Sets the tint for the missed call title | .set(missedCallTitleTint: UIColor) |
Outgoing Call Icon Tint | Sets the tint color for the outgoing call icon | .set(outgoingCallIconTint: UIColor) |
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 CometChatCallLogsWithDetails
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. It’s important to note that whileCometChatCallLogsWithDetails
does not provide its own specific styling options, each individual component contained within it offers its own set of styling attributes. This allows for granular customization of each component’s appearance to match your application’s design requirements and preferences.
1. CallLogs Style
You can customize the appearance of theCometChatCallLogsWithDetails
Component by applying the CallLogsStyle
to it using the following code snippet.
CallLogsStyle
Property | Description | Code |
---|---|---|
callStatusTextFont | Sets the font for the call status text | .set(callStatusTextFont: UIFont) |
missedCallTitleTint | Sets the tint for the missed call title | .set(missedCallTitleTint: UIColor) |
callTimeTextFont | Sets the font for the call time text | .set(callTimeTextFont: UIFont) |
dateSeparatorTextFont | Sets the font for the date separator text | .set(dateSeparatorTextFont: UIFont) |
emptyStateTextFont | Sets the font for the empty state text | .set(emptyStateTextFont: UIFont) |
errorStateTextFont | Sets the font for the error state text | .set(errorStateTextFont: UIFont) |
callStatusTextColor | Sets the color for the call status text | .set(callStatusTextColor: UIColor) |
callStatusIconTint | Sets the tint color for the call status icon | .set(callStatusIconTint: UIColor) |
callTimeTextColor | Sets the color for the call time text | .set(callTimeTextColor: UIColor) |
dateSeparatorTextColor | Sets the color for the date separator text | .set(dateSeparatorTextColor: UIColor) |
missedCallIconTint | Sets the tint color for the missed call icon | .set(missedCallIconTint: UIColor) |
outgoingCallIconTint | Sets the tint color for the outgoing call icon | .set(outgoingCallIconTint: UIColor) |
incomingCallIconTint | Sets the tint color for the incoming call icon | .set(incomingCallIconTint: UIColor) |
emptyStateTextColor | Sets the color for the empty state text | .set(emptyStateTextColor: UIColor) |
errorStateTextColor | Sets the color for the error state text | .set(errorStateTextColor: UIColor) |
infoIconTint | Sets the tint color for the info icon | .set(infoIconTint: UIColor) |
2. Avatar Styles
To apply customized styles to theAvatar
component in the CometChatCallLogsWithDetails
Component, you can use the following code snippet. For further insights on Avatar
Styles refer
3. ListItem Styles
To apply customized styles to theListItemStyle
component in the CometChatCallLogsWithDetails
Component, you can use the following code snippet. For further insights on ListItemStyle
Styles refer
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.
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.SetEmptyStateView 🛑
You can set a custom EmptyStateView usingsetEmptyStateView()
to match the error view of your app.

empty_view_layout.xml
as a custom view file. Which we will inflate and pass to .setEmptyStateView()
.
empty_view_layout.xml
setEmptyStateView
. You can get the child view reference and can handle click actions.
SetErrorStateView 🛑
You can set a custom ErrorStateView usingsetErrorStateView()
to match the error view of your app.

error_state_view_layout.xml
as a custom view file. Which we will inflate and pass to .setErrorStateView()
.
error_state_view_layout.xml
setErrorStateView
. You can get the child view reference and can handle click actions.
Menu
You can set the Custom Menu to add more options to theCometChatCallLogsWithDetails
component.

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.
YourActivity.java