Skip to main content

Overview

The CometChatCallLogsWithDetails 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.
If you’re defining the CometChatCallLogsWithDetails within the XML code or in your activity or fragment then you’ll need to extract them.
Activity and Fragment
You can integrate CometChatCallLogsWithDetails 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 override setOnItemClickListener() 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 the setOnError() 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 the CometChatCallLogsWithDetails 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 CallLogRequestBuilder Example In the example below, we are applying a filter based on limit and calltype.

Events

Events are emitted by a 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 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 while CometChatCallLogsWithDetails 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 the CometChatCallLogsWithDetails Component by applying the CallLogsStyle to it using the following code snippet.
List of properties exposed by CallLogsStyle
2. Avatar Styles
To apply customized styles to the Avatar 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 the ListItemStyle 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 using setEmptyStateView() to match the error view of your app.
Example
You need to create a empty_view_layout.xml as a custom view file. Which we will inflate and pass to .setEmptyStateView().
empty_view_layout.xml
You inflate the view and pass it to setEmptyStateView. You can get the child view reference and can handle click actions.

SetErrorStateView 🛑

You can set a custom ErrorStateView using setErrorStateView() to match the error view of your app.
Example
You need to create a error_state_view_layout.xml as a custom view file. Which we will inflate and pass to .setErrorStateView().
error_state_view_layout.xml
You inflate the view and pass it to setErrorStateView. You can get the child view reference and can handle click actions.

You can set the Custom Menu to add more options to the CometChatCallLogsWithDetails component.
Example
You need to create a view_menu.xml as a custom view file. Which we will inflate and pass to .setMenu().
view_menu.xml
You inflate the view and pass it to setMenu. You can get the child view reference and can handle click actions.
YourActivity.java